This script will get you the tapes in the jukebox for a particular
volume pool. You will need to change the awk string where i search for
P1000 to match what you robot is on an sgscan.
The bit which just lists whats in the jukebox is echo s s | tldtest -r
device path to robot
#!/bin/sh
#set -x
If you are going to use the below i suggest you do an inventory prior as
this is what netbackup thinks is in the jukebox but ops could have been
in and changed things around as they are unpredictable sorts ;)
Inventory :-
/usr/openv/volmgr/bin/vmupdate -x -rn 0 -rt tld -rh `uname -n` -vh
`uname
There's no monolithic command for this, you have to parse a bit:
Script:
#!/bin/sh
echo Robot\tSlot\tTape\n-\t\t-- 2
/usr/openv/volmgr/bin/vmquery -w -a | \
awk 'NR3 $9!=- {print $8 \t $9 \t $1}'
exit
-M
From: [EMAIL PROTECTED]
Title: Message
Oh - right. That option.
I guess there is a monlithic command.
-M
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ellwood, MW
(Mike)Sent: Thursday, April 27, 2006 3:51 AMTo:
veritas-bu@mailman.eng.auburn.eduSubject: RE: [Veritas-bu] how to get
a list of
vmcheckxxx?
vmcheckxxx
NAME
vmcheckxxx - Report the media contents of a robotic
library
SYNOPSIS
install_path\Volmgr\bin\vmcheckxxx -rt robot_type
-rn robot_number [-rh
robot_host] [-h
EMM_server | volume_database_host] [[-if
inventory_filter_value] [-if
inventory_filter_value] ...]