Port Mirroring Operational Commands

Capturing Mirror Traffic

After you configure mirroring to CPU by using the commands above, you can use the capture command to capture the mirror traffic.

Syntax:

capture mirror file <file_name> [start | stop]

Attribute Description

<file_name>

Name of the file where mirror traffic is captured

Example: Starting and stopping mirror traffic to a file

capture mirror file test.pcap start
capture mirror file test.pcap stop

Show Commands

show capture sessions

Syntax:

show capture sessions

Option Description

-

Without any option, the commands displays the FIB packet Capture sessions.

Example: Summary of FIB packet capture sessions

supervisor@rtbrick: op> show capture sessions
Interface                      Direction   File                            Context
ifp-0/1/23                     BOTH        file1.pcap                      -