pysnmp
pysnmp copied to clipboard
[Feature]: possibility to send multiple traps for the same OID using the notification module in snmpsim
Is your feature request related to a problem? Please describe.
Hi everyone 👋
I'm looking for a way to send multiple traps for one specific OID using the notification
module in snmpsim. Is this currently possible ?
Describe the solution you'd like
A possible solution would be to have multiple entries for the same OID in the simulation data file with each entry describing a different trap to send, something like :
1.3.6.1.2.1.1.1.0|4:notification|op=get,version=1,community=public,proto=udp,host=127.0.0.1,port=162,ntftype=trap,trapoid=1.3.6.1.4.1.20408.4.1.1.2.0.432,uptime=12345,agentaddress=127.0.0.1,enterprise=1.3.6.1.4.1.20408.4.1.1.2,varbinds=1.3.6.1.2.1.1.3.0:i:42,value=some other value
1.3.6.1.2.1.1.1.0|4:notification|op=get,version=1,community=public,proto=udp,host=127.0.0.1,port=162,ntftype=trap,trapoid=1.3.6.1.4.1.20408.4.1.1.2.0.432,uptime=12345,agentaddress=127.0.0.1,enterprise=1.3.6.1.4.1.20408.4.1.1.2,varbinds=1.3.6.1.2.1.1.1.0:s:snmpsim agent
Thanks in advance for your help.
Describe alternatives you've considered
No response
Additional context
No response