|Subject:||RE: [nv-l] How to pass Octet String trap parameter to script ?|
|From:||James Shanks <firstname.lastname@example.org>|
|Date:||Tue, 16 Sep 2003 12:16:58 -0400|
|Delivered-to:||mailing list email@example.com|
|Delivery-date:||Tue, 16 Sep 2003 17:17:43 +0100|
|Mailing-list:||contact firstname.lastname@example.org; run by ezmlm|
Ah. Now I see what you are driving at. You are correct, though the "confusion" is actually deliberate.
If the trap data is identified as "Octet String" and yet it contains unprintable characters then trapd displays the entire string in hex because it cannot determine whether the unprintable hex was important or not. Rather than not display something important, like a MAC address, it errs on the side of caution and delivers hex instead. But if you are seeing that hex display in the nvevents display window, then I believe that enclosing the variable in quotes will allow that same hex string to be passed to ovactiond, though I am not certain.
Level 3 Support for Tivoli NetView for UNIX and Windows
Tivoli Software / IBM Software Group
If trapd/nvevent gets confused about the type of data in the varbind, I have seen it dump values like the email below shows. It would be my guess it is getting escaped because the SNMP definition for that trap is not correct.
AIX 4.3.3 ML10 + NV 7.1.3 + popular patches.
I need to provide a script with the parameters found in a trap.
$1, $2, etc work fine for integers and strings but doesn't for Octet Strings.
It seems that the bytes are passed (and escaped for most of them) by ovactiond.
Is there is way to get the bytes string as displayed in the events window ?
( i.e. a string like "0x01 12 34 ab ..." )
- - -
Networking Delivery Support Center
Mail : email@example.com
Phone : +33 (0)4 92 11 48 69
Fax : +33 (0)4 93 24 49 07
|<Prev in Thread]||Current Thread||[Next in Thread>|
|Previous by Date:||RE: [nv-l] How to pass Octet String trap parameter to script ?, Allison, Jason (JALLISON)|
|Next by Date:||Re: [nv-l] trapd error, John Bruer|
|Previous by Thread:||RE: [nv-l] How to pass Octet String trap parameter to script ?, Allison, Jason (JALLISON)|
|Next by Thread:||Re: [nv-l] How to pass Octet String trap parameter to script ?, Philippe Menard|
|Indexes:||[Date] [Thread] [Top] [All Lists]|
Archive operated by Skills 1st Ltd
See also: The NetView Web