bgpIpPreLen
DC-BGP-MIB ·
.1.2.826.42.1.1578918.5.65.1.5.2.1.10
Object
The Length (in bits) part of the prefix (as in the 16 in a 128.128/16 prefix). When attempting to match a prefix to this address, only the first len bits of the match prefix are checked. This allows for wildcard matching when combined with le and/or ge.
Context
- MIB
- DC-BGP-MIB
- OID
.1.2.826.42.1.1578918.5.65.1.5.2.1.10- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- bgpIpPreEntry
- Groups
- 1
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 'DC-BGP-MIB' -M '/opt/observium/mibs/versa:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'DC-BGP-MIB::bgpIpPreLen'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'DC-BGP-MIB' -M '/opt/observium/mibs/versa:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'DC-BGP-MIB::bgpIpPreLen.<bgpRmEntIndex>.<bgpRouteMapIndex>.<bgpRouteMapNumber>.<bgpIpPreMatch>.<bgpIpPreNumber>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'DC-BGP-MIB' -M '/opt/observium/mibs/versa:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'DC-BGP-MIB::bgpIpPreLen'
Syntax
- Source
- INET-ADDRESS-MIBInetAddressPrefixLength
- Base type
Unsigned32
Values & Constraints
Type Constraints
range: 0..2040
Conformance
Member of