ipDefaultTTL

IP-MIB · .1.3.6.1.2.1.4.2

Object

scalar r/w Integer32
The default value inserted into the Time-To-Live field of
the IPv4 header of datagrams originated at this entity,
whenever a TTL value is not supplied by the transport layer
          
protocol.
          
When this object is written, the entity should save the
change to non-volatile storage and restore the object from
non-volatile storage upon re-initialization of the system.
Note: a stronger requirement is not used because this object
was previously defined.

Context

MIB
IP-MIB
OID
.1.3.6.1.2.1.4.2
Type
scalar
Access
readwrite
Status
current
Parent
ip
Groups
2

Scalars have one instance, identified by the .0 suffix.

Read the scalar 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::ipDefaultTTL.0'
More examples
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::ipDefaultTTL'

Syntax

Integer32

Values & Constraints

Object Constraints
range: 1-255

Conformance