To: | nv-l <nv-l@lists.tivoli.com> |
---|---|
Subject: | RE: [nv-l] How to pass Octet String trap parameter to script ? |
From: | "Allison, Jason (JALLISON)" <JALLISON@arinc.com> |
Date: | Tue, 16 Sep 2003 12:40:18 -0400 |
Delivered-to: | mailing list nv-l@lists.tivoli.com |
Delivery-date: | Tue, 16 Sep 2003 17:41:37 +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 |
Are
you sure that the data you are sending is formatted correctly in the ASN.1/SMI
trap?
If I
were in your shoes I would circumvent nvevents and get my info directly from
trapd. This will allow you to look directly into the trap and pull what
data you need. You can do this using the Netview API 'OVsnmpRecv'.
Take a look at /usr/OV/prg_samples, you will find examples
there.
Remember vardinds are a union structure so you need to look at the type
before making a determination of the data content. Varbind types as
defined by Netview (that I use) are:
case ASN_INTEGER:
case ASN_U_INTEGER:
case ASN_TIMETICKS:
case ASN_GAUGE:
case ASN_COUNTER:
case ASN_OCTET_STR: case ASN_OPAQUE:
case ASN_IPADDRESS:
case ASN_OBJECT_ID:
case ASN_NULL:
Best
of luck,
Jason Allison
|
<Prev in Thread] | Current Thread | [Next in Thread> |
---|---|---|
|
Previous by Date: | Re: [nv-l] How to pass Octet String trap parameter to script ?, Philippe Menard |
---|---|
Next by Date: | Re: [nv-l] How to pass Octet String trap parameter to script ?, James Shanks |
Previous by Thread: | Re: [nv-l] How to pass Octet String trap parameter to script ?, Philippe Menard |
Next by Thread: | Re: [nv-l] How to pass Octet String trap parameter to script ?, James Shanks |
Indexes: | [Date] [Thread] [Top] [All Lists] |
Archive operated by Skills 1st Ltd
See also: The NetView Web