2,187
edits
(→ESX Host: Added HBA Info) |
(→Script Extracts: Added "ESX NIC Info ") |
||
Line 425: | Line 425: | ||
} | } | ||
Get-VMDiskUsage (Get-VM "MyVM") | Get-VMDiskUsage (Get-VM "MyVM") | ||
</source> | |||
=== ESX NIC Info === | |||
Provides a list of all vmnic speeds for ESX's connected to vCentre | |||
<source lang="powershell"> | |||
$ESXs = Get-VMHost | |||
Foreach ($esx in $ESXs) { | |||
Write-Host $esx.Name $esx.State | |||
$pNICs = (Get-VMHost -Name "uk-hb-esx-102*" | Get-View).Config.Network.Pnic | |||
$result = @{} | |||
Foreach ($pNIC in $pNICs) { | |||
$result[$pNIC.Device] = $pNIC.LinkSpeed.SpeedMB | |||
} | |||
$result = $result.GetEnumerator() | Sort-Object -Property Name | |||
$result | |||
Write-Host | |||
} | |||
</source> | </source> | ||