cancel
Showing results for 
Search instead for 
Did you mean: 

Listing Full media only.

slevans
Level 4
In the NBU GUI you can easily go to each robot and list full media. I need to be able to do this command line, anyone know which command the GUI is using?

bpmedialist does show FULL, but not in a usefull way. It presents the data in 3 lines per tape, first line has the tape id, second line is blank, and the third line has the media status on it.. not usefull for scripts in windows.

Open to ideas! =)
2 REPLIES 2

FrSchind
Level 5
Partner
there should be a script called available_media in your goodies directory - this generates a report, including the status of each tape. This output can easily be filtered.

You could also run bpmedialist -mlist -l to get the information in one line, but the media status is not written as a number. You would probably have to write a more complex script - the functions to translate the numbers into text are in the available_media script.

Mouse
Moderator
Moderator
Partner    VIP    Accredited Certified
Maybe

/usr/openv/netbackup/bin/goodies/available_media | grep FULL | awk '{ print $1}'

will help?