snmpsim-command-responder --data-dir=/tmp/snmprec --agent-udpv4-endpoint=0.0.0.0:161 --process-user root --process-group root --debug all
Is avaliable to be queried:
root@d4abfe8a1569:/# snmpwalk -v 2c -c write snmphost:161
iso.3.6.1.2.1.27070.3.1.2.2.2.1.5.1 = IpAddress: 10.17.0.25
iso.3.6.1.2.1.27070.3.1.2.2.2.1.5.1 = No more variables left in this MIB View (It is past the end of the MIB tree)
Bad behavior
If I want to use writecache to allow write operations to be simulated, then
root@d4abfe8a1569:/# snmpwalk -v 2c -c write dektec:161
iso.3.6.1.2.1 = No more variables left in this MIB View (It is past the end of the MIB tree)
And I see this error log:
ERROR data error at /tmp/snmprec/write.snmprec controller for 1.3.6.1.2.1: value evaluation for 1.3.6.1.2.1.27070.3.1.2.2.2.1.5.1 = 'value=0a110019' failed: Bad IP address syntax 0a110019caused by <class 'ValueError'>: invalid literal for int() with base 10: '0a110019
As a workaround, I can serve the "writable" version with
Good behavior
Given this mib file
When served with this command line:
Is avaliable to be queried:
Bad behavior
If I want to use
writecache
to allow write operations to be simulated, thenIs not available to be queried:
And I see this error log:
As a workaround, I can serve the "writable" version with
Is it ok that writecache is not properly handling the
x
in64x
?Thank you!