Forum Discussion

Abdul_Hakkim's avatar
12 years ago

command for available Scratch tapes Status

Hi All,

 

Can anyone please help me to know the command for availbale scratch tapes count from solaris netbackup master server

 

condition :-

 

ROBOT TYPE = ACS

MEDIA TYPE =HCART3

VOLUME POOL =SCRATCH

 

  • vmquery -rn 0 -bx | grep -i scratch | grep -i hcart3 | wc -l

    If you need ALL hcart3 tapes in scratch (including non-robotic):

    vmquery -a -bx | grep -i scratch | grep -i hcart3 | wc -l

4 Replies

  • vmquery -rn 0 -bx | grep -i scratch | wc -l

    Replace robot number if not 0.

  • Thanks for the kind reply

     

    the above mention command shows total scratch in robot.. but i need only the HCART3 media type tapes which are in scratch  volume pool. ( there are 2 volume pool contain scratch tapes lto4onsite&scratch) i need only the count of scratch tapes which are in scratch pool.

     

    can you help me on this please

  • vmquery -rn 0 -bx | grep -i scratch | grep -i hcart3 | wc -l

    If you need ALL hcart3 tapes in scratch (including non-robotic):

    vmquery -a -bx | grep -i scratch | grep -i hcart3 | wc -l