nv-l

Re: [nv-l] Cursed Cisco Trap Formats

2002-10-03 16:43:34
Subject: Re: [nv-l] Cursed Cisco Trap Formats
From: netview AT toddh DOT net (Todd H.)
To: "Barr, Scott" <Scott_Barr AT csgsystems DOT com>
Date: 03 Oct 2002 15:43:34 -0500
"Barr, Scott" <Scott_Barr AT csgsystems DOT 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/