snmpSession
- Description:
- The Created SNMP Session for the device.
Methods
(static) get(oids, callback)
- Description:
- Executes SNMP Get for a list of OIDs towards the device
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
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. |
(static) set(oid, value, callback)
- Description:
- Executes SNMP Set for an OID with its respective value and OID type defined.
Example
D.device.createSNMPSession().set('1.3.6.1.2.1.1.5.0', 'new-snmp-name', cb)
See SNMP Driver Examples
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. |
(static) walk(oid, callback)
- Description:
- Executes an SNMP Walk for an OID towards the device
Example
D.device.createSNMPSession().walk('1.3.6.1.2.1.1', cb)
See SNMP Driver Examples
Parameters:
Name |
Type |
Description |
oid |
string
|
The OID to perform the snmp walk for. |
callback |
snmpCallback
|
The SNMP Walk execution callback function. |