[SNMP4J] PDU - extract all fields

Frank Fock fock at agentpp.com
Mon Jan 29 16:22:51 CET 2007


Hi,

Just use the corresponding methods, for example
http://www.snmp4j.org/doc/org/snmp4j/PDUv1.html#getGenericTrap()

Best regards,
Frank

Lauryca Puyulik wrote:
> I received some traps like this:
> 
> 13:05:28,390 INFO  [STDOUT] V1TRAP[reqestID=0,timestamp=0:00:00.16,
> enterprise=1.3.6.1.6.3.1.1.5,genericTrap=0,specificTrap=0, VBS[]]
> 14:52:21,937 INFO  [STDOUT]; 
> 
> V1TRAP[reqestID=0,timestamp=4:23:38.07,enterprise=1.
> 3.6.1.4.1.562.37.3.1,genericTrap=6,specificTrap=1, VBS[...]] 
> 
> How can I extract from the pdu the enterprise, genericTrap/specificTrap fields.
> 
> Thanks!
> 
>  
> ---------------------------------
> Any questions?  Get answers on any topic at Yahoo! Answers. Try it now.
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j

-- 
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com




More information about the SNMP4J mailing list