Re: [Networker] check running savegroups from command line
2006-12-19 04:44:57
Selon Bob Flynn <Bob.Flynn AT S3GROUP DOT COM>:
Hello,
I give you some tips (in *nix, because you haven't specified your OS)...
>
>
> How do I get a list of currently running savegroups ? I want to to the
> following every 24 hours.
>
>
> 1. Verify that there are no running savegroups ( as the backup
> windows is complete, any still running probably indicates probably a
> shortage of media and definitely something worth checking out ).
>
>
>
> I cannot find out how to confirm this from the command line.
>
For groups :
/usr/bin/nsradmin <<fin 2>&1 | sed -e '1,2d' | sed -e 's/nsradmin> //g'
show last start;name;status;work list
print type:NSR group;status:running
quit
fin
For sessions still running (all sessions, not those only started by savegrp):
/usr/bin/nsradmin <<fin 2>&1 | sed -e '1,2d'| sed -e 's/nsradmin> //g' | sed -e
's/\\//g'
show session
print type:NSR
quit
fin
> 2. Verify for each completed savegroup
>
>
>
> The clients and savegroups that succeeded.
grep /nsr/logs/daemon.log | grep "savegroup alert" | grep "0 Failed"
> The clients and savegroups that failed
grep /nsr/logs/daemon.log | grep "savegroup alert" | grep -v "0 Failed"
Of course, you can grep only date/time that interess you :
grep "your_date your_time" /nsr/logs/daemon.log | grep "savegroup alert" | grep
-v "0 Failed"
Hope this helps !
To sign off this list, send email to listserv AT listserv.temple DOT edu and
type "signoff networker" in the body of the email. Please write to
networker-request AT listserv.temple DOT edu if you have any problems with this
list. You can access the archives at
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER
|
|
|