[snmp] SNMP trap send
Birgit Arkesteijn
birgit at westhawk.co.uk
Thu Oct 25 15:00:33 BST 2007
Hi Vijay,
Yes, you have to include those two varbinds to the varbind list of
TrapPduv2.
If you read the javadoc for uk.co.westhawk.snmp.stack.TrapPduv2, it says:
The variable bindings list contains the following pairs of object names
and values:
* sysUpTime.0 (SNMPv2-MIB)
* snmpTrapOID.0: part of the trap group in the SNMPv2 MIB (SNMPv2-MIB)
Cheers, Birgit
On 25/10/07 12:48, Vijay Gholap wrote:
> Hi,
>
> I am using westhawk snmp stack 5.1 in my application to send a trap. I
> have created a TrapPduv2 pdu and added the require variable bindings in it.
> After sending this pdu to another application(Trap receiver) its giving
> error. But after adding another following to value in to variable binding
> to pdu , its working fine.
> 1. sysUpTime(1.3.6.1.2.1.1.3.0): AsnUnsInteger(5)
> 2. snmpTrapOID(1.3.6.1.6.3.1.1.4.3.0): AsnObjectId("1.3.6.1.4.1.6718.1")
>
> Please let me what mistake i am doing. Or should i compulsory required to
> add above values in TrapPdu2 varbindings?.
>
>
> Regards,
> Vijay Gholap.
--
-- 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>
More information about the snmp
mailing list