This post is more than 5 years old

4 Operator

 • 

14.4K Posts

6033

August 12th, 2011 04:00

savegroup failure notification

Question for resident EMC people.  One of the most wanted modifications requested in past 10 years I have seen was for savegroup notifications alert (in case of failure) to include group name.  At the moment, out of the box, you always get emails with subject savegrp alert.  Since alerts are done and sent out by NW it would be logical to have some sort of the control of this and knowing what has failed from subject line would put some ease at further parsing and manipulation of it in respect to automated further actions.

Does EMC plan to change this?  It does not sound as something that would be hard to implement.

334 Posts

August 16th, 2011 06:00

Ok, no problem.  Let me see if I can find it.  I'll raise this as a concern and see if we can get it moving again.

Allan

334 Posts

August 15th, 2011 18:00

Hi Hrvoje,

Past 10 years?   I asked around a bit on this and was told it would be fairly easy to do. Have you ever submitted an RFE for it?

Allan

4 Operator

 • 

14.4K Posts

August 16th, 2011 02:00

Sorry Allan, I could not trace down RFE id... At the time I raised this I was told RFE existed and we would be (customer to be more precise) be added to list of affected customers.  That was really many years ago.  Since than this has been raised several times by other different customers and more recently two users on forum have asked the same.

4 Operator

 • 

14.4K Posts

August 16th, 2011 11:00

Thanks Allan!

1 Message

August 19th, 2011 03:00

Hello,

there is a script for solaris, but it fails sometime (when position of the group's title is not correct)

#*********************************************************************
# Listing 1
# File: emailSCR.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 - modified by Amaury Gravy
#
#*********************************************************************
#!/bin/bash
#set -x
DAY=`date  +%d`
MNTH=`date +%B`
YEAR=`date +%EY`
TIME=`date +%T`
DIR=/opt/backup/scrlogs
MAIL=/usr/bin/mailx
PID=$
##Dump and Setup
cat > $DIR/$PID.rpt
GROUP=`cat $DIR/$PID.rpt |grep -i savegroup |head -n 1|awk 'BEGIN { FS=" " } {print $4}'`
##Trigger Group Status : Status Aborted if word aborted in log
if [ `cat $DIR/$PID.rpt |grep -i aborted |wc -l` -gt 0 ]
then
STATUS="Failed"
GROUP=`cat $DIR/$PID.rpt |grep -i savegroup |head -n 1|awk 'BEGIN { FS=" " } {print $5}'`
else
STATUS="Successful"
fi
if [ $STATUS -eq "Successful" ]
then
        ##Trigger Group Status : Failed or Successful
        if [ `cat $DIR/$PID.rpt |grep -i savegroup |head -n 1|cut -d" " -f12` -gt 0 ]
        then
        STATUS="Failed"
        fi
        ##Trigger Group Status : Status Never Started if word Never in log
        if [ `cat $DIR/$PID.rpt |grep -i never |wc -l` -gt 0 ]
        then
        STATUS="Never Started"
        fi
        ##Trigger Group Status : Status Warning if more than one word Failed in log
        if [ `cat $DIR/$PID.rpt |grep -i Failed |wc -l` -gt 1 ]
        then
        STATUS="Successful"
        fi
        ##Trigger Group Status : Status Failed if word Unsuccessful in log
        if [ `cat $DIR/$PID.rpt |grep -i Unsuccessful |wc -l` -gt 0 ]
        then
        STATUS="Failed"
        fi
fi
##Subject of the email
SUBJECT="$GROUP $STATUS"
##Email
cat $DIR/$PID.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/$PID.rpt $DIR/$YEAR/$MNTH/$YEAR-$MNTH-$DAY-$TIME-$GROUP.rpt
#*********************************************************************

1 Attachment

4 Operator

 • 

14.4K Posts

August 19th, 2011 10:00

Hi Amaury,

The scripted way is not a problem, but whole idea is that for something basic as this there shouldn't be need to make a script as it should be provided at basic level by application.  If yiu check older NW forum and its history you will find many different scripted approaches to achieve this on several popular platforms.

.c

334 Posts

September 8th, 2011 12:00

Hi Hrvoje,

I wanted to get back to you on this with a little more detail.  I was told that this is still on the list, but it turns out it is a bit more complicated than it seems on the surface.  It's not a problem from the savegroup side, but would require major work on the notifications side.

Here's how it works:

Savegrp generates events of type “savegroup” which are sent to the server.  The server then generates notifications if a 'NSR notification' for this event type has been configured.

The challenge is that the event handler doesn't support a way to send the group name to populate the subject line.  This is not specific to savegrp notifications, for example 'device cleaned' or 'client install', notification cannot currently have the name of the device/client in the subject of the notification for the same reason.

So let's keep an eye on it.  Hopefully we can get it to the top of the list some day!

Allan

4 Operator

 • 

14.4K Posts

September 8th, 2011 13:00

Thanks!

Top