11-22-2014 04:44 AM
I see that vlteject command can be used, but am not sure about the syntax. I need to write a script which will send the lost media report as an Email attachment to the tape librarian daily. Can any one help me in this?
Solved! Go to Solution.
11-28-2014 06:59 AM
Here you are, very sorry I was a bit later than planned.
vlteject -profile 0/vault/vault -dup_id 5 -function report -command lostmedia_ff:50
To specify the number of days, simply add :x at the end, so in this case, 50 days.
As mentined above my vault and profile are both called vault, hence the 0/vault/vault in the command (rob_num/vault_name/profile_name)
Hope this is what you were looking for.
Regards,
Martin
11-22-2014 03:43 PM
11-26-2014 02:19 PM
Thanks for reply martin. In that command where can I specify the value for "Skip media requested for return, upto".
11-26-2014 02:59 PM
11-26-2014 03:45 PM
No Martin, I didn't try the command yet.
While running the lost media report via NBU console, there is a option "Skip media requested for return, upto". In that we need to specify the number days.
While using "vltopmenu" also, it will ask for number days to skip media.
But I dont find any option to specify that in vlteject command.
11-26-2014 03:58 PM
11-26-2014 03:59 PM
Thanks Martin
11-27-2014 01:57 PM
11-27-2014 07:57 PM
I don't think there is one for "lost media" in vlteject, unless the parameter is hidden (-lm), well.. tried in my 7.6.0.3 env, and there is no "-lm".
11-28-2014 06:59 AM
Here you are, very sorry I was a bit later than planned.
vlteject -profile 0/vault/vault -dup_id 5 -function report -command lostmedia_ff:50
To specify the number of days, simply add :x at the end, so in this case, 50 days.
As mentined above my vault and profile are both called vault, hence the 0/vault/vault in the command (rob_num/vault_name/profile_name)
Hope this is what you were looking for.
Regards,
Martin
11-28-2014 03:23 PM
Thanks Martin.
Will test this on monday nd update u.
But when I check the man page for vlteject i don't see a flag called -command. I'm using 7.5.0.7 NBU version.
11-28-2014 03:27 PM
Martin, will it create any problem if I try in this in production server?
11-28-2014 03:53 PM
No, should be ok, it's only a report so worst case is it doesn't work.
I ran the command on my server and it worked fine, though I had no lost tapes, it just reported 0 tapes found.
12-02-2014 08:56 PM
Thank you so much Martin. It works.!!!!!!! Sorry for the delay
12-02-2014 09:09 PM
Please mark Martin's post that answered your query as Solution.