portCopyDirection
SMON-MIB ·
.1.3.6.1.2.1.16.22.1.3.1.1.4
Object
column r/w
Enumeration
This object affects the way traffic is copied from a switch
source port, for the indicated port copy operation.
If this object has the value 'copyRxOnly(1)', then only
traffic received on the indicated source port will be copied
to the indicated destination port.
If this object has the value 'copyTxOnly(2)', then only
traffic transmitted out the indicated source port will be
copied to the indicated destination port.
If this object has the value 'copyBoth(3)', then all traffic
received or transmitted on the indicated source port will be
copied to the indicated destination port.
The creation and deletion of instances of this object is
controlled by the portCopyRowStatus object. Note that there
is no guarantee that changes in the value of this object
performed while the associated portCopyRowStatus object is
equal to active will not cause traffic discontinuities in the
packet stream.
Context
- MIB
- SMON-MIB
- OID
.1.3.6.1.2.1.16.22.1.3.1.1.4- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- portCopyEntry
- 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 'SMON-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'SMON-MIB::portCopyDirection'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'SMON-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'SMON-MIB::portCopyDirection.<portCopySource>.<portCopyDest>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'SMON-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'SMON-MIB::portCopyDirection'
Syntax
Enumeration
Values & Constraints
Enumerated Values
1 | copyRxOnly |
2 | copyTxOnly |
3 | copyBoth |
Conformance
Member of