rcL3IpRouteFlags
SWITCH-L3-MIB ·
.1.3.6.1.4.1.8886.6.1.16.3.1.1.12
Object
column SNMPv2-SMIUnsigned32
Not implemented. Returns '0'.
Contains the information required for a netstat-like
'Flags' field.
The flags field represents a decimal value of the flags
specified for a given route. The following is a list of
currently available flag values:
0x1 | - route is usable (that is, 'up')
0x2 | - destination is a gateway
0x4 | - host specific routing entry
0x8 | - host or net unreachable
0x10 | - created dynamically (by redirect)
0x20 | - modified dynamically (by redirect)
0x40 | - message confirmed
0x80 | - subnet mask present
0x100 | - generate new routes on use
0x200 | - external daemon resolves name
0x400 | - generated by ARP
0x800 | - manually added (static)
0x1000 | - just discard packets (during updates)
0x2000 | - modified by management protocol
0x4000 | - protocol specific routing flag
0x8000 | - protocol specific routing flag
For example, if the entry in the Routing Table has a flag
value of decimal 5, (0x1 OR'ed with 0x4), then this route
is 'up' and usable and is host-specific.
Context
- MIB
- SWITCH-L3-MIB
- OID
.1.3.6.1.4.1.8886.6.1.16.3.1.1.12- Type
- column
- Access
- readonly
- Status
- current
- Parent
- rcL3IpRouteEntry
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 'SWITCH-L3-MIB' -M '/opt/observium/mibs/raisecom:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'SWITCH-L3-MIB::rcL3IpRouteFlags'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'SWITCH-L3-MIB' -M '/opt/observium/mibs/raisecom:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'SWITCH-L3-MIB::rcL3IpRouteFlags.<rcL3IpRouteDest>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'SWITCH-L3-MIB' -M '/opt/observium/mibs/raisecom:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'SWITCH-L3-MIB::rcL3IpRouteFlags'
Syntax
- Source
- SNMPv2-SMIUnsigned32
- Base type
Unsigned32
Values & Constraints
Type Constraints
range: 0..4294967295