cancel
Showing results for 
Search instead for 
Did you mean: 

command for available Scratch tapes Status

Abdul_Hakkim
Level 3

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

 

1 ACCEPTED SOLUTION

Accepted Solutions

Marianne
Level 6
Partner    VIP    Accredited Certified

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

View solution in original post

4 REPLIES 4

Marianne
Level 6
Partner    VIP    Accredited Certified

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

Replace robot number if not 0.

Abdul_Hakkim
Level 3

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

Marianne
Level 6
Partner    VIP    Accredited Certified

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

Abdul_Hakkim
Level 3

It Works!!! Thanks much Marianne..Appriciate your kind help on this