Procedure to capture the traffic on target VM on vDS port
book
Article ID: 304802
calendar_today
Updated On:
Products
VMware vCenter Server
VMware vSphere ESXi
Issue/Introduction
Symptoms:
This article describes a procedure to evaluate traffic in and out of a vDS port, by capturing traffic at an ESXi host level for a target VM.
Resolution
To capture the traffic:
- Determine the ESXi host that houses the VM where you would like to perform the traffic capture.
- From that ESXi host, run "netstats -l" to list the vDS port numbers for VMs on that host.
- Identify the PortNum where you would like to perform the capture.
- Open two SSH sessions to that ESXi host
- From SSH Session 1, run "pktcap-uw --switchport PortNum --dir 0 -o capture-outbound.pcap" (where PortNum is the port identified in step 3)
- From SSH Session 2, run "pktcap-uw --switchport PortNum --dir 1 -o capture-inbound.pcap"
- Use WinSCP to pull the pcap files from the ESXi host
- Consolidate the pcap files using Wireshark File Merge
Feedback
thumb_up
Yes
thumb_down
No