Hi All,
I am using AdventNet SNMP API. I am using SnmpTrapReceiver, I am stuck in a tricky situation. My test scenario is as follows:
1. The agent is running on v2c.
2. I am able to receive traps and perform all the operations.
3. I am upgrading my agent to v3 with authPriv, after the upgrade agent starts sending v3 traps, my these traps are getting dropped, with the obvious reason of unable to authenticate and decrypt the coming trap.
I made the SnmpTrapReceiver.isTrapAuthEnable() to false by using setTrapAuthEnable() API, now it is giving me error for incorrect scoped data. I know it is because the USMTable does not have the security entry. My question is how should I make the entry?
I agree, If I use the create_v3_tables() then it will create the entry but not until the snmpd comes up with the v3 parameters because the discovery will fail. In the meantime I will lose some of the traps until the complete process of discovery, timesynch happens.
My questions:
Is there any way we can add the user entry without getting it discovered?
Is there any other way that I can avoid missing those traps by over-riding any method to use my own authentication and decryption logic? (I am using high-level APIs and can't migrate to low-level)
Regards,
Saurabh