02-09-2005 03:53 AM - edited 03-02-2019 09:34 PM
Hi,
does anyone know where a system gets its info for its own system uptime (eg shown in 'sh ver')?
I was wondering if there's a maximum value for this. And what would happen if the system had a longer uptime than that value?
kind regards,
Dirk
02-10-2005 07:23 PM
Hi Dirk!
sysUPTime, as defined in RFC 1213, is 32-bit unsigned integer that indicates the number of hundredths of seconds since some arbitrary start date. Used for timestamping and to compute elapsed time. The maximum integer walue would be 4,294,967,296. Since this value is 1/100th of a second, it would translate to approximately 1 year and 4 months. In other words, if the router has been up for 1 year and 4 months, the sysUpTime counter will be reset to zero (0) and from an SNMP application, it would appear that the router rebooted.
On the other hand, Cisco decided to use a 64 bit object for its own system uptime. A 64 bit object would reset after 5,849,424,174 years;
What would happen if the system had a longer uptime than that value? I don't think that is a problem we are likely to face.
07-01-2013 11:07 AM
Hi Bauzenne,
Could you please provide me an exact name of this 64 bit counter used in CISCO devices?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide