Networker

Re: [Networker] Percentage of successful backups

2004-08-13 17:35:47
Subject: Re: [Networker] Percentage of successful backups
From: "Reed, Ted G II [ITS]" <ted.reed AT MAIL.SPRINT DOT COM>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Fri, 13 Aug 2004 16:34:35 -0500
Depending on how "accurate" you are required to be, here's a quick script that 
I'm SURE could be improved upon but which I use to give success rates to my 
management. (For example, you could programmatically change the previous months 
variable (on Aug 1 I run for July numbers) so to not have to edit the script)

Remember, this is not a "GOOD" script...it's just a script.  My management 
doesn't complain about the numbers but YMMV.  Oh, and you have to run this on 
each master you have in your environment, because the data is only for the 
master you execute on.....no networking capabilities.
--Ted


#!/usr/bin/ksh
# To create success/fail files:
#
# Variables to change:
#       grep "^$Month/" .... (The ^ says "lines starting with $Month/")

echo `uname -a| awk '{print $2}'`
grep "^07/" /nsr/logs/daemon.??? | grep starting | grep savegroup >> /tmp/S
grep "^07/" /nsr/logs/daemon.??? | grep Failed | grep -v " 0 Failed" >> /tmp/F
echo "Total started clients:  \c";
awk '{sum=sum+$9};END{print sum}' /tmp/S
echo "Total failed clients:  \c";
awk '{sum=sum+$14};END{print sum}' /tmp/F

rm /tmp/S
rm /tmp/F


-----Original Message-----
From: Legato NetWorker discussion
[mailto:NETWORKER AT listmail.temple DOT edu]On Behalf Of Stan Horwitz
Sent: Friday, August 13, 2004 12:27 PM
To: NETWORKER AT listmail.temple DOT edu
Subject: [Networker] Percentage of successful backups


I have been asked to provide daily information regarding the percentage of
successful NetWorker backups. Management here was not too clear about this
request so I am assuming I need to compute something along the lines of

total backups attempted / total backups succeeded * 100

and I have no idea how to do that. This is with Power Edition Networker
6.1.3 but we are going to migrate to 7.x this coming week under Solaris 9.

If anyone has any ideas on how to derive such a number programmatically,
let me know. I do know perl.

--
Note: To sign off this list, send a "signoff networker" command via email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

--
Note: To sign off this list, send a "signoff networker" command via email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=