pysnmp icon indicating copy to clipboard operation
pysnmp copied to clipboard

[Feature]: possibility to use multiple variation modules for the same OID in snmpsim

Open gotgot1995 opened this issue 10 months ago • 0 comments

Is your feature request related to a problem? Please describe.

Hi everyone 👋

I'm looking for a way to use multiple variation modules for one specific OID inside my simulation data file. For instance, I'd like to use the writecache and notification modules to allow writing an OID and trigger an SNMP trap.

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 how to use each variation module, something like:

1.3.6.1.2.1.1.1.0|4:writecache|value=some message
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:1.3.6.1.2.1.1.3.0:i:42,\
  value=some other value

Describe alternatives you've considered

As a workaround, I'm currently trying to merge the writecache and notification modules into one.

Additional context

No response

gotgot1995 avatar Apr 03 '24 09:04 gotgot1995