Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NBU 4.5 reporting 2

Status
Not open for further replies.

TAW

MIS
Oct 22, 2002
54
US
Is it possible to write a report to monitor the number of tapes in the scratch pool (If the number available to scratch falls below a threshold, I want to be notified)? If so, can someone get me started in the right direction (I'm new to NBU).
 
There is a script called available_media in the goodies directory. You can modify this script to send out a report and add thresholds.
 
Here is a script I snagged from this site. Change the emails and your robot controller name and cron it.

MINSCRATCH=10 # The required minium of scratch tapes.
MAILPERSON="me@cityofhenderson.com"

NUMBER=`/usr/openv/volmgr/bin/vmquery -pn Scratch | grep "robotcontrollername" | wc -l`

if [ $NUMBER -lt $MINSCRATCH ]; then
/bin/echo "There are ONLY $NUMBER tapes in the Scratch pool!!!" | /bin/mail $MAILPERSON
else
/bin/echo "There are $NUMBER tapes in the Scratch pool." | /bin/mail $MAILPERSON
fi
~
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top