RE: dynamically changing the SnmpEngineID

2011-06-29 Thread Lewis Adam-VNQM87
Okay, I've coded what I hoped would work and it doesn't. When I change the engine ID (without rebooting), the SNMP requests fail with "Unknown engine ID" Roughly speaking, once I have changed the engine ID, I am doing the following: engineID_conf() clear_user_list() vacm_destroyAllAccessEntries(

How to check NetSNMP::OID tree inclusion?

2011-06-29 Thread Christian Roche
Hi there, in order to write an NetSNMP::Agent instance I need to check whether the OID received in a request by the agent is part of the OID tree that is handled by that agent. Also I need to extract the suffix from the registered root, the suffix being then used as a key in a hash array. So