6.7

Table Of Contents
pktcap-uw Syntax for Tracing Packets
The command of the pktcap-uw utility has the following syntax for tracing packets in the network stack:
pktcap-uw --trace filter_options output_control_options
Options to the pktcap-uw Utility for Tracing Packets
The pktcap-uw utility supports the following options when you use it to trace packets:
Table 142. pktcap-uw Options for Tracing Packets
Argument Description
filter_options Filter traced packets according to source or destination address,
VLAN ID, VXLAN ID, Layer 3 protocol, and TCP port. See
pktcap-uw Options for Filtering Packets.
output_control_options Save the contents of a packet to a file and trace only a number
of packets. See pktcap-uw Options for Output Control.
pktcap-uw Options for Output Control
Use the options for output control of the pktcap-uw utility to save packet contents to a file, capture up to
a certain number of bytes from each packet, and limit the number of captured packets.
pktcap-uw Options for Output Control
The options of the pktcap-uw utility for output control are valid when you capture and trace packets. For
information about the command syntax of the pktcap-uw utility, see pktcap-uw Command Syntax for
Capturing Packets and pktcap-uw Command Syntax for Tracing Packets.
Table 143. Options for Output Control That Are Supported by the pktcap-uw Utility
Option Description
{-o | --outfile} pcap_file
Save captured or traced packets to a file in packet capture
(PCAP) format. Use this option to examine packets in a visual
analyzer tool such as Wireshark.
-P | --ng Save packet content in the PCAPNG file format. Use this option
together with the -o or --outfile option.
--console
Print packet details and content to the console output. By
default, the pktcap-uw utility shows packet information in the
console output.
{-c | --count} number_of_packets
Capture the first number_of_packets packets.
vSphere Networking
VMware, Inc. 210