Cisco WS-C6506 Software Manual page 1184

Catalyst 6500 series switch
Hide thumbs Also See for WS-C6506:
Table of Contents

Advertisement

Configuring the Mini Protocol Analyzer on the Switch
Task
Step 6
(Optional) Specify the total number of packets
that are captured by the Mini Protocol Analyzer
session.
Note
Step 7
Verify the Mini Protocol Analyzer configuration. show packet-capture
Step 8
Start the Mini Protocol Analyzer session.
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
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
--------------------------------
Operational Status
Dump File Name
Direction
Filter - Source IP
Filter - Destination IP
Filter - Source MAC address
Filter - Destination MAC address
Number of packets to capture
Packet Snap Length
Catalyst 6500 Series Switch Software Configuration Guide—Release 8.7
49-22
The range is 0 to 32,000 packets. The
default is 1,000 packets.
Chapter 49
Configuring SPAN, RSPAN and the Mini Protocol Analyzer
Command
set packet-capture limit packet-number
set packet-capture start
bootflash:port_5_1_stats.
Value
----------------------------------------------
Not-running
bootflash:port_5_1_stats
rx
None
host 10.1.1.2/32,10.1.1.3/32
None
None
500
5000
OL-8978-04

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 6506Catalyst 6509Catalyst 6513

Table of Contents