hwIpDslamInterfaceIpPfxLen
HUAWEI-IPDSLAM-INTERFACE-MIB ·
.1.3.6.1.4.1.2011.6.161.1.2.1.4
Object
If hwIpDslamInterfaceIpAddressType is set to ipv4(1) or ipv6(2), then this value will contain an appropriate prefix length for the IP address in object hwIpDslamInterfaceIpAddress. Otherwise this value is irrelevant and should be ignored.
Context
- MIB
- HUAWEI-IPDSLAM-INTERFACE-MIB
- OID
.1.3.6.1.4.1.2011.6.161.1.2.1.4- Type
- column
- Access
- noaccess
- Status
- current
- Parent
- hwIpDslamInterfaceIpEntry
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 'HUAWEI-IPDSLAM-INTERFACE-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-IPDSLAM-INTERFACE-MIB::hwIpDslamInterfaceIpPfxLen'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'HUAWEI-IPDSLAM-INTERFACE-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-IPDSLAM-INTERFACE-MIB::hwIpDslamInterfaceIpPfxLen.<hwIpDslamInterfaceIpIfIndex>.<hwIpDslamInterfaceIpAddressType>.<hwIpDslamInterfaceIpAddress>.<hwIpDslamInterfaceIpPfxLen>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'HUAWEI-IPDSLAM-INTERFACE-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'HUAWEI-IPDSLAM-INTERFACE-MIB::hwIpDslamInterfaceIpPfxLen'
Syntax
- Source
- INET-ADDRESS-MIBInetAddressPrefixLength
- Base type
Unsigned32
Values & Constraints
Type Constraints
range: 0..2040