console · powerCLI · vmware operations

How to remove ESXi coredump files

Hello people,

After long time a small guide but really useful for this operation. I had a thought to make an article for this because mostly I wanted to share it with my colleagues but if other people find it useful will be perfect 🙂

First of all login to an ESXi in the cluster that you have found the coredump files and run the following command:

esxcli list Coredumps

Then after having the list of the coredump files you have to find one by one which ESXi hosts is owning which coredump file with the following command:

vmkfstools check locking

Make note of the owner UID, then from PowerCLI you can list all the UID of the ESXi hosts with the command Get-View -ViewType HostSystem -propert name, hardware.systeminfo | select { $_.hardware.systeminfo.uuid }

list ESXIs powercli

After finding the owner of each coredump file you just have to login to the ESXi host via ssh and run the command:

esxcli system coredump file remove -F -f /vmfs/volumes/and the coredumpfile in case that you have an Active coredump file first run the command:

esxcli system coredump file set -u in order to deactivate the active coredump file and run again the previous command for removing it.

That’s it folks.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s