12-27-2011 04:00 AM
12-27-2011 06:17 AM
We still don't know if your OS is Unix/Linux or Windows...
If Unix or Linux,
vmquery -rn 0 -bx |grep Scratch |wc -l
12-27-2011 04:48 AM
See the available_media script. On unix is located in /usr/openv/netbackup/bin/goodies/available_media
12-27-2011 05:16 AM
If you robot number is 0 and your scratch pool name is Scratch and your OS is Unix,
vmquery -rn 0 -bx |grep Scratch
If Windows, use findstr instead of grep.
12-27-2011 05:30 AM
Thanks Marianne van den Berg
the command you gave me throws the list of scratch tapes. Is there any other way to have only the count of scratches directly instead of whole scratch list?
12-27-2011 06:17 AM
We still don't know if your OS is Unix/Linux or Windows...
If Unix or Linux,
vmquery -rn 0 -bx |grep Scratch |wc -l
12-27-2011 07:33 AM
For UNIX :
vmquery -rn 0 -bx |grep Scratch | wc -l
For Windows:
vmquery -rn 0 -bx | findstr "Scratch" | findstr /C "Scratch"
The finstr /C will return the number of lines that matches "Scratch".
Update: Too late