6.7

Table Of Contents
Table 143. Options for Output Control That Are Supported by the pktcap-uw Utility
(Continued)
Option Description
{-s | --snaplen} snapshot_length
Capture only the first snapshot_length bytes from each packet. If
traffic on the host is intensive, use this option to reduce the load
on the CPU and storage.
To limit the size of captured contents, set a value greater than
24.
To capture the complete packet, set this option to 0.
-h
View help about the pktcap-uw utility.
The vertical bars | represent alternative values, and the curly brackets {} used with vertical bars specify a
list of choices for an argument or option.
pktcap-uw Options for Filtering Packets
Narrow the range of packets that you monitor by using the pktcap-uw utility to apply filtering options for
source and destination address, VLAN, VXLAN, and next level protocol consuming the packet payload.
Filter Options
The filter options for pktcap-uw 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 144. Filter Options of the pktcap-uw Utility
Option Description
--srcmac mac_address
Capture or trace packets that have a specific source MAC
address. Use colons to separate the octets in it.
--dstmac mac_address
Capture or trace packets that have a specific destination MAC
address. Use colons to separate the octets in it.
--mac mac_address
Capture or trace packets that have a specific source or
destination MAC address. Use colons to separate the octets in
it.
--ethtype 0xEthertype
Capture or trace packets at Layer 2 according to the next level
protocol that consumes packet payload.
EtherType corresponds to the EtherType field in Ethernet
frames . It represents the type of next level protocol that
consumes the payload of the frame.
For example, to monitor traffic for the Link Layer Discovery
Protocol (LLDP) protocol, type --ethtype 0x88CC.
--vlan VLAN_ID
Capture or trace packets that belong to a VLAN.
--srcip IP_addess|IP_address/subnet_range
Capture or trace packets that have a specific source IPv4
address or subnet.
--dstip IP_addess|IP_address/subnet_range
Capture or trace packets that have a specific destination IPv4
address or subnet.
vSphere Networking
VMware, Inc. 211