49-22
Catalyst 6500 Series Switch Software Configuration Guide—Release 8.7
OL-8978-04
Chapter 49 Configuring SPAN, RSPAN and the Mini Protocol Analyzer
Configuring the Mini Protocol Analyzer on the Switch
This example shows how to configure the Mini Protocol Analyzer so that so that all traffic that is sent
and received from port 5/1 is copied to a file on the bootflash memory called port_5_1_stats:
Console> (enable)
set packet-capture 5/1
Capturing port set to 5/1.
Console> (enable)
set packet-capture dump-file bootflash:port_5_1_stats
Packet capture dump file name set to bootflash:port_5_1_stats.
The date and time when the Mini Protocol Analyzer session is started will be appended to the output
filename. For example, if the Mini Protocol Analyzer session was started July 28, 2008 at 4:54:08 p.m.
Greenwich Mean Time (GMT), the filename for the previous example would be
port_5_1_stats_080728-165408.
This example shows how to specify that only traffic that has either a destination address of 10.1.1.2 or a
destination address of 10.1.1.3 will be captured:
Console> (enable)
set packet-capture filter destination ip 10.1.1.2
Successfully added the filter string.
Console> (enable)
set packet-capture filter destination ip 10.1.1.3
Successfully added the filter string.
This example shows how to specify the direction of the traffic to be captured:
Console> (enable)
set packet-capture direction tx
Packets from transmit (tx) direction will be captured.
This example shows how to specify that all packets will be captured but packets that have a length of
5,000 bytes or larger will be truncated to 5,000 bytes:
Console> (enable)
set packet-capture snap-length 5000
Packets captured will be truncated to 5000 bytes.
This example shows how to specify that 500 packets will be captured during the Mini Protocol Analyzer
session. After 500 packets have been captured, the Mini Protocol Analyzer session will end.
Console> (enable)
set packet-capture limit 500
Packet capture number set to 500.
This example shows how to verify the configuration of the Mini Protocol Analyzer:
Console> (enable)
show packet-capture
Packet-capture parameter Value
-------------------------------- ----------------------------------------------
Operational Status Not-running
Dump File Name bootflash:port_5_1_stats
Direction rx
Filter - Source IP None
Filter - Destination IP host 10.1.1.2/32,10.1.1.3/32
Filter - Source MAC address None
Filter - Destination MAC address None
Number of packets to capture 500
Packet Snap Length 5000
Step 6
(Optional) Specify the total number of packets
that are captured by the Mini Protocol Analyzer
session.
Note
The range is 0 to 32,000 packets. The
default is 1,000 packets.
set packet-capture limit
packet-number
Step 7
Verify the Mini Protocol Analyzer configuration.
show packet-capture
Step 8
Start the Mini Protocol Analyzer session.
set packet-capture
start
Task
Command