$TotalNumvCPUs = 0
Foreach ($Cluster in (Get-Cluster |Sort Name)){
$HostNumvCPUs = 0
Write-Host “Cluster: $($Cluster.name)“
Foreach ($ESXHost in ($Cluster |Get-VMHost |Sort Name)){
Write-Host “ Host: $($ESXHost.name)“
$RunningLimit = $null
$RunningLimit = ($ESXHost |Get-VMHostAdvancedConfiguration).get_Item(“Misc.RunningVCpuLimit“)
If ($RunningLimit -eq $null){
$RunningLimit = 128
}
Write-Host “ Misc.RunningVCpuLimit: $RunningLimit“
Foreach ($VM in ($ESXHost |Get-VM)){
$HostNumvCPUs += ($VM).NumCpu
}
Write-Host “ Number of vCPU on host: $($HostNumvCPUs)“
$TotalNumvCPUs += $HostNumvCPUs
$HostNumvCPUs = 0
}
Write-Host “———-“
Write-Host “Number of vCPU in $($Cluster.name): $TotalNumvCPUs“
Write-Host “———-“
Write-Host “”
$TotalNumvCPUs = 0
}
- Home
-
Store
- Browse All
- Dedicated Servers USA
- Shared Hosting Netherlands
- Shared Hosting USA
- Linux VPS Hosting Netherlands
- Linux VPS Hosting USA
- Windows VPS Hosting Netherlands
- Windows VPS Hosting USA
- SSL Certificate
- Dedicated Servers Netherlands
- Dedicated servers Russia
- Dedicated Servers France
- Dedicated Servers Italy
- GPU Dedicated Servers
- Dedicated Servers Japan
- Dedicated Servers South Korea
- Semi Dedicated Proxies
- Dedicated Proxies
- Reseller Web Hosting USA
- Dedicated Servers Canada
- AMD Ryzen Dedicated Servers
- Django Hosting
- Virtual Server with Dedicated GPU
- Colocation
- Drupal Hosting
- Server Setup Service
- Managed services
- SSL Certificates
- Register a New Domain
- Transfer Domains to Us
- Announcements
- Knowledgebase
- Network Status
- Affiliates
- Contact Us
-
More