VMware Cloud Community
gartie
Contributor
Contributor

coredump

Hi All,

Have a number of ESX hosts that do not have coredump configured.

Looking for a script to scan my environment to see if coredump is enabled.

I can do it one at a time with esxcli system coredump file list

thanks

gary

1 Reply
jburen
Expert
Expert

You can use the PowerCLI cmdlet Get-EsxCli to run the command from powershell. You can use something like this:

foreach ($h in Get-VMHost) {

  $esxcli = Get-EsxCli -VMHost $h

  $esxcli.system.coredump.file.list()

}

Consider giving Kudos if you think my response helped you in any way.