[snmp] SNMP V2 Traps
Brian Jewell
brian.jewell at modius.com
Thu Aug 30 08:41:38 BST 2007
Birgit,
Thanks again for your help.
--Brian
-----Original Message-----
From: snmp-bounces at snmp.westhawk.co.uk
[mailto:snmp-bounces at snmp.westhawk.co.uk] On Behalf Of Birgit Arkesteijn
Sent: Thursday, August 30, 2007 3:34 AM
To: List for discussion of the Westhawk SNMP stack
Subject: Re: [snmp] SNMP V2 Traps
Hi Brian,
In Trapv2 the notifications are part of the varbind list.
Have a look at the javadoc for
uk.co.westhawk.snmp.stack.TrapPduv2
Reading http://www.ietf.org/rfc/rfc3418.txt,
I think that the Enterprise field in Trapv1 corresponds with the
(optional?) snmpTrapEnterprise OID in the varbind list of Trapv2.
The description says:
"The authoritative identification of the enterprise
associated with the trap currently being sent. When an
SNMP proxy agent is mapping an RFC1157 Trap-PDU
into a SNMPv2-Trap-PDU, this variable occurs as the
last varbind."
See also "4.2.6. The SNMPv2-Trap-PDU" of
http://www.ietf.org/rfc/rfc3416.txt
I hope this helps.
Cheers, Birgit
On 29/08/07 22:54, Brian Jewell wrote:
> Hi,
>
>
>
> I just wondered if you are familiar with an effective means of processing
> SNMP V2 traps?
>
>
>
> With V1 traps the "Enterprise" field, which contains an OID, can be used
to
> associate a trap with a MIB definition. The TrapPduv1.getEnterprise()
method
> will obtain this OID.
>
>
>
> However, with an SNMP V2 trap, there is no Enterprise field, and no
> TrapPduv2 methods available (as far as I can tell) to somehow identify
which
> trap in a MIB has been received.
>
>
>
> I was wondering if you are familiar with a common approach for solving the
> issue?
>
>
>
> Thanks in advance for your help.
>
>
>
> --Brian
>
> _______________________________________________
> snmp mailing list
> snmp at snmp.westhawk.co.uk
> http://snmp.westhawk.co.uk/mailman/listinfo/snmp
--
-- Birgit Arkesteijn, birgit at westhawk.co.uk,
-- Westhawk Ltd, Albion Wharf, 19 Albion Street, Manchester M1 5LN, UK
-- Company no: 1769350
-- Registered Office:
-- 15 London Road, Stockton Heath, Warrington WA4 6SJ. UK.
-- tel.: +44 (0)161 237 0660
-- <URL: http://www.westhawk.co.uk>
_______________________________________________
snmp mailing list
snmp at snmp.westhawk.co.uk
http://snmp.westhawk.co.uk/mailman/listinfo/snmp
More information about the snmp
mailing list