SNMP Timeticks Converter
Convert an SNMP TimeTicks integer or a snmpwalk output line into elapsed seconds and a readable duration. TimeTicks are measured in hundredths of a second. The converter accepts a raw integer or the parenthesized value commonly returned for sysUpTime.0, then displays days, hours, minutes, seconds, and fractional seconds.
Time conversion
Convert SNMP Timeticks to uptime
Convert sysUpTime or a Timeticks value from snmpwalk into seconds and a readable duration. One TimeTicks unit is one hundredth of a second.
Elapsed time
0d 10h 54m 41.77s
Seconds
39,281.77
sysUpTime reports hundredths of a second
Days
0.455
SNMP TimeTicks are unsigned 32-bit hundredths of a second. They wrap after about 497 days. sysUpTime measures time since the network-management subsystem initialized, which may differ from the host's boot time.
How SNMP sysUpTime is measured
The standard sysUpTime object is a TimeTicks value representing time since the network-management portion of the system was reinitialized. Divide the integer by 100 to get seconds. For example, 3,928,177 ticks represent 39,281.77 seconds, or about 10 hours, 54 minutes, and 41.77 seconds.
TimeTicks is an unsigned 32-bit value. It wraps after 4,294,967,295 ticks, which is approximately 497.1 days. A lower reading can therefore indicate rollover, a restarted agent, or a device reboot. Compare sequential samples with care, especially when uptime is near the wrap limit.
sysUpTime is not always host uptime
An SNMP agent may restart independently from the operating system. sysUpTime starts again when the SNMP management subsystem initializes, while hrSystemUptime in HOST-RESOURCES-MIB describes host initialization time. Vendors can implement details differently, so compare both values when diagnosing a suspected reboot.
To detect a reboot from polling, retain the previous uptime and system identity. A sudden decrease that cannot be explained by the approximately 497-day counter wrap is evidence of a restart. A changed sysObjectID, sysName, or engine identifier can help distinguish a replaced device from a restart.