How to capture API call body text on NSX Manager appliance
search cancel

How to capture API call body text on NSX Manager appliance

book

Article ID: 327302

calendar_today

Updated On:

Products

VMware NSX for vSphere

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

  1. Log in to the NSX Manager appliance as root (Tech Support Access in NSX for vSphere 6.x)
  2. Use tcpdump capturing packets on port 7441: tcpdump -i any port 7441 -w /common/em/components/apicalls.pcap
  3. Reproduce the desired operation, or send the desired API call from the source and take note of the timestamp
  4. Download the file using a web browser: https://<NSX_Manager_IP>/bin/apicalls.pcap
  5. Open the apicalls.pcap file using WireShark
  6. Filter for http
  7. Select the packet you need to review
  8. Right click on the packet, then Follow - TCP flow