I have a table of string entries some of which are empty, when attempting to walk them: snmpwalk -v 2c -c oops 172.13.13.172 1.3.6.1.2.1.31.1.1.1.1 ; the server dies:
assert.js:93
throw new assert.AssertionError({
^
AssertionError: 0 == true
at Writer._ensure (/tmp/node_modules/snmpjs/node_modules/asn1/lib/ber/writer.js:297:10)
at Writer.writeBuffer (/tmp/node_modules/snmpjs/node_modules/asn1/lib/ber/writer.js:156:8) at SnmpOctetString._octetstring_encode as encode
at SnmpVarbind.encode (/tmp/node_modules/snmpjs/lib/protocol/varbind.js:78:13)
at SnmpStdPDU.encode (/tmp/node_modules/snmpjs/lib/protocol/pdu.js:240:21)
at SnmpMessage.encode (/tmp/node_modules/snmpjs/lib/protocol/message.js:129:12)
at Agent._transmit_response (/tmp/node_modules/snmpjs/lib/agent.js:161:6) at ProviderRequest._getnext_done as _done
at handler (/tmp/my-test-program.js:321:6)
at /tmp/node_modules/snmpjs/lib/agent.js:372:3
I have a table of string entries some of which are empty, when attempting to walk them: snmpwalk -v 2c -c oops 172.13.13.172 1.3.6.1.2.1.31.1.1.1.1 ; the server dies:
assert.js:93 throw new assert.AssertionError({ ^ AssertionError: 0 == true at Writer._ensure (/tmp/node_modules/snmpjs/node_modules/asn1/lib/ber/writer.js:297:10) at Writer.writeBuffer (/tmp/node_modules/snmpjs/node_modules/asn1/lib/ber/writer.js:156:8) at SnmpOctetString._octetstring_encode as encode at SnmpVarbind.encode (/tmp/node_modules/snmpjs/lib/protocol/varbind.js:78:13) at SnmpStdPDU.encode (/tmp/node_modules/snmpjs/lib/protocol/pdu.js:240:21) at SnmpMessage.encode (/tmp/node_modules/snmpjs/lib/protocol/message.js:129:12) at Agent._transmit_response (/tmp/node_modules/snmpjs/lib/agent.js:161:6) at ProviderRequest._getnext_done as _done at handler (/tmp/my-test-program.js:321:6) at /tmp/node_modules/snmpjs/lib/agent.js:372:3