[Veritas-bu] pending requests
2001-08-22 13:37:07
This is a multi-part message in MIME format.
--------------93A33FA2FB11228BFDCDE14D
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
scott.kendall AT abbott DOT com wrote:
>
> I would like to automate finding pending requests (sometimes these can happen
> during duplications and nobody knows until they look at the logs to find out
> why it is taking longer than normal) and then send an e-mail to operations to
> load the tape.
>
> vmoprcmd looks like it can be used, but requires to be ran from each media
> server. Is there an easier way to do this? a file to look at or maybe a
> pending request "notify" that gets called?
>
> Also, is there a command line equivalent to resubmit the request like in
> Device Monitor?
>
> Thanks,
>
> Scott
vmoprcmd does take a -h option to query a different media server. You
could modify this script to take that into account, then run it off of
cron as we do every five minutes.
Good luck,
RCA
--
Ryan C. Anderson | United Defense L.P.
desk 763.572.6684 | pager 952.235.9936
--------------93A33FA2FB11228BFDCDE14D
Content-Type: text/plain; charset=us-ascii;
name="mntmon"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="mntmon"
#!/bin/sh
#
# File: mntmon
# Author: Blayne Puklich
# Creation date: 2000-07-14
# Time-stamp: " "
#
# $Log$
OPENV=/usr/openv
PATH=$OPENV/netbackup/bin/admincmd:$OPENV/netbackup/bin:$OPENV/volmgr/bin
PATH=$PATH:/usr/local/bin:/usr/sbin:/usr/bin
MAIL="mailx backup_operators_pager"
STATEDIR=/tmp
gMe=`basename $0 .sh`
STATE=$STATEDIR/$gMe.state
NEWSTATE=$STATE.$$
trap "rm -f $NEWSTATE" HUP INT QUIT TERM
SendPage() {
$MAIL <<EOF
New tape request on `hostname`, please look at Device Mgmt window
to find Media ID.
EOF
}
vmoprcmd -xdraw pr > $NEWSTATE
if [ ! -f $STATE -a -s $NEWSTATE ]; then
SendPage
elif [ ! -s $STATE -a -s $NEWSTATE ]; then
SendPage
fi
cp -f $NEWSTATE $STATE
rm -f $NEWSTATE
exit 0
--------------93A33FA2FB11228BFDCDE14D--
|
|
|