i developed a simple snmp v1 agent, which forwards snmp traps.

in the settings dialog i changed the version to v1 and activated oid based proxy and the trap filtering. then i removed the trap filtering block in the source code.

maybe there's another way to get this. but the listener port option is only available if you select the trap filtering. if you ask me it should be even possible without the proxy. but that's something else.

so i compile and run the application.

IT CHANGES THE GENERIC TYPE!

if i'm sending a coldStart (generic:0, specific:0) trap i'll get a ??? (generic:6, specific:0) trap forwarded. enterprise specific traps like (generic:6, specific:34) work fine. the result gets even stranger if i'm sending anything like (generic:3, specific:4), then i get (generic:6, specific:3)... huh???

i suspect the SnmpTrapReceiverService, cause the agent's own coldStart trap during startup looks fine.

how can i fix this? is there an easy way around? i just need to forward traps, proxy funcionality isn't needed at all.

AdventNet Agent Toolkit Java Edition 5
AdventNet SNMP API 4 SP2 ( Release 4.0.2 )

thanks...
  • No status
the standard traps (coldstart, linkdown, linkup,..) of cisco (cat2924) and sun (sea) are sent with a enterprise oid different than snmp (.1.3.6.1.2.1.11) to identify the agent.

seems that the toolkit can't handle this...
Hi,

As you had said, as of now we are expecting the Enterprise field to be '.1.3.6.1.2.1.11'(snmp group) for the Generic v1 traps.

On reffering some mail threads in comp.protocol.snmp Google group, it seems there are two interpretations for RFC 1215

1. Enterprise field should be 'snmp' group
2. Enterprise field should be the value of 'sysObjectId' (.1.3.6.1.2.1.1.2)

We are looking into this. If needed, we will be changing our design to accomodate the correct standard.

Thanks for pointing this out.

Kind regards,
Thiyagarajan
Post Actions
Statistics
  • 3
     Replies
  • 6426
     Views
  • 0
     Followers
Tags for the post
No tags available for this topic.
© 2009 Corp. All rights reserved. Trademarks | Privacy Policy | Site Map | Contact Us | Careers

Edit Link Delete Link

Edit Link Delete Link

LoadingImage