[snmp] SNMP Trap send problem

Birgit Arkesteijn birgit at westhawk.co.uk
Wed Oct 24 13:50:19 BST 2007


Hi Vijay,

That's an error in TrapPduv1, sorry.
It seems you're have to get back to SnmpContext and destroy the context 
after the trap has been send.
Just do a sleep of a few seconds, see uk.co.westhawk.examplev1.SendTrap

Sorry about that.
Cheers, Birgit


On 24/10/07 12:27, Vijay Gholap wrote:
> Hi,
> 
>    I am using westhawk snmp stak(5.1) to send a trap(snmp v1). In my
> application using snmpcontext class everything works fine, but if i changed
> SnmpContext class to SnmpContextPool, its give me following error..
> 
>  Exception in thread "main" java.lang.ClassCastException:
>  uk.co.westhawk.snmp.stack.SnmpContextPool
>  	at uk.co.westhawk.snmp.stack.TrapPduv1.send(TrapPduv1.java:225)
>  	at com.exfo.ems.nbi.client.SNMPClientV1.sendTrap(SNMPClientV1.java:65)
>  	at com.exfo.ems.nbi.client.SNMPFactory.main(SNMPFactory.java:29)
> 
>  Please help me out...
> 
>  Regards,
>  Vijay Gholap.
> 
> Disclaimer: The information contained in this e-mail and attachments if any are privileged and confidential and are intended for the individual(s) or entity(ies) named in this e-mail. If the reader or recipient is not the intended recipient, or employee or agent responsible for delivering to the intended recipient, you are hereby notified that dissemination, distribution or copying of this communication or attachments thereof is strictly prohibited. IF YOU RECEIVE this communication in error, please immediately notify the sender and return the original message.
> _______________________________________________
> 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>


More information about the snmp mailing list