03-30-2016 12:03 AM
how to check - how many scratch tapes in place
03-30-2016 12:20 AM
03-30-2016 11:27 AM
on my unix system, to list the scratch pool name:
/usr/openv/volmgr/bin/vmpool -list_scratch
Scratch Pools
=============
scratch_pool
There was a BUG with old GUI, not sure if it is still there, that if you open the window to change a pool, and check the scratch box, even if you uncheck ithe box or cancel, it can label that pool as scratch.
I run a script daily that runs the above command to determine the scratch pool, then this one to set it:
/usr/openv/volmgr/bin/vmpool -set_scratch scratch_pool
I do this to print out a count ( I have multiple robots, so I actually verify SCRATCHE0, and SCRATCH3-5.
SCRATCHE0=`/usr/openv/volmgr/bin/vmquery -pn scratch_pool -b | grep "ACS 0" | grep "HCART " | /usr/bin/wc -l` ## I have multiple HCART types
echo $SCRATCHE0
I recently added this to get a count of how many tapes I used in the last 24 hours: ( my tapes have a unique prefix for each robot, robot 3 tapes start with 3 )
USED3=`/usr/openv/netbackup/bin/admincmd/bpimagelist -media -idonly -hoursago 24 | /usr/bin/grep "^3" | /usr/bin/sort -u | /usr/bin/wc -l`
This is my daily report of use for last night:
Checking for Scratch tapes in ACS0!
There are 2226 LTO5 scratch tapes in the ACS robot scratch_pool!
ACS0 used 40 tapes in the last 24 hours
Checking for Scratch tapes in ACS3!
There are 85 scratch tapes in the ACS3 robot scratch_pool!
ACS3 used 3 tapes in the last 24 hours
Checking for Scratch tapes in DD1!
There are 5509 scratch tapes in the DD1 robot scratch_pool!
DD1 used 375 tapes in the last 24 hours
Checking for Scratch tapes in DD2!
There are 4595 scratch tapes in the DD2 robot scratch_pool!
DD2 used 375 tapes in the last 24 hours
Checking for Scratch tapes in DD3!
There are 6541 scratch tapes in the DD3 robot scratch_pool!
DD3 used 1225 tapes in the last 24 hours
NOTE: I run this command to inventory the robots first to make sure I get updated information:
/usr/openv/volmgr/bin/vmupdate -rt acs -rn 0 -use_barcode_rules -h MASTER