On 4 January 2012 17:30, Shibu George <[email protected]> wrote:
> From our sub-agent application we need to send a number of SNMP V3 traps to
> our SNMP Manager application.

The "expected" way to handle this within an AgentX subagent would be to
pass the notifications (as AgentX traps) to the master agent, and have that
master agent send them to the desired trap receiver (using a suitable
"trapsess" directive in the main snmpd.conf file).
   That's how things would work if you use the normal 'send_v2trap' or
similar routines.


> We have referred snmptrap.c file and wrote function for sending trap
> (from sub –agent) to SNMP Manager. This is working fine.

That's a reasonable alternative, yes.
Particularly if you want to control these notifications independently.



> At startup time, sub-agent sends a number of traps to SNMPManager, but
> sometimes SNMP Manager discarding  the SNMP V3 traps from the sub-agent.

"Sometimes" ?
Does this mean that the missing traps happen inconsistently?
Or do none of the SNMPv3 traps from the subagent get through?

Can you reproduce this problem consistently?

If it's an erratic occurance, then that's always much harder to diagnose,
since it's probably related to timing, or something similar.
   If you can reproduce the problem on demand, then that's easier to
work with.



>  One thing we have noticed is that, during this time all trap’s Security
> Engine ID , Context Engine ID and engineBoots are same.

That doesn't sound right.
The two engineIDs are likely to be the same, but the engineBoots count
would almost invariably be a different value.



> Is there any chance to discard snmp v3 traps by SNMP Manager Application?

If the timestamp/bootcount values used by the two ends of the conversation
are different, then yes - this will result in the packets being discarded.
(And usually an SNMPv3 report being returned).


Are you working with SNMPv3 traps or informs?
(i.e. are they acknowledged or not?)

How are the SNMPv3 users set up on the two sides of the conversation?



What traps does the main agent send?
Are these working OK.

Dave

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to