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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

netbackup queue script 1

Status
Not open for further replies.

voyagerman

Technical User
May 17, 2007
32
TR
Hi All,

I need a script,
jobs in the queue past the 200
send an e-mail

NBU 7.1.3 Master: Solaris 5.10 Generic_147440-19

anybody can help me?
Regads.
 
Something like this should do..

#!/bin/sh
snookiesucks=`bpdbjobs | grep -i done | wc -l`
$ if [ $snookiesucks -ge 200 ] ; then
echo "Over 200.." | mailx -s "Queue over 200.." your.email@somewhere.com
fi

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top