Has anyone had success with Set commands on a any SensorHub? If so, do you have documentation?
Comments
Administrator
SNMP Set could be utilized by using the necessary tools to do so ie, Net-SNMP on Linux. Hence, the documentation that's going to be needed will depend on the tool to be used.
We will provide with an example on the Sensorhub in a follow-up post
Administrator
From the ServersCheck SensorHub, this can be utilized by manipulating its outputs given that direct output is enabled which can be verified from the "Sensor Status" page.
For example, if that is enabled, the default integer value would be "0" which can be verified by doing an SNMP Get say on output 1 state: snmpget -v 2c -c public sensorhub.company.local .1.3.6.1.4.1.17095.7.1.0
To enable this, that is to put a value of 1, simply do an SNMP Set: snmpset -v 2c -c private sensorhub.company.local .1.3.6.1.4.1.17095.7.1.0 i 1
To check the OID's, do an SNMP Walk on the device.
Comments
We will provide with an example on the Sensorhub in a follow-up post
For example, if that is enabled, the default integer value would be "0" which can be verified by doing an SNMP Get say on output 1 state: snmpget -v 2c -c public sensorhub.company.local .1.3.6.1.4.1.17095.7.1.0
To enable this, that is to put a value of 1, simply do an SNMP Set: snmpset -v 2c -c private sensorhub.company.local .1.3.6.1.4.1.17095.7.1.0 i 1
To check the OID's, do an SNMP Walk on the device.
For more of Net-SNMP's SNMP Set syntax, kindly refer here: http://www.net-snmp.org/wiki/index.php/TUT:snmpset
All OIDs show "read-only" when we do a walk?
That's on the "Enable Direct Output (Relay and Output)" section.