pysnmp
pysnmp copied to clipboard
how to implement com2sec like net-snmp
i want to implement the snmp agent. at the agent side, i want to specify the source address and each source address can use different community, what should id do?
i can use config below to implement by net-snmp
What you asked is actually how to configure an agent so that it handles security name/community name mapping properly.
The code base has an example showing the right way to go,
https://github.com/lextudio/pysnmp/blob/v5.0.35/examples/v3arch/asyncio/agent/cmdrsp/multiple-snmp-communities.py#L40