How to get X-Series chassis uptime information using SNMP.
This article describes how to use SNMP to obtain chassis uptime information. Other methods to get the data are also described.
To use SNMP to get the amount of time since the X-Series chassis was last initialized, use the HOST-RESOURCES-MIB (host -> hrSystem -> hrSystemUptime). The OID is .126.96.36.199.188.8.131.52.1.0.
# snmpget -v 1 -c public 172.16.1.1 .184.108.40.206.220.127.116.11.1.0
The uptime value can also be accessed from Linux by using either of the following commands:
# cat /proc/uptime
Do not confuse this MIB with the
sysUpTime MIB from RFC1213 (RFC1213 -> system -> sysUpTime), OID .18.104.22.168.22.214.171.124.0. This MIB refers to the time since the network management portion of the system was re-initialized. It indicates when the SNMPagent was started, not when the system itself last booted.
# snmpget -v 1 -c public 172.16.1.1 .126.96.36.199.188.8.131.52.0
This is a Linux standard.
Imported Document ID: 000019620
Subscribing will provide email updates when this Article is updated. Login is required.
Thanks for your feedback. Let us know if you have additional comments below. (requires login)
Subscribed to the Article.
Unable to subscribe
Thanks for your additional feedback !!!
Enterprise Support Virtual Agent
Rate Me :
Tell us more:
Welcome! My name is Sami, the Enterprise Support Virtual Agent answering technical support questions.