Last week Carter Shanklin over at the VI PowerShell blog published an article about managing storage paths with PowerShell. I must admit that I was impressed by it. Based on Carter‘s script I created a nice little demo showing all the info you can retrieve from your ESX servers.
get-VIServer -Server 192.168.178.200 -User root -Password vmware
$MyHost = get-vmhost esx35.ntpro.local
$HostView = Get-View $MyHost.ID
$HostView.Summary.Hardware.Vendor
$HostView.Runtime.InMaintenanceMode
$HostView.Hardware.MemorySize
Name Port
---- ----
192.168.178.200 443
Hewlett-Packard
False
1065287680