[SNMP4J] Sending own Traps with Snmp4j Agent Api

Saraswat, Deepak deepak.saraswat at hp.com
Tue Jul 17 16:22:07 CEST 2007


Hi Frank,

 

I am using Snmp4j-Agent api's to send traps. I have extended the base
agent class as explained in Javadoc and is able to send/receive the Clod
start trap that is sent by Base Agent.

 

However, my own traps are getting dropped. Saying "Access denied by VACM
for 1.2.3.4.5.6.7.7". I am not able to catch how to make it work. I
would appreciate any guidance in this. I have also tried to set
notificationid as that of trapOid. Do you think I need to register this
Trap Object with the agent to get it working.

 

I am mainly handling V1/V2 traps do you think I need to take out any
view related configuration that is in TestAgent.java classs.

 

Thanks for your response in advance.

 

Regards,

Deepak

 

 

4474 [main] INFO org.snmp4j.agent.mo.snmp.NotificationOriginatorImpl  -
Sent notification INFORM[reqestID=1685849312, errorStatus=0,
errorIndex=0, VBS[1.3.6.1.2.1.1.3.0 = 0:00:00.42; 1.3.6.1.6.3.1.1.4.1.0
= 1.3.6.1.6.3.1.1.5.1]] to
org.snmp4j.UserTarget[address=15.76.222.117/162, version=3,
timeout=2000, retries=1]

4475 [main] INFO org.snmp4j.agent.mo.snmp.NotificationOriginatorImpl  -
Notification 1.2.3.4.5.6.7.7 issued with [1.2.3.4.5.6.7.7 = Null,
1.2.3.4.5.6.7.8 = Null]

4475 [main] DEBUG org.snmp4j.agent.mo.snmp.VacmMIB  - VACM access
requested for context=, securityName=SHADES, securityModel=3,
securityLevel=3, viewType=0, OID=1.2.3.4.5.6.7.7

4475 [main] DEBUG org.snmp4j.agent.mo.snmp.VacmMIB  - Found group name
'v3group' for secName 'SHADES and secModel 3

4475 [main] DEBUG org.snmp4j.agent.mo.snmp.VacmMIB  - Got views
[DefaultMOMutableRow2PC[index=7.118.51.103.114.111.117.112.0.3.3,values=
[1, fullReadView, fullWriteView, fullNotifyView, 3, 1]] for group name
'v3group'

4475 [main] DEBUG org.snmp4j.agent.mo.snmp.VacmMIB  - Matching view
found for group name 'v3group' is 'fullNotifyView'

4475 [main] WARN org.snmp4j.agent.mo.snmp.NotificationOriginatorImpl  -
Access denied by VACM for 1.2.3.4.5.6.7.7




More information about the SNMP4J mailing list