[SNMP4J] RE: Trying to send out SNMP Trap

Frank Fock fock at agentpp.com
Tue Mar 18 01:18:16 CET 2008


Hi Jim,

Jim Chan wrote:

> Stack Trace from the client indicates it received the trap but an error occurred:
> 
> Mar 17, 2008 1:20:12 PM org.snmp4j.log.JavaLogAdapter log
> INFO: UDP receive buffer size for socket 192.168.75.108/162 is set to: 8192
> Mar 17, 2008 1:20:20 PM org.snmp4j.log.JavaLogAdapter log
> SEVERE: RFC3412 ยง7.2.4 - Unsupported security model: 3
> 
Just configure the USM on the trap receiver site
correctly!

> I then tried replacing the notification target on the server with :
> 
>   targetMIB.addTargetParams(
>         new OctetString("v2c"), MessageProcessingModel.MPv2c,
>         SecurityModel.SECURITY_MODEL_SNMPv2c, new OctetString("cpublic"),
>         SecurityLevel.NOAUTH_NOPRIV, StorageType.permanent);
> 
> But then the server couldn't send out the trap anymore
> 
> 2008-02-17 14:03:09 [INFO] <Timer-0> Firing SNMP trap 1.3.6.1.4.1.3606.7.18.5.1.2   
> 2008-02-17 14:03:09 [INFO] <Timer-0> Notification 1.3.6.1.4.1.3606.7.18.5.1.2 issued with [1.3.6.1.4.1.3606.7.18.1.2.1.0 = 88]
> 2008-02-17 14:03:09 [DEBUG] <Timer-0> VACM access requested for context=, securityName=cpublic, securityModel=2, securityLevel=1, viewType=0, OID=1.3.6.1.4.1.3606.7.18.5.1.2
> 2008-02-17 14:03:09 [DEBUG] <Timer-0> Found group name 'v1v2group' for secName 'cpublic and secModel 2
> 2008-02-17 14:03:09 [DEBUG] <Timer-0> Got views [DefaultMOMutableRow2PC[index=9.118.49.118.50.103.114.111.117.112.6.112.117.98.108.105.99.0.1,values=[1, fullReadView, fullWriteView, fullNotifyView, 3, 1]] for group name 'v1v2group'
> 2008-02-17 14:03:11 [WARN] <Timer-0> Access denied by VACM for 1.3.6.1.4.1.3606.7.18.5.1.2
> 

Just configure the VACM to allow SNMPv2c notifications
with the listed OID.

Best regards,
Frank

> I am stumped right now on how to send out a trap/inform.  I am probably not configuring the traps correctly.  Any help would be greatly appreciated.  Thanks.
> 
> Jim Chan
>  
> _______________________________________________
> 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