snmp-factory
A very simple snmp connection pool manager
The purpose of this module is to reuse existing connections to a particular device.
Open a new connection whenever you intend to communicate with a device is costly and causes slowness in aplications and prevent nodejs exceed their limetes.
Usage
var snmpFactory = ; var snmpSessionOptions = ip: "127.0.0.1" community: "private" options: port: 161 retries: 1 timeout: 500 transport: "udp4" version: 1 ; snmpFactory;
API
getConnection(snmpSessionOptions)
The only parameter is a connection object for a snmp connection.
isVarbindError
Exposes the net-snmp isVarbindError function.
varbindError
Exposes the net-snmp varbindError function.