SNMP – What is the Length of SNMP sysUpTime Counter?

ciscosnmp

What is the length of Cisco SNMP sysUpTime counter? 32 bits?

Best Answer

Did a quick test and it looks like the data is a type 'Timeticks' which is a 32 bit integer. From the RFC:

The TimeTicks type represents a non-negative integer which represents
the time, modulo 2^32 (4294967296 decimal), in hundredths of a second
between two epochs.  When objects are defined which use this ASN.1
type, the description of the object identifies both of the reference
epochs.

https://www.rfc-editor.org/rfc/rfc2578#section-7.1.8

[user@host ~]$ snmpwalk -v 2c -c $COMMUNITY $DEVICE sysUpTime
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (1342832478) 155 days, 10:05:24.78