[SNMP4J] Problem listening to SNMP v3 traps

Frank Fock fock at agentpp.com
Wed Feb 27 21:44:52 CET 2008


Hi Pedro,

Are you sending a ScopedPDU when trying to send
a SNMPv3 notification? SNMPv1 traps cannot be
sent with SNMPv3 as the name suggests.

Best regards,
Frank

Pedro Franceschi schrieb:
> Hi,
>
> I have been using SNMP4J for a while. So far I had only tried SNMPv1 
> features. Now, I started dealing with SNMPv3 and there is no way I could 
> be able to listen to SNMPv3 traps. At the end, I followed every single 
> line of code in the examples and still I can only receive v1 traps. As a 
> last resource (to check if my code was wrong), I used the SnmpRequest 
> class to listen to v3 traps, which gave me the following output:
>
> Listening on 10.10.43.182/162
> Feb 27, 2008 3:16:29 PM org.snmp4j.log.JavaLogAdapter log
> INFO: UDP receive buffer size for socket 10.10.43.182/162 is set to: 8192
> V1TRAP[reqestID=0,timestamp=0:00:59.22,enterprise=1.3.6.1.4.1.2.6.158.3,genericTrap=6,specificTrap=22, 
> VBS[1.3.6.1.4.1.2.6.158.3.1.1.1 = Date(m/d/y)=07/16/01, 
> Time(h:m:s)=15:20:10; 1.3.6.1.4.1.2.6.158.3.1.1.2 = BladeCenter Advanced 
> Management Module; 1.3.6.1.4.1.2.6.158.3.1.1.3 = SN#0J1U9E58910R; 
> 1.3.6.1.4.1.2.6.158.3.1.1.4 = 26AF8F012FD811D78202A1F9BA1646D6; 
> 1.3.6.1.4.1.2.6.158.3.1.1.5 = 23A0103; 1.3.6.1.4.1.2.6.158.3.1.1.6 = 22; 
> 1.3.6.1.4.1.2.6.158.3.1.1.7 = 4; 1.3.6.1.4.1.2.6.158.3.1.1.8 = Application 
> posted alert to MM; 1.3.6.1.4.1.2.6.158.3.1.1.9 = No Contact Configured; 
> 1.3.6.1.4.1.2.6.158.3.1.1.10 = No Location Configured; 
> 1.3.6.1.4.1.2.6.158.3.1.1.11 = ; 1.3.6.1.4.1.2.6.158.3.1.1.12 = ; 
> 1.3.6.1.4.1.2.6.158.3.1.1.13 = ; 1.3.6.1.4.1.2.6.158.3.1.1.14 = 20; 
> 1.3.6.1.4.1.2.6.158.3.1.1.15 = SERVPROC]]
> Feb 27, 2008 3:17:12 PM org.snmp4j.log.JavaLogAdapter log
> WARNING: 1.3.6.1.6.3.11.2.1.3.0 = 1
> V1TRAP[reqestID=0,timestamp=0:00:59.23,enterprise=1.3.6.1.4.1.2.6.158.3,genericTrap=6,specificTrap=22, 
> VBS[1.3.6.1.4.1.2.6.158.3.1.1.1 = Date(m/d/y)=07/16/01, 
> Time(h:m:s)=15:20:10; 1.3.6.1.4.1.2.6.158.3.1.1.2 = BladeCenter Advanced 
> Management Module; 1.3.6.1.4.1.2.6.158.3.1.1.3 = SN#0J1U9E58910R; 
> 1.3.6.1.4.1.2.6.158.3.1.1.4 = 26AF8F012FD811D78202A1F9BA1646D6; 
> 1.3.6.1.4.1.2.6.158.3.1.1.5 = 23A0103; 1.3.6.1.4.1.2.6.158.3.1.1.6 = 22; 
> 1.3.6.1.4.1.2.6.158.3.1.1.7 = 4; 1.3.6.1.4.1.2.6.158.3.1.1.8 = Application 
> posted alert to MM; 1.3.6.1.4.1.2.6.158.3.1.1.9 = No Contact Configured; 
> 1.3.6.1.4.1.2.6.158.3.1.1.10 = No Location Configured; 
> 1.3.6.1.4.1.2.6.158.3.1.1.11 = ; 1.3.6.1.4.1.2.6.158.3.1.1.12 = ; 
> 1.3.6.1.4.1.2.6.158.3.1.1.13 = ; 1.3.6.1.4.1.2.6.158.3.1.1.14 = 20; 
> 1.3.6.1.4.1.2.6.158.3.1.1.15 = SERVPROC]]
> Feb 27, 2008 3:17:18 PM org.snmp4j.log.JavaLogAdapter log
> WARNING: 1.3.6.1.6.3.11.2.1.3.0 = 2
> V1TRAP[reqestID=0,timestamp=0:01:05.45,enterprise=1.3.6.1.4.1.2.6.158.3,genericTrap=6,specificTrap=22, 
> VBS[1.3.6.1.4.1.2.6.158.3.1.1.1 = Date(m/d/y)=07/16/01, 
> Time(h:m:s)=15:20:16; 1.3.6.1.4.1.2.6.158.3.1.1.2 = BladeCenter Advanced 
> Management Module; 1.3.6.1.4.1.2.6.158.3.1.1.3 = SN#0J1U9E58910R; 
> 1.3.6.1.4.1.2.6.158.3.1.1.4 = 26AF8F012FD811D78202A1F9BA1646D6; 
> 1.3.6.1.4.1.2.6.158.3.1.1.5 = 23A0103; 1.3.6.1.4.1.2.6.158.3.1.1.6 = 22; 
> 1.3.6.1.4.1.2.6.158.3.1.1.7 = 4; 1.3.6.1.4.1.2.6.158.3.1.1.8 = Application 
> posted alert to MM; 1.3.6.1.4.1.2.6.158.3.1.1.9 = No Contact Configured; 
> 1.3.6.1.4.1.2.6.158.3.1.1.10 = No Location Configured; 
> 1.3.6.1.4.1.2.6.158.3.1.1.11 = ; 1.3.6.1.4.1.2.6.158.3.1.1.12 = ; 
> 1.3.6.1.4.1.2.6.158.3.1.1.13 = ; 1.3.6.1.4.1.2.6.158.3.1.1.14 = 20; 
> 1.3.6.1.4.1.2.6.158.3.1.1.15 = SERVPROC]]
> V1TRAP[reqestID=0,timestamp=0:01:05.45,enterprise=1.3.6.1.4.1.2.6.158.3,genericTrap=6,specificTrap=22, 
> VBS[1.3.6.1.4.1.2.6.158.3.1.1.1 = Date(m/d/y)=07/16/01, 
> Time(h:m:s)=15:20:16; 1.3.6.1.4.1.2.6.158.3.1.1.2 = BladeCenter Advanced 
> Management Module; 1.3.6.1.4.1.2.6.158.3.1.1.3 = SN#0J1U9E58910R; 
> 1.3.6.1.4.1.2.6.158.3.1.1.4 = 26AF8F012FD811D78202A1F9BA1646D6; 
> 1.3.6.1.4.1.2.6.158.3.1.1.5 = 23A0103; 1.3.6.1.4.1.2.6.158.3.1.1.6 = 22; 
> 1.3.6.1.4.1.2.6.158.3.1.1.7 = 4; 1.3.6.1.4.1.2.6.158.3.1.1.8 = Application 
> posted alert to MM; 1.3.6.1.4.1.2.6.158.3.1.1.9 = No Contact Configured; 
> 1.3.6.1.4.1.2.6.158.3.1.1.10 = No Location Configured; 
> 1.3.6.1.4.1.2.6.158.3.1.1.11 = ; 1.3.6.1.4.1.2.6.158.3.1.1.12 = ; 
> 1.3.6.1.4.1.2.6.158.3.1.1.13 = ; 1.3.6.1.4.1.2.6.158.3.1.1.14 = 20; 
> 1.3.6.1.4.1.2.6.158.3.1.1.15 = SERVPROC]]
>
> Every time a traps were sent, only v1 traps were recognized. I am sure 
> SNMPv3 traps work on the target system im working on because I tested with 
> another 3rd party SNMP application and it worked. The OID form the WARNING 
> belongs to: snmpUnknownPDUHandlers. I am wondering if that means that the 
> v3 PDU sent was not recognized. If this is true, then what is the problem? 
> I appreciate you help in advance.
>
> Regards,
>
> Pedro Franceschi
> Automation Developer COOP
> FVT Automation Team - IBM
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j
>   





More information about the SNMP4J mailing list