node-snmp-native
node-snmp-native copied to clipboard
Pushing up to 16 VarBinds in packet can cause some devices to drop packet.
https://github.com/calmh/node-snmp-native/blob/13b1428cd90c6f281e7ae7bc3147245d1ad98939/lib/snmp.js#L636-L640
I have run into a few networked devices (mostly resource-constrained, such as UPS network cards), which will just drop a packet which has has tried to shove up to 16 Var Binds in it, due to it being too large. By changing this value to 5 or 6, the device will accept it.
Excerpt from the SNMP Protocol Specification RFC1157 Page 16, Chapter 4:
An implementation of this protocol need not accept messages whose length exceeds 484 octets.
I will look into a way to determine the real-time size as the packet gets constructed to see if we can limit the size of the packet to 484 bytes.