Hey Marvin,
Probably should confirm what version of Networker and what platform you
are on.
We use Networker 7.2 and are blessed with it sitting on a windows 2k3
server (partly the reason I am up at midnight, on a Saturday night
watching the backups)
Anyway if you are using the NMC then you can use the gstclreport script
(I am using commands from Microsoft's Services For UNIX (SFU) so I can
do a little more with my batch files.
The gstclreport script resides under the \Management\GST\bin directory
where you have the NMC installed, there is also a help HTML file that is
vaguely useful that should be there also
What this script does is looks at the groups TransLog1 thru 4 save sets
that have run in the past 60 minutes that have a status of failed,
incomplete or unexpectedly exited, then removed the rubbish from the
output file, re arranges the columns and mails the file.
Hope this helps
Mat.
@echo off
echo.>x.csv
call gstclreport -u administrator -P administrator -r "Networker Backup
Status/Save Set Details by Client" -x csv -f x -C "Group Start Time" "60
minutes ago,now" -C "Group Name"
"TransLog1,TransLog2,TransLog3,TransLog4" -C "Status"
"failed,incomplete,unexpectedly exited" >nul
grep -E "\failed|\interrupted|\unexpectedly exited" x.csv | grep -v
"Status" >x2.csv
gawk -F, "{print $4,\" , \",$1,\" , \",$2,\" , \",$7}" x2.csv | sort /r
>x3.csv
gawk "END {printf NR;}" x2.csv >x4.csv
for /F "usebackq" %%a in (`type x4.csv`) do set count=%%a
rem echo %count%
if NOT "%count%" == "0" (
blat x3.csv -to [email protected] -s
hourly_failed_Transaction_Log_Report
) else (
echo No Errors
)
-----Original Message-----
From: EMC NetWorker discussion [mailto:NETWORKER AT LISTSERV.TEMPLE DOT EDU] On
Behalf Of Marvin
Sent: Saturday, 3 March 2007 2:29 AM
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Subject: [Networker] report on unsuccessful save sets
The notification emails show unsuccessful save sets.
Is there anyway I can generate a report that will show all unsuccessful
savesets over the last 24 hours.
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
********************************* DISCLAIMER *********************************
The information contained in the above e-mail message or messages (which
includes any attachments) is confidential and may be legally privileged. It is
intended only for the use of the person or entity to which it is addressed. If
you are not the addressee any form of disclosure, copying, modification,
distribution or any action taken or omitted in reliance on the information is
unauthorised. Opinions contained in the message(s) do not necessarily reflect
the opinions of the Queensland Government and its authorities. If you received
this communication in error, please notify the sender immediately and delete it
from your computer system network.
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
|