hwMirrorToCpu
HUAWEI-QOS-MIB ·
.1.3.6.1.4.1.2011.5.2.7.1.15
Object
Indicates whether to mirror packets to the CPU. Options: 1. true(1) -indicates to mirror packets to the CPU 2. false(2) -indicates to mirror packets to a specified port If you want to mirror packets to a destination port, you can set hwMirrorToIfIndex rather than hwMirrorToCpu. If hwMirrorToCpu is set to true(1) and hwMirrorToIfIndex is entered, the packets will be mirrored to the destination port specified in hwMirrorToIfIndex.
Context
- MIB
- HUAWEI-QOS-MIB
- OID
.1.3.6.1.4.1.2011.5.2.7.1.15- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- hwMirrorEntry
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-QOS-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-QOS-MIB::hwMirrorToCpu'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'HUAWEI-QOS-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-QOS-MIB::hwMirrorToCpu.<hwMirrorAclIndex>.<hwMirrorIfIndex>.<hwMirrorDirection>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'HUAWEI-QOS-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'HUAWEI-QOS-MIB::hwMirrorToCpu'
Syntax
- Source
- SNMPv2-TCTruthValue
- Base type
Enumeration
Type Description
Represents a boolean value.
Values & Constraints
Type Values
1 | true |
2 | false |