Administrator Guide

Flow Vision Administrator’s Guide 47
53-1002999-01
Flow Mirror management
4
The following example creates a Flow Mirror flow named “Flow1” that monitors all traffic flowing
from device 010403 to device 020504 ingressing through port 10 on the switch on which this
command was run.
switch:admin> flow --create Flow1 -feature mirror -ingrport 10 -srcdev 010403
-dstdev 020504
When you create a flow, it is automatically activated unless you use the -noactivate keyword as part
of the flow --create command. Refer to “Creating an inactive flow in Flow Mirror” on page 47 for an
example.
ATTENTION
Flow creation is not allowed if Advanced Performance Monitor or Port Mirroring is enabled. Similarly,
APM and Port Mirroring-related operations will not be allowed if any flow (active or defined) is
present on the switch.
Creating an inactive flow in Flow Mirror
To create an inactive Flow Mirror flow enter the flow --create command with the -noactivate
keyword.
flow --create flowname -feature mirror flow_parameters -noactivate
Refer to Activating Flow Mirror flows on page 47 for information on activating a Flow Mirror flow.
The following example creates an inactive Flow Mirror flow (sflow8) from device 020a00 to
device 01c000 ingressing through port 10.
switch:admin> flow --create sflow8 -noactivate -feature mirror -ingrport 10
-srcdev 0x020a00 -dstdev 0x01c000
Activating Flow Mirror flows
To activate an inactive Flow Mirror flow, enter flow --activate flowname -feature mirror. Activating a
flow automatically clears all the flow statistics for that flow. The following example activates the
Flow Mirror flow named “Flow1”.
switch:admin> flow --activate Flow1 -feature mirror
Automatic activation of a Flow Mirror flow
Flow Mirror automatically activates a mirroring flow under the following conditions:
On flow creation unless the flow is created using the -noactivate keyword.
On slot power-on if the port parameter is part of the slot being powered on if the flow was
active when the slot was powered off.
On a High Availability (HA) failover, HA reboot, or a power cycle, if the flow was active when the
HA event occurred.
Flow Mirror will not automatically re-activate a flow if the port types are other than
16 Gbps-platform F_Ports running at 8 Gbps or less.