Specifications

IP Switching Commands
monitor event-trace (EXEC)
ISW-104
Cisco IOS IP Switching Command Reference
May 2008
Use the show monitor event-trace command to display trace messages. Use the monitor event-trace
component dump command to save trace message information for a single event. By default, trace
information is saved in binary format. If you want to save trace messages in ASCII format, possibly for
additional application processing, use the monitor event-trace component dump pretty command.
To write the trace messages for all events currently enabled on a networking device to a file, enter the
monitor event-trace dump command.
To configure the file where you want to save trace information, use the monitor event-trace command
in global configuration mode. The trace messages are saved in a binary format.
Examples The following example shows the privileged EXEC commands to stop event tracing, clear the current
contents of memory, and reenable the trace function for the interprocess communication (IPC)
component. This example assumes that the tracing function is configured and enabled on the networking
device.
Router# monitor event-trace ipc disable
Router# monitor event-trace ipc clear
Router# monitor event-trace ipc enable
The following example shows how the monitor event-trace one-shot command accomplishes the same
function as the previous example except in one command. In this example, once the size of the trace
message file has been exceeded, the trace is terminated.
Router# monitor event-trace ipc one-shot
The following example shows the command for writing trace messages for an event in binary format. In
this example, the trace messages for the IPC component are written to a file.
Router# monitor event-trace ipc dump
The following example shows the command for writing trace messages for an event in ASCII format. In
this example, the trace messages for the MBUS component are written to a file.
Router# monitor event-trace mbus dump pretty
Catalyst 6500 Series Switches and Cisco 7600 Series Routers Examples Only
This example shows how to stop event tracing, clear the current contents of memory, and reenable the
trace function for the SPA component. This example assumes that the tracing function is configured and
enabled on the networking device.
Router# monitor event-trace spa disable
Router# monitor event-trace spa clear
Router# monitor event-trace spa enable
Related Commands Command Description
monitor event-trace (global) Configures event tracing for a specified Cisco IOS software
subsystem component.
monitor event-trace dump-traces Saves trace messages for all event traces currently enabled on
the networking device.
show monitor event-trace Displays event trace messages for Cisco IOS software
subsystem components.