swSystemUpTime
TIME-MIB ·
.1.3.6.1.4.1.171.12.10.10.2
Object
scalar OctetString
The time (in second) since the network management portion of the system was last re-initialized. It is the same as sysUptime.
Context
- MIB
- TIME-MIB
- OID
.1.3.6.1.4.1.171.12.10.10.2- Type
- scalar
- Access
- readonly
- Status
- current
- Parent
- swSystemTime
Net-SNMP examples
How SNMP and these commands workScalars have one instance, identified by the .0 suffix.
Read the scalar instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'TIME-MIB' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'TIME-MIB::swSystemUpTime.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'TIME-MIB' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'TIME-MIB::swSystemUpTime'
Syntax
OctetString
Values & Constraints
Object Constraints
range: 0-32