Namespace: snmpSession

snmpSession

The Created SNMP Session for the device.

Methods

(static) get(oids, callback)

Executes SNMP Get for a list of OIDs towards the device
Parameters:
Name Type Description
oids Array.<string> A list of OID strings to execute an SNMP Get towards.
callback snmpCallback The SNMP GET execution callback function.
Example
D.device.createSNMPSession().get(['1.3.6.1.2.1.1.5.0', '1.3.6.1.2.1.1.7.0'], cb)
See SNMP Driver Examples

(static) set(oid, value, callback)

Executes SNMP Set for an OID with its respective value and OID type defined.
Parameters:
Name Type Description
oid string The OID to perform the snmp set for. Must be writable.
value string | int The new value to set on that OID
callback snmpCallback The SNMP Set execution callback function.
Example
D.device.createSNMPSession().set('1.3.6.1.2.1.1.5.0', 'new-snmp-name', cb)
See SNMP Driver Examples

(static) walk(oid, callback)

Executes an SNMP Walk for an OID towards the device
Parameters:
Name Type Description
oid string The OID to perform the snmp walk for.
callback snmpCallback The SNMP Walk execution callback function.
Example
D.device.createSNMPSession().walk('1.3.6.1.2.1.1', cb)
See SNMP Driver Examples