hwMACsecPortRole
HUAWEI-MACSEC-MIB ·
.1.3.6.1.4.1.2011.5.25.347.1.1.1.2
Object
column Enumeration
Indicates the MKA role of the port. Options: 1. nonkeyserver(1) -indicates the MKA role of the port is supplicant. 2. keyserver(2) -indicates the MKA role of the port is key server.
Context
- MIB
- HUAWEI-MACSEC-MIB
- OID
.1.3.6.1.4.1.2011.5.25.347.1.1.1.2- Type
- column
- Access
- notifyonly
- Status
- current
- Parent
- hwMACsecPortCfgEntry
- 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 'HUAWEI-MACSEC-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-MACSEC-MIB::hwMACsecPortRole'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'HUAWEI-MACSEC-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-MACSEC-MIB::hwMACsecPortRole.<hwMACsecIfIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'HUAWEI-MACSEC-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'HUAWEI-MACSEC-MIB::hwMACsecPortRole'
Syntax
Enumeration
Values & Constraints
Enumerated Values
1 | nonkeyserver |
2 | keyserver |
Conformance
Member of