Networker

Re: [Networker] Send Savegroup Completion Report to a file {resol ved}

2002-10-02 15:56:32
Subject: Re: [Networker] Send Savegroup Completion Report to a file {resol ved}
From: "Glassman, Adam" <adam.glassman AT ATTWS DOT COM>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Wed, 2 Oct 2002 15:56:15 -0400
Thanks to all who contributed to this thread.  I have come up with a very
simple solution which I will no doubt refine as I address other reporting
needs. This script has the dual benefit of putting the group name in the
email subject line and creating a log file for each savegroup on the
NetWorker server.

#! /usr/bin/ksh
# This script works in conjunction with the Networker notifications
# The intent is to have e-mail notification of group completion
#   and a logfile for each notification.


IN=/tmp/in.$$  #temp filename
LIST='email AT address DOT com'

/usr/bin/tee $IN   #create temp file from stdout generated by NetWorker

GROUP=`egrep "Savegroup" $IN |awk '{print $4}'`

/usr/bin/cat $IN | /usr/bin/mailx -s "$GROUP Backup Results" $LIST

mv $IN /nsr/reports/savegroup/$GROUP.`date -u +%b%d`  #looks like
9:00AM.Oct02

cheers,

Adam

-----Original Message-----
From: Glassman, Adam [mailto:adam.glassman AT ATTWS DOT COM]
Sent: Tuesday, October 01, 2002 2:01 PM
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Subject: [Networker] Send Savegroup Completion Report to a file


I would like to have my Savegroup Completion Reports saved to disk in text
files in addition to receiving them as email.  I have seen people on this
list describe using scripts to gather information about the reports and they
all seem to have the reports in files on the server, but I don't see any way
to do this in the Admin Guide or the archives of this list.  Ideally, each
report would show up as a file with a name like "clientname.date".  Creating
the file may be as simple as creating a new savegroup report type and
putting a redirect in the action field:
 > /nsr/reports/"groupname".`date -u +%b%d%E`.
If that's the case then how do I get the groupname from NetWorker?

Another option I have thought of is to have all the savegroups appended to a
single file and then write some cron job / perl script that will parse it
and split it into separate files.  This seems like a lot of work for
something that should/could be handled by the application.

If anyone is currently doing this, I would be very interested in hearing
how.

I am running Networker 6.1.1 on HPUX 11.  We have about 20 groups.

Adam Glassman
System Administrator
AT&T Wireless Services
Desk: 425.288.7820
Mobile: 206.295.0039

--
Note: To sign off this list, send a "signoff" 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" 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.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Networker] Send Savegroup Completion Report to a file {resol ved}, Glassman, Adam <=