myRoutingProtoInfoGateWay

MY-ROUTE-MIB · .1.3.6.1.4.1.4881.1.1.10.2.20.1.2.1.2

Object

For rip ,the gateway is this router's neighbor.
for ospf ,the gateway is  the router Id of this router,
New entry will be addded when router ID is changed.

Context

MIB
MY-ROUTE-MIB
OID
.1.3.6.1.4.1.4881.1.1.10.2.20.1.2.1.2
Type
column
Access
readonly
Status
current
Parent
myRoutingProtoInfoEntry
Groups
1

Walk 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 'MY-ROUTE-MIB' -M '/opt/observium/mibs/ruijie:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'MY-ROUTE-MIB::myRoutingProtoInfoGateWay'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'MY-ROUTE-MIB' -M '/opt/observium/mibs/ruijie:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'MY-ROUTE-MIB::myRoutingProtoInfoGateWay.<myRoutingProtoInfoProtoType>.<myRoutingProtoInfoGateWay>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'MY-ROUTE-MIB' -M '/opt/observium/mibs/ruijie:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'MY-ROUTE-MIB::myRoutingProtoInfoGateWay'

Syntax

Source
SNMPv2-SMIIpAddress
Base type
OctetString

Values & Constraints

Type Constraints
range: 4

Conformance