Hi
I had  that same issue and have a process that does this
(assumption is you have primary with precedence 10 and secondary with
precedence 20)

Alarm Notfier is always running on both servers
In setscript/clearscript I have set a quick check for the precedence of the
model the alarm is coming from
If the precedence is 10 the  primary emails,
If the precedence is 20 the  secondary emails

Needs the following modifications

in .alarmrc make sure you have

EXTRA_ATTRS_AS_ENVVARS set to include 0X12C0A
In SetScript and ClearScript on secondary I have added the following (after
the if SENDMAIL = True section )

if [ "$SANM_0X12C0A" = "10" ]
    then
    echo "SS Primary is running dropping email"
    echo "Precedence = $SANM_0X12C0A"
    exit 0
fi
 In SetScript and ClearScript on primary I have added the following (after
the if SENDMAIL = True section )

if [ "$SANM_0X12C0A" = "20" ]
    then
    echo "SS Secondary is running - drop emails"
    echo "Precedence = $SANM_0X12C0A"
    exit 0
fi



This works very well so far
On 17 March 2011 06:05, david klein <[email protected]> wrote:

> Is there a way from the commandline (vnmsh/environmental variable/look
> for specific process) to determine whether a particular VNM within a
> fault-tolerant pair is currently the active or the standby? We've run
> into a problem where both members of a FT pair are sending emails, and
> are annoying the recipients. We would like to check the status of the
> specific VNM as the first line of the SetScript and ClearScript to
> avoid this duplication.
>
>
>
> Thanks,
>
>  -DTK
>
>
> --
>
> david t. klein
>
> Cisco Certified Network Associate (CSCO11281885)
> Linux Professional Institute Certification (LPI000165615)
> Redhat Certified Engineer (805009745938860)
>
> Quis custodiet ipsos custodes?
>
> ---
> To unsubscribe from spectrum, send email to [email protected] with the
> body: unsubscribe spectrum [email protected]
>

---
To unsubscribe from spectrum, send email to [email protected] with the body: 
unsubscribe spectrum [email protected]

Reply via email to