Chapter 25 Maintenance Tools
NWA/WAC Series CLI Reference Guide
128
25.0.1 Command Examples
Some packet-trace command examples are shown below.
file-suffix <profile_name> Specifies text to add to the end of the file name (before the
dot and filename extension) to help you identify the packet
capture files. Modifying the file suffix also avoids making
new capture files that overwrite existing files of the same
name.
The file name format is “interface name-file suffix.cap”, for
example “vlan2-packet-capture.cap”.
files-size <1..10000> Specify a maximum size limit in kilobytes for the total
combined size of all the capture files on the NWA/WAC,
including any existing capture files and any new capture
files you generate.
The NWA/WAC stops the capture and generates the
capture file when either the file reaches this size or the
time period specified (using the duration command
above) expires.
Note: If you have existing capture files you may need to set
this size larger or delete existing capture files.
host-ip {ip-address | profile_name | any> Sets a host IP address or a host IP address object for which
to capture packets. any means to capture packets for all
hosts.
host-port <0..65535> If you set the IP Type to any, tcp, or udp using the ip-type
command below, you can specify the port number of traffic
to capture.
iface {add | del} {interface_name |
virtual_interface_name}
Adds or deletes an interface or a virtual interface for which
to capture packets to the capture interfaces list.
ip-type {icmp | igmp | igrp | pim | ah | esp |
vrrp | udp | tcp | any}
Sets the protocol of traffic for which to capture packets.
any means to capture packets for all types of traffic.
snaplen <68..1512> Specifies the maximum number of bytes to capture per
packet. The NWA/WAC automatically truncates packets
that exceed this size. As a result, when you view the packet
capture files in a packet analyzer, the actual size of the
packets may be larger than the size of captured packets.
show packet-capture status Displays whether a packet capture is ongoing.
show packet-capture config Displays current packet capture settings.
Table 80 Maintenance Tools Commands in Privilege Mode (continued)
COMMAND DESCRIPTION
Router# packet-trace duration 3
tcpdump: listening on eth0
19:24:43.239798 192.168.1.10 > 192.168.1.1: icmp: echo request
19:24:43.240199 192.168.1.1 > 192.168.1.10: icmp: echo reply
19:24:44.258823 192.168.1.10 > 192.168.1.1: icmp: echo request
19:24:44.259219 192.168.1.1 > 192.168.1.10: icmp: echo reply
19:24:45.268839 192.168.1.10 > 192.168.1.1: icmp: echo request
19:24:45.269238 192.168.1.1 > 192.168.1.10: icmp: echo reply
6 packets received by filter
0 packets dropped by kernel