Uptime over snmp wrong
Posted: Fri Jun 17, 2016 10:45 am
Hi All
I would like to check when the server has been booted the last time or how log it is already running.
But I get three different values?!? (see below=
When is use the OID 1.3.6.1.2.1.1.3.0 i get 88 days.
When is use the OID .1.3.6.1.2.1.25.1.1.0 I get 18 days but
when I run uptime on the Server I get 515 days!
# uptime
17:38pm up 515 days 4:29, 1 user, load average: 0.00, 0.01, 0.05
# snmpget -v2c -cxxxxx hostname .1.3.6.1.2.1.25.1.1.0
HOST-RESOURCES-MIB::hrSystemUptime.0 = Timeticks: (156257837) 18 days, 2:02:58.37
snmpget -v2c -cxxxxx hostname 1.3.6.1.2.1.1.3.0
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (767329167) 88 days, 19:28:11.67
I would prefer to use snmp to check this value. Which value is the correct one?
Can you help?
I would like to check when the server has been booted the last time or how log it is already running.
But I get three different values?!? (see below=
When is use the OID 1.3.6.1.2.1.1.3.0 i get 88 days.
When is use the OID .1.3.6.1.2.1.25.1.1.0 I get 18 days but
when I run uptime on the Server I get 515 days!
# uptime
17:38pm up 515 days 4:29, 1 user, load average: 0.00, 0.01, 0.05
# snmpget -v2c -cxxxxx hostname .1.3.6.1.2.1.25.1.1.0
HOST-RESOURCES-MIB::hrSystemUptime.0 = Timeticks: (156257837) 18 days, 2:02:58.37
snmpget -v2c -cxxxxx hostname 1.3.6.1.2.1.1.3.0
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (767329167) 88 days, 19:28:11.67
I would prefer to use snmp to check this value. Which value is the correct one?
Can you help?