cancel
Showing results for 
Search instead for 
Did you mean: 

Help.. Script to show all non-active tapes that are inside the robot

henrique_cano_2
Level 3
Hi,

Anyone has a script to show all tapes that are non-active and inside the robot?
7 REPLIES 7

Gale_De_Los_San
Level 4
Non-active .. as in not mounted in the last x-days?

You can use `vmquery -l -rn ` to get all tape info and grep out the ones whose last mount dates are earlier than a specified date.

VNR_VNR
Level 3
Model of Robot ??

zippy
Level 6
/usr/openv/netbackup/bin/admincmd/bpmedialist -U -mlist


JD

Billy_Stricklan
Level 3
Check the available media script which list all tapes and their status.

/usr/openv/netbackup/bin/goodies/available_media

If you our using NetBackup 4.5 or earlier, see this technote for a fix in the script: http://seer.support.veritas.com/docs/199300.htm

Dennis_Strom
Level 6
I agree with using the available_media script.

available_media >! available.txt

then grep on you library type
grep TL8 available.txt | egrep -v AVAILABLE | sort -k 4n -k 9bMessage was edited by:
Dennis Strom

Stumpr2
Level 6
What do you mean by "non-active"?
I would interpret that to mean that a tape is either full or frozen.
What do you want to do with these tapes?
Do you want to eject them to free up slots in the library?

Stumpr2
Level 6
I believe you will find what you are seeking on this link

http://www.tek-tips.com/viewthread.cfm?qid=1258839

It contains a script that will identify full tapes and eject them.