hwMstpPortId2
HUAWEI-MSTP-MIB ·
.1.3.6.1.4.1.2011.5.25.42.4.1.24.1.2
Object
column Integer32
The value of this object identifies the port ID field 2 allocated by MSTP.
Context
- MIB
- HUAWEI-MSTP-MIB
- OID
.1.3.6.1.4.1.2011.5.25.42.4.1.24.1.2- Type
- column
- Access
- noaccess
- Status
- current
- Parent
- hwMstpPortBindEntry
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-MSTP-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-MSTP-MIB::hwMstpPortId2'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'HUAWEI-MSTP-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-MSTP-MIB::hwMstpPortId2.<hwMstpProID>.<hwMstpPortId1>.<hwMstpPortId2>.<hwMstpPortId3>.<hwMstpPortId4>.<hwMstpPortIdFlag>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'HUAWEI-MSTP-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'HUAWEI-MSTP-MIB::hwMstpPortId2'
Syntax
Integer32
Values & Constraints
Object Constraints
range: 0-2147483647