hwMcTrunkSecurityKey
HUAWEI-MC-TRUNK-MIB ·
.1.3.6.1.4.1.2011.5.25.178.1.1.1.18
Object
column r/w
OctetString
This is the security key. It can be set to a string of 1 to 16 bytes. If hwMcTrunkSecurityKeyType is simple, you can get the key. If hwMcTrunkSecurityKeyType is cipher, the system returns a random string of 24 bytes.
Context
- MIB
- HUAWEI-MC-TRUNK-MIB
- OID
.1.3.6.1.4.1.2011.5.25.178.1.1.1.18- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- hwMcTrunkEntry
- 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-MC-TRUNK-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-MC-TRUNK-MIB::hwMcTrunkSecurityKey'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'HUAWEI-MC-TRUNK-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-MC-TRUNK-MIB::hwMcTrunkSecurityKey.<hwMcTrunkId>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'HUAWEI-MC-TRUNK-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'HUAWEI-MC-TRUNK-MIB::hwMcTrunkSecurityKey'
Syntax
OctetString
Values & Constraints
Object Constraints
range: 1-24
Conformance
Member of