inetCidrRouteNextHopType
IP-FORWARD-MIB ·
.1.3.6.1.2.1.4.24.7.1.5
Object
The type of the inetCidrRouteNextHop address, as
defined in the InetAddress MIB.
Value should be set to unknown(0) for non-remote
routes.
Only those address types that may appear in an actual
routing table are allowed as values of this object.
Context
- MIB
- IP-FORWARD-MIB
- OID
.1.3.6.1.2.1.4.24.7.1.5- Type
- column
- Access
- noaccess
- Status
- current
- Parent
- inetCidrRouteEntry
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-FORWARD-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'IP-FORWARD-MIB::inetCidrRouteNextHopType'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'IP-FORWARD-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'IP-FORWARD-MIB::inetCidrRouteNextHopType.<inetCidrRouteDestType>.<inetCidrRouteDest>.<inetCidrRoutePfxLen>.<inetCidrRoutePolicy>.<inetCidrRouteNextHopType>.<inetCidrRouteNextHop>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'IP-FORWARD-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'IP-FORWARD-MIB::inetCidrRouteNextHopType'
Syntax
- Source
- INET-ADDRESS-MIBInetAddressType
- Base type
Enumeration
Values & Constraints
Type Values
0 | unknown |
1 | ipv4 |
2 | ipv6 |
3 | ipv4z |
4 | ipv6z |
16 | dns |
25 | l2vpn |