Error deleting files from core dump directory on NSX appliance
search cancel

Error deleting files from core dump directory on NSX appliance

book

Article ID: 376561

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

  • NSX Manager or NSX Edge with core dump file.
  • Core dump file name contains spaces.
  • You are unable to delete the core dump file with nsxcli command del core-dump <core-dump-file> or del core-dump all.
  • You may see error:
    % Error deleting files from core dump directory - <core dump file>

Environment

NSX 4.x

Cause

If a coredump file generated on NSX appliance has spaces in the file name, nsx cmdlet will fail to parse and delete it. 

Resolution

This is a known issue, which will be resolved in future product release.

To workaround this, you can delete the core dump in root shell:

  1. SSH to the appliance as root.
  2. Browse to /var/log/core:
    cd /var/log/core
  3. List the core dump files:
    ls
  4. Remove the core dump files:
    rm <filename>

In version 4.1.1 an higher, when a support bundle is collected with option to remove core dump files, these core dumps will also be removed:
> get support-bundle file <support-bundle-filename.tgz> all remove-core-files