Mike -
What level of code are you using? $A is supposed to return the trap
sender, which should be the box reporting the down interface. You are
correct that technically it is netmon reporting this but that trap which
netmon sends says that the "agent" who sent the trap is the failing box.
So Blaine is correct -- $A gives you the box with the failing interface.
James Shanks
Tivoli (NetView for UNIX) L3 Support
Michael Dors <miked@mtp.gov> on 09/01/98 02:06:38 PM
Please respond to miked@mtp.gov
To: NV-L@UCSBVM.UCSB.EDU
cc: (bcc: James Shanks)
Subject: Re: Interface Down Events
Owens, Blaine wrote:
> Marc, if you are doing this via Event Configuration/Command for
> Automatic Action pass variable $A (agent reporting the trap).
>
> Blaine Owens
> bowens@eastman.com
>
> > -----Original Message-----
> > From: Marc Russo [SMTP:mrusso@AL.IISL.COM]
> > Sent: Monday, August 31, 1998 4:37 PM
> > To: NV-L@UCSBVM.ucsb.edu
> > Subject: Interface Down Events
> >
> > Whenever an interface goes down on a router, it sends a trap to my
> > NetView
> > system. I want to be emailed whenever this happens, and sometimes
> > paged,
> > depending on which interface is down. The problem I am having is when
> > I
> > pass this to sendmail, I can only pass the interface that is down
> > (i.e. $2),
> > but I cannot pass which node is reporting this. Does anyone know
> > which
> > variable I can pass to sendmail (and eventually the paging utility) to
> > let
> > me know which node is reporting an interface down?
> >
> > Thanks,
> >
> > Marc Russo (mrusso@al.iisl.com)
> > International Integrated Solutions, LTD
If this is a trap generated by Netview (via netmon) $A will return the
hostname of Netview.
|