In regard to: [Networker] Finding Completion Report History?, Vygur said...:
Currently we have it setup that when a backup completes or fails it
sends us an email with a summary, i'm trying to find a way to find it
via command line or wherever in the event we need to go back to one
that we have deleted from our email. Is this possible? Thanks again
for all the help! Hopefully soon I can be the one helping others!
Off the top of my head, I can think of a couple options:
1) (low tech) The same stuff that's sent in the emails is generally
logged to the "logs" directory on your NetWorker server(s). If you keep
those logs, you could always use text search tools like "grep" to find
what you need.
2) NMC includes a number of reports. If you look in
/Reports/NetWorker Backup Status/Save Set Details by Client
and report on backup statuses of
failed,incomplete,unexpectedly exited
you generally get what failed. Note that there's a command line tool
that comes with the GUI that you can run from scripts to generate all
kinds of reports. I'm doing this:
my $report='/Reports/NetWorker Backup Status/Save Set Details by Client';
my $statuses='failed,incomplete,unexpectedly exited';
my @cmd = ( '/opt/lgtonmc/bin/gstclreport',
'-u', $conf->user(),
'-P', $conf->password(),
'-f', $temp_file,
'-o', 'landscape',
'-x', 'csv',
'-r', $report,
'-C', 'Server Name', $servers,
'-C', 'Status', $statuses,
'-C', 'Group Start Time', '1 day'
);
to generate a report on all the failures for the previous day and then
post-processing the CSV and mailing it to the people that need to be
notified.
There are lots of reports included with NMC. Combined with the command
line "gstclreport" and the various output formats, you can generate a lot
of useful info.
Note: One area you *can't* query to get information about failures is
the media database. mminfo will certainly tell you about savesets that
were started but that failed for some reason, but savesets that were
never started (client was down, client auth issues, etc.) wouldn't appear
in the media database.
Tim
--
Tim Mooney Tim.Mooney AT ndsu DOT
edu
Enterprise Computing & Infrastructure 701-231-1076 (Voice)
Room 242-J6, IACC Building 701-231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164
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
|