Reputation: 1621
There is one simulator available using pySNMP called SNMP simulator.
It sets a default context name value. Is there anyway to set custom context name value for snmpv3 ?
Here is an extract from snmpsimd.py where i tried to give context name value.
config.addContext(snmpEngine, '')
Giving value as custom parameter is not setting value there.
Upvotes: 0
Views: 2139
Reputation: 244
If you are building an Agent, you should register your contextName at SnmpContext class instance. See examples here and here.
If your app is a Manager based on pysnmp's high-level API, you should pass contextName to getCmd/setCmd(). See example an here (search for contextName).
Please clarify your task if my suggestions do not help.
Upvotes: 1