calmh / node-snmp-native

Native Javascript SNMP library for Node.js
MIT License
252 stars 65 forks source link

Responses truncated at/around 129 characters #13

Closed regulatre closed 11 years ago

regulatre commented 11 years ago

I'm seeing an issue where long snmp responses are being truncated (to 129 characters). For example a really long sysDescr.

I re-produced the issue using a few lines of sample code on the git page so I'm pretty sure it's something within the node-snmp-native library that's truncating it.

BH

calmh commented 11 years ago

There is a difference of encoding of strings above that length, so it sounds reasonable. Could you grab a pcap of doing an snmpget of such a value so I can verify and if so fix it? tcpdump -s0 -w snmp.pcap -i <someinterface> port 161 and then just snmpget using either node-snmp or regular snmpget tool.

regulatre commented 11 years ago

Done. http://pastebin.com/faSJrp2U

calmh commented 11 years ago

Fixed in 1.0.15. Thanks for reporting and collecting data on it.

regulatre commented 11 years ago

Confirmed! Well done, and thank you. This is a great module.