Cisco Systems 1000 Series Manual De Usuario

Descargar
Página de 702
 
21-7
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
OL-16506-17
Chapter 21      Packet Trace
  Displaying Packet-Trace Information
Displaying Packet-Trace Information
Use these show commands to display packet-trace information.
Table 21-2
show Commands
Removing Packet-Trace Data
Use these commands to clear packet-trace data.
Table 21-3
clear Commands
Configuration Examples for Packet Trace 
This section provides the following configuration examples:
Example: Configuring Packet Trace
This example describes how to configure packet trace and display the results. In this example, incoming 
packets to Gigabit Ethernet interface 0/0/2 are traced, and FIA-trace data is captured for the first 128 
packets. Also, the input packets are copied. The show platform packet-trace packet 0
 
command 
displays the summary data and each feature entry visited during packet processing for packet 0. 
Router> enable
Router# debug platform packet-trace enable
Router# debug platform packet-trace packet 128 fia-trace
Router# debug platform packet-trace copy packet input
Router# debug platform condition interface g0/0/2 ingress
Router# debug platform condition start
Router#! ping to UUT
Router# debug platform condition stop
Router# show platform packet-trace packet 0
Packet: 0           CBUG ID: 0
Command Description
show platform packet-trace configuration 
Displays packet trace configuration, including any defaults.
show platform packet-trace statistics 
Displays accounting data for all the traced packets.
show platform packet-trace summary
Displays summary data for the number of packets specified. 
show platform packet-trace {all | pkt-num} [decode] 
Displays the path data for all the packets or the packet 
specified. The decode option attempts to decode the binary 
packet into a more human- readable form.
Command Description 
clear platform packet-trace statistics
Clears the collected packet-trace data and statistics.
clear platform packet-trace configuration
Clears the packet-trace configuration and the statistics.