The objective of this article is to show how to configure onboard packet capture (OPC) in Catalyst 1200 and 1300 switches using the web user interface (UI).
The OPC feature enhances troubleshooting capabilities on the device. When enabled, OPC will allocate up to a maximum of 20MB of memory for capturing packet data. This feature requires the configuration of a capture point that defines the behavior of an OPC instance. The capture point is used to define all the settings associated with an OPC instance.
A maximum of 4 capture points can be configured on a switch, however only one capture point may be active at a time. The data captured in memory can be saved to either the onboard flash if there is free space, or to an attached USB device like a USB flash drive. As OPC may consume considerable CPU resources, it is recommended to use it only as needed.
To configure this feature using the command line interface (CLI), refer to the article Configure Onboard Packet Capture in Catalyst 1200 and 1300 Switches using CLI.
Login to the Catalyst 1200 or 1300 switch and select Advanced mode from the drop-down menu.
Navigate to Status and Statistics > Onboard Packet Capture > Capture Point Settings.
Click Add to add a capture point.
Configure the following capture point settings.
Click Apply.
To edit or delete a capture point, select the capture point and click Edit or Delete.
To activate a capture point, select the desired capture point from the table and click the Operations button.
In the Capture Point Operation window select Activate and click Apply. The state of the capture point in the Capture Point Settings Table is set to Active.
To deactivate an active capture point, select an active capture point and click Operations. Under the Capture Point Operation field, select Deactivate and click Apply. The state of the capture point in the Capture Point Settings Table is set to Inactive.
The captured packets are stored in a memory buffer. To copy the packets to a nonvolatile memory for further debugging perform the following steps:
Navigate to Status and Statistics > Onboard Packet Capture > Buffer File Operation.
If the device crashes during a capture, the packets are saved automatically to a nonvolatile memory. Select the destination device for saving the crash report.
Click Apply to save the configuration for the Crash Capture Destination.
To manually export one of the capture point buffers, navigate to the Export Capture section and configure the following:
To export the Capture Point file, click Export.
The Buffer Statistics page displays information relating to a specific Capture Point. To view the capture buffer statistics, complete the following steps.
Navigate to Status and Statistics > Onboard Packet Capture > Buffer Statistics.
In the Capture Point Name field, select the capture buffer from the drop-down list to view the statistics.
Select the Refresh Rate from the following options:
Refresh rate will not have any impact if the selected capture point is not active.
The following statistics will be displayed:
To manually refresh the information, click Refresh.
To clear the buffer, click Clear Buffer.
It’s as simple as that. Now you know all about configuring and using OPC in Catalyst 1200 and 1300 switches.
For more information, check out the Catalyst 1200 Admin Guide and Catalyst 1300 Admin Guide.
Looking for more articles on your Catalyst 1200 and1300 switch? Go through the product support link below for more information!
Revision | Publish Date | Comments |
---|---|---|
1.0 |
17-Feb-2025 |
Initial Release |