PowerCLI show ESXi Log

Connect-ViServer <vCenter FQDN>

Get-VMHost | Select-Object Name

(get-log -vmhost <ESXi FQDN/IP> -key vmkernel).Entries | Where-object -FilterScript {$_ -like “warning“} | out-gridview

for search on all Host Log

(Get-Datacenter -Name <datacenter name>  | get-vmhost | get-log -key vmkernel) | select host,entries | Where-object -FilterScript {$_.Entries -like "*NTPclock*"}
PowerCLI show ESXi Log

Leave a Reply

Your email address will not be published.