Diagnosing Switch Problems Port Mirroring
OmniSwitch AOS Release 8 Network Configuration Guide December 2017 page 34-15
Configuring Port Mirroring Direction
By default, port mirroring sessions are bidirectional. To configure the direction of a port mirroring session 
between a mirrored port and a mirroring port, use the port-mirroring source destination CLI command 
by entering port mirroring, followed by the port mirroring session ID number, the source and destination 
slot/ports, and bidirectional, inport, or outport.
In this example, the command specifies port mirroring session 6, with the mirrored (active) port located in 
slot 2/port 3 and the mirroring port located in slot 6/port 4. The mirroring direction is unidirectional and 
inward bound:
-> port-mirroring 6 source 2/3 destination 6/4 inport
In this example, the command specifies port mirroring session 6, with the mirrored (active) port located in 
slot 2/port 3, and the mirroring port located in slot 6/port 4. The mirroring direction is unidirectional and 
outward bound:
-> port-mirroring 6 source 2/3 destination 6/4 outport
You can use the bidirectional keyword to restore a mirroring session to its default bidirectional 
configuration. For example:
-> port-mirroring 6 source 2/3 destination 6/4 bidirectional
Enabling or Disabling a Port Mirroring Session (Shorthand)
Once a port mirroring session configuration has been created, this command is useful for enabling or 
disabling it (turning port mirroring on or off) without having to re-enter the source and destination ports 
and unblocked VLAN ID command line parameters.
To enable a port mirroring session, enter the port-mirroring command, followed by the port mirroring 
session ID number and the keyword enable. The following command enables port mirroring session 6 
(turning port mirroring on):
-> port-mirroring 6 enable
To disable a port mirroring session, enter the port-mirroring command, followed by the port mirroring 
session ID number and the keyword disable. The following command disables port mirroring session 6 
(turning port mirroring off):
-> port-mirroring 6 disable
Note. Optionally, you can also specify the optional unblocked VLAN ID number and either enable or 
disable on the same command line.
Note. The port mirroring session identifier and slot/port locations of the designated interfaces must always 
be specified.
Note. Port mirroring session parameters cannot be modified when a mirroring session is enabled. Before 
you can modify parameters, the mirroring session must be disabled.