ipDefaultGateway

SWITCH-CHASSIS-MIB · .1.3.6.1.4.1.207.8.9.1.1.3.5

Object

scalar obsolete r/w SNMPv2-SMIIpAddress
The default gateway IP address that the device
will use after a restart.  The device's
operational default gateway IP address can be
determined by examining the value of the
ipRouteNextHop.0.0.0.0 attribute of the MIB-II
IP routing table.

Context

MIB
SWITCH-CHASSIS-MIB
OID
.1.3.6.1.4.1.207.8.9.1.1.3.5
Type
scalar
Access
readwrite
Status
obsolete
Parent
ipParams

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

Read the scalar instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'SWITCH-CHASSIS-MIB' -M '/opt/observium/mibs/allied-old:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'SWITCH-CHASSIS-MIB::ipDefaultGateway.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'SWITCH-CHASSIS-MIB' -M '/opt/observium/mibs/allied-old:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'SWITCH-CHASSIS-MIB::ipDefaultGateway'

Syntax

Source
SNMPv2-SMIIpAddress
Base type
OctetString

Values & Constraints

Type Constraints
range: 4