To: | nv-l@lists.tivoli.com |
---|---|
Subject: | RE: [nv-l] How to pass Octet String trap parameter to script ? |
From: | James Shanks <jshanks@us.ibm.com> |
Date: | Tue, 16 Sep 2003 12:16:58 -0400 |
Delivered-to: | mailing list nv-l@lists.tivoli.com |
Delivery-date: | Tue, 16 Sep 2003 17:17:43 +0100 |
Envelope-to: | nv-l-archive@lists.skills-1st.co.uk |
List-help: | <mailto:nv-l-help@lists.tivoli.com> |
List-post: | <mailto:nv-l@lists.tivoli.com> |
List-subscribe: | <mailto:nv-l-subscribe@lists.tivoli.com> |
List-unsubscribe: | <mailto:nv-l-unsubscribe@lists.tivoli.com> |
Mailing-list: | contact nv-l-help@lists.tivoli.com; 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. James Shanks 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. Jason Allison -----Original Message-----
All, 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 ..." ) Best regards, Philippe. - - - Philippe MÉNARD Networking Delivery Support Center Mail : pme@fr.ibm.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