Generate core file on an NSX Edge
search cancel

Generate core file on an NSX Edge

book

Article ID: 376675

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

  • A core file from NSX-T may be required for effective troubleshooting.
  • This KB article outlines the procedure for generating core files on an Edge node.

Environment

  • VMware NSX 3.x
  • VMware NSX 4.x

Cause

  • Scaled up environments (logical-routers) may experience issues with dataplane traffic.  
  • Retrieving and analyzing a core file can assist in troubleshooting.

Resolution

  • Identify the PID of the datapathd process by running the below command:

    #ps -ef | grep -i datapathd

        Example:

    UID         PID     PPID  C  STIME  TTY          TIME        CMD
    root        3971    3880  15 Aug12  ?        3-07:34:27  /opt/vmware/nsx-edge/sbin/datapathd --no-chdir --unixctl=/var/run/vmware/edge/dpd.ctl --pidfile=/var/run/vmware/edge/dpd.pid -vconsole:err -vsyslog:info --syslog-method=udp:127.0.0.1 --cfgfile=/config/vmware/edge/config.json

 

 

  •  Run the following command to generate the Core dump

     #/opt/vmware/nsx-edge/sbin/gdb --pid=<PID>

          Example  

     /opt/vmware/nsx-edge/sbin/gdb --pid=3971

 

 

  • Core file will be generated in the location /var/log/core
  • When generating log bundles, ensure that the option “Include files that may contain sensitive information” is selected.

         

 

 

Additional Information

See the below links for Creating a Case with Broadcom and for uploading the logs to that Case: