Quantcast
Channel: Symantec Connect - Backup and Recovery - Discussions
Viewing all articles
Browse latest Browse all 5847

Script not working for scratch tapes in library having TLD0,TLD1 and TLD2

$
0
0
I need a solution

Hello Experts,

My script is not working and i am getting below error.I am not so much good on scripts,if someone can help me i would appreciate:

----------------------------

#!/usr/bin/ksh
/usr/openv/volmgr/bin/vmquery -rn 0 -bx | grep -i scratch >/tmp/scratch.tmp
/usr/openv/volmgr/bin/vmquery -rn 1 -bx | grep -i scratch  >>/tmp/scratch.tmp
/usr/openv/volmgr/bin/vmquery -rn 2 -bx | grep -i scratch >>/tmp/scratch.tmp
scratch=`cat /tmp/scratch.tmp |wc -l`
echo "Current scratch = $scratch tapes" | mailx -s "SCRATCH TAPES COUNT - $scratch count remaining" company.com

-----------------------------------------

Anyone can modify and tell me specifiaclly what i have to mention so that i will test.


Viewing all articles
Browse latest Browse all 5847

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>