VMware vSphere

 View Only
  • 1.  coredump

    Posted Jan 17, 2020 06:15 PM

    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



  • 2.  RE: coredump

    Posted Jan 17, 2020 08:22 PM

    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()

    }