Following example shows the difference between uptime and snmpwalk commands.
# uptime
12:13:48 up 580 days, 51 min, 8 users, load average: 2.38, 1.70, 2.70
# snmpwalk -v2c -c public localhost .1.3.6.1.4.1.2021.10.1.5
UCD-SNMP-MIB::laLoadInt.1 = INTEGER: 243
UCD-SNMP-MIB::laLoadInt.2 = INTEGER: 172
UCD-SNMP-MIB::laLoadInt.3 = INTEGER: 270
# snmpwalk -v2c -c public localhost .1.3.6.1.4.1.2021.10.1.6
UCD-SNMP-MIB::laLoadFloat.1 = Opaque: Float: 2.240000
UCD-SNMP-MIB::laLoadFloat.2 = Opaque: Float: 1.690000
UCD-SNMP-MIB::laLoadFloat.3 = Opaque: Float: 2.680000
Snmp has 2 oids for load average, integer and floating point. The value of floating point is the same as uptime, To convert integer load average value from snmpwalk, simplely devide it by 100.
Wednesday, April 17, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment