Very true - but I have no idea what the contents mean. if NVATTR_2 is "2" for
ifType that is not the same if it is "2" for ifLocalReason. Yes, blanks are
detectable, but deciding which format the trap is still won't be easy unless I
can tell whether its a 3, 4, or 5 type trap. Mind you, all these routers are
running RECENT versions of IOS - everything is 11.3, 12.0 or higher. We're not
talking older than dirt, just not most recent.
Thanks again everyone, the cat skinning will begin soon.
> -----Original Message-----
> From: Todd H. [mailto:netview@toddh.net]
> Sent: Thursday, October 03, 2002 3:44 PM
> To: Barr, Scott
> Cc: nv-l
> Subject: Re: [nv-l] Cursed Cisco Trap Formats
>
>
> "Barr, Scott" <Scott_Barr@csgsystems.com> writes:
> > the 5th argument. (This is the IETF format one). And as far as I can
> > tell, if I pass the trap to a script, the variables are not passed
> > as "arguments" but as environment variables and the number of
> > environment variables is NOT something I can look at with a script.
>
> In a script, you can certainly test for the existence and
> non-blankness of
>
> $NVATTR_1
> $NVATTR_2
> $NVATTR_3
> $NVATTR_4
> $NVATTR_5
>
> and then process accordingly.
>
> --
> Todd H.
> http://www.toddh.net/
>
|