ipRouteMask
SUN-SNMP ·
.1.3.6.1.2.1.4.21.1.11
Object
Indicate the mask to be logical-ANDed with the
destination address before being compared to the
value in the ipRouteDest field. For those systems
that do not support arbitrary subnet masks, an
agent constructs the value of the ipRouteMask by
determining whether the value of the correspondent
ipRouteDest field belong to a class-A, B, or C
network, and then using one of:
mask network
255.0.0.0 class-A
255.255.0.0 class-B
255.255.255.0 class-C
If the value of the ipRouteDest is 0.0.0.0 (a
default route), then the mask value is also
0.0.0.0. It should be noted that all IP routing
subsystems implicitly use this mechanism.
Context
- MIB
- SUN-SNMP
- OID
.1.3.6.1.2.1.4.21.1.11- Type
- column
- Access
- readwrite
- Status
- mandatory
- Parent
- ipRouteEntry
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 'SUN-SNMP' -M '/opt/observium/mibs/oracle:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'SUN-SNMP::ipRouteMask'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'SUN-SNMP' -M '/opt/observium/mibs/oracle:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'SUN-SNMP::ipRouteMask.<ipRouteDest>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'SUN-SNMP' -M '/opt/observium/mibs/oracle:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'SUN-SNMP::ipRouteMask'
Syntax
- Source
- RFC1155-SMIIpAddress
- Base type
OctetString
Values & Constraints
Type Constraints
range: 4