nv-l
[Top] [All Lists]

Re: [nv-l] Cursed Cisco Trap Formats

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

<Prev in Thread] Current Thread [Next in Thread>

Archive operated by Skills 1st Ltd

See also: The NetView Web