ipAddressPrefixLength
IP-MIB ·
.1.3.6.1.2.1.4.32.1.4
Object
The prefix length associated with this prefix.
The value 0 has no special meaning for this object. It
simply refers to address '::/0'.
Context
- MIB
- IP-MIB
- OID
.1.3.6.1.2.1.4.32.1.4- Type
- column
- Access
- noaccess
- Status
- current
- Parent
- ipAddressPrefixEntry
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-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'IP-MIB::ipAddressPrefixLength'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'IP-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'IP-MIB::ipAddressPrefixLength.<ipAddressPrefixIfIndex>.<ipAddressPrefixType>.<ipAddressPrefixPrefix>.<ipAddressPrefixLength>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'IP-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'IP-MIB::ipAddressPrefixLength'
Syntax
- Source
- INET-ADDRESS-MIBInetAddressPrefixLength
- Base type
Unsigned32
Values & Constraints
Type Constraints
range: 0..2040