VMware Networking Community
MrVmware9423
Expert
Expert

packet capture expression

Dear Team,

In below example we are only capturing traffic related to ping, I would like to know what all expression we can use for different different type of traffic 

MrVmware9423_1-1662352846570.png

MrVmware9423_0-1662352816708.png

Thank you in advance.

 

Reply
0 Kudos
1 Reply
aggarwalvinay31
Enthusiast
Enthusiast

pktcap-uw and start capture are pretty exhaustive commands and you can create expressions according to requirement and type of traffic you want to capture. If you are looking for hex code for different type of protocol, these are below - 

0x01 - ICMP

0x06 - TCP

0x11 - UDP

Filter expressions for pktcap-uw - https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.networking.doc/GUID-FAE2421D-7CBA-4...

Hope this helps.