search
cancel
Search
How to capture API call body text on NSX Manager appliance
book
Article ID: 327302
calendar_today
Updated On:
Products
VMware NSX for vSphere
Show More
Show Less
Issue/Introduction
This article describes how to capture the content of these API calls for troubleshooting purposes.
The NSX Manager receives API calls by vCD or other applications. The logs show some details but not the body of API calls.
Environment
VMware NSX for vSphere 6.4.x
VMware NSX for vSphere 6.3.x
Resolution
Log in to the NSX Manager appliance as root (
Tech Support Access in NSX for vSphere 6.x
)
Use
tcpdump
capturing packets on port 7441:
tcpdump -i any port 7441 -w /common/em/components/apicalls.pcap
Reproduce the desired operation, or send the desired API call from the source and take note of the timestamp
Download the file using a web browser:
https://
<NSX_Manager_IP>
/bin/apicalls.pcap
Open the
apicalls.pcap
file using
WireShark
Filter for
http
Select the packet you need to review
Right click on the packet, then Follow - TCP flow
Feedback
thumb_up
Yes
thumb_down
No