staticRouteIfNumber

ZHONE-COM-IP-STATIC-ROUTE-MIB · .1.3.6.1.4.1.5504.4.1.13.1.1.4

Object

The interface of the static route.  This is for directly
connected destinations (i.e. use this instead of
staticRouteNextHop).  Unnumbered point-to-point interfaces
require this value to be valid.  In general, this value must
be valid if staticRouteNextHop is not valid.  If
staticRouteNextHop is valid, then this value must represent
the interface named by the nexthop address.  This index comes
from ifIndex of RFC2233.

Context

MIB
ZHONE-COM-IP-STATIC-ROUTE-MIB
OID
.1.3.6.1.4.1.5504.4.1.13.1.1.4
Type
column
Access
noaccess
Status
current
Parent
staticRouteEntry

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 'ZHONE-COM-IP-STATIC-ROUTE-MIB' -M '/opt/observium/mibs/zhone:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'ZHONE-COM-IP-STATIC-ROUTE-MIB::staticRouteIfNumber'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'ZHONE-COM-IP-STATIC-ROUTE-MIB' -M '/opt/observium/mibs/zhone:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'ZHONE-COM-IP-STATIC-ROUTE-MIB::staticRouteIfNumber.<rdIndex>.<staticRouteDest>.<staticRouteNetMask>.<staticRouteNextHop>.<staticRouteIfNumber>.<staticRouteType>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'ZHONE-COM-IP-STATIC-ROUTE-MIB' -M '/opt/observium/mibs/zhone:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'ZHONE-COM-IP-STATIC-ROUTE-MIB::staticRouteIfNumber'

Syntax

Source
IF-MIBInterfaceIndexOrZero
Base type
Integer32
Display format
d
Type Description
This textual convention is an extension of the
InterfaceIndex convention.  The latter defines a greater
than zero value used to identify an interface or interface
sub-layer in the managed system.  This extension permits the
additional value of zero.  the value zero is object-specific
and must therefore be defined as part of the description of
any object which uses this syntax.  Examples of the usage of
zero might include situations where interface was unknown,
or when none or all interfaces need to be referenced.

Values & Constraints

Type Constraints
range: 0..2147483647