11-16-2011 11:02 PM
Hi Folks,
Is there any command which would fetch data expiration date for each tape in netbackup. My master server and media server is installed on Linux.
#/usr/openv/volmgr/bin/vmquery -pn <pool name>
using above command i get the "expiration date" as blank for all the tapes in that pool while all of them are not expired.
Please suggest me how to pull the correct information.
Thanks in advance.
11-16-2011 11:24 PM
You can run them through scripts and fetch the data.
Move the tape ID's to a file and then run the script to fetch the data.
for i in `cat list`
do
echo $i
11-16-2011 11:48 PM
The media expiration date is the data where Netbackup should stop using that tape because is has passed it lifetime. It's not related to the backup images on it.
11-16-2011 11:52 PM
Tape Summary report
bpmedialist -summary
11-16-2011 11:52 PM
11-18-2011 08:35 PM
Thanks Deepak and rest... I used your solution and it had helped me get tape expiration date.
Now I need command to get the "Last written" date of medias in robot ...
Please advice...
11-18-2011 10:40 PM
Sounds if 'Media Written' report will give what you need.
See this TN for command line equivalent of NBU reports: http://www.symantec.com/docs/TECH20462
You can also use -hoursago instead of -d and -e.
11-19-2011 03:18 PM
Do you really need the commands or just the information?
If you just need the information then you can change the column layout and which columns to show under the Media Section and robot section in the administration console
This can then show the data expiration, time assigned, last written or pretty much what ever you want
You can then sort the columns, highlight them all and copy then then drop it straight into excel or the like if you wish
Hope this helps as an alternative option
11-19-2011 09:43 PM
If you are expecting a command line option you can use the same script given above and grep for "time last written "
/usr/openv/netbackup/bin/admincmd/bpmedialist -m $i | grep -i "time last written" >> out.file