Networker

Re: [Networker] is it possible to avoid getting savegroup notification for backup with SKIP level

2006-07-20 12:24:20
Subject: Re: [Networker] is it possible to avoid getting savegroup notification for backup with SKIP level
From: Itzik Meirson <imeirson AT MBI.CO DOT IL>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Thu, 20 Jul 2006 19:21:44 +0300
This can be done by replacing the standard savegroup completion
notification with a script.
Assuming you are on Unix a sample is provided below. This sample will
not send mails if all clients in group did a SKIP.
It will also insert the group name into the mail subject and append the
mail's contents to a file /nsr/logs/savegrp.log (as the one in Windows).
Itzik
#!/bin/bash
#
#set -o -vx
#
# Mail recipients
recipients="root [email protected] [email protected]"
#
fn=$$.`/usr/bin/date +%s`
/usr/bin/cat > $fn
grp=`/usr/bin/head -1 $fn | /usr/bin/awk '{print $4}'`
ns=`/usr/bin/cat $fn | /usr/bin/grep "level=" | /usr/bin/grep -v "=skip"
| wc -l`
if [[ $ns -gt 0 ]] 
        then /usr/bin/cat $fn | /usr/bin/mailx -s "`hostname`'s group
$grp savegroup completion" ${recipients}
fi
/usr/bin/cat $fn >> /nsr/logs/savegrp.log
echo `/usr/bin/date +"%x %X"` "Processed mail filter for group $grp" >>
/nsr/logs/mailfilter.log
rm $fn 

-----Original Message-----
From: Legato NetWorker discussion [mailto:NETWORKER AT LISTSERV.TEMPLE DOT EDU]
On Behalf Of Shyam Hegde
Sent: Thursday, July 20, 2006 17:49
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Subject: [Networker] is it possible to avoid getting savegroup
notification for backup with SKIP level

Hello List,

It is becoming very time consuming for me going through 100s of
savegroup notification for various groups we have and out of them more
than 50% are for groups which run LEVEL=SKIP! So it will be easier for
me if I could stop NetWorker to send notification for a froup which runs
on level SKIP for that day!

Anybody has some idea on how to achieve this?

I am not bothered much about bootstrap reports as I do not have read
them all and just keep it as record for DR purpose.

Regards
Shyam

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 wit 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

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
wit 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