ipDefaultRouterLifetime
IP-MIB ·
.1.3.6.1.2.1.4.37.1.4
Object
column secondsUnsigned32
The remaining length of time, in seconds, that this router
will continue to be useful as a default router. A value of
zero indicates that it is no longer useful as a default
router. It is left to the implementer of the MIB as to
whether a router with a lifetime of zero is removed from the
list.
For IPv6, this value should be extracted from the router
advertisement messages.
Context
- MIB
- IP-MIB
- OID
.1.3.6.1.2.1.4.37.1.4- Type
- column
- Access
- readonly
- Status
- current
- Units
- seconds
- Parent
- ipDefaultRouterEntry
- Groups
- 1
Net-SNMP examples
How SNMP and these commands workWalk the column to discover its indexed instances, or supply every index to read one instance.
Walk the column
/usr/bin/snmpbulkwalk -v2c -c '<community>' -Pud -Ir -OQUs -m 'IP-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'IP-MIB::ipDefaultRouterLifetime'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'IP-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'IP-MIB::ipDefaultRouterLifetime.<ipDefaultRouterAddressType>.<ipDefaultRouterAddress>.<ipDefaultRouterIfIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'IP-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'IP-MIB::ipDefaultRouterLifetime'
Syntax
secondsUnsigned32
Values & Constraints
Object Constraints
range: 0-65535
Conformance
Member of