Example:
VMware ESXi
vSwitchPortSetName and portNum using net-stats -l command. vsish -e get /net/portsets/<vSwitchPortSetName>/ports/<portNum>/vmxnet3/rxSummaryVM1 sending an ICMP request into the vswitch and VM2's corresponding reply exiting the vswitch to see if there is any vswitch Processing delay.Example:
Syntax: pktcap-uw --switchport SwitchportID --trace --mac macAddressofVM