Re: [Networker] notification emails
2005-06-09 12:55:35
Ekstrom, Jeffery wrote:
Some of our clients don't like receiving notification emails everyday for their servers. They only want to receive emails when their full backup runs.
I'm running
networker 7.1.2 on Solaris 9
senmail as mta
any ideas?
This script came from the SysAdmin April issue. I use this on my
systems. This script changes the Subject to include the Group name.
#*********************************************************************
# Listing 1
# File: sc.sh
#
# Description:
# This file will:
#
# 1) Email you the savegroup completion report with proper subjects
# 2) Save a history of the SCR on the file system for later review.
#
# Author: John Ouellette
#
#*********************************************************************
DAY=`date +%d`
MNTH=`date +%B`
YEAR=`date +%EY`
TIME=`date +%T`
DIR=/nsr/res/savegroups
MAIL=/usr/bin/mailx
RECP=john_ouellette AT yahoo DOT com
##Dump and Setup
cat > $DIR/$$.rpt
GROUP=`cat $DIR/$$.rpt |grep -i savegroup | cut -d" " -f4`
SUBJECT="$GROUP completion report"
##Email
cat $DIR/$$.rpt | $MAIL -s "$SUBJECT" $RECP
##Cleanup and Sort
echo $DIR $YEAR-$MNTH-$DAY-$TIME-$GROUP.rpt
##Make new Dirs and Move SCRs
mkdir -p $DIR/$YEAR/$MNTH
mv $DIR/$$.rpt $DIR/$YEAR/$MNTH/$YEAR-$MNTH-$DAY-$TIME-$GROUP.rpt
rm $DIR/$$.rpt
#*********************************************************************
--
Note: To sign off this list, send a "signoff networker" command via email
to listserv AT listserv.temple DOT edu or visit the list's Web site at
http://listserv.temple.edu/archives/networker.html where you can
also view and post messages to the list. Questions regarding this list
should be sent to stan AT temple DOT edu
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
|
|
|