Quantcast
Channel: VMware Communities : All Content - VMware PowerCLI
Viewing all articles
Browse latest Browse all 16717

Cluster cpu info

$
0
0

Hello,

I have this script where I can get some CPU/Memory info:

 

Get-VMHost -Name tec-vm-ki* , tec-vm-* |


Select Name,


    @{N='CPU GHz Capacity';E={[math]::Round($_.CpuTotalMhz/1000,2)}},    @{N='CPU GHz Used';E={[math]::Round($_.CpuUsageMhz/1000,2)}},    @{N='CPU GHz Free';E={[math]::Round(($_.CpuTotalMhz - $_.CpuUsageMhz)/1000,2)}},    @{N='Memory Capacity GB';E={[math]::Round($_.MemoryTotalGB,2)}},    @{N='Memory Used GB';E={[math]::Round($_.MemoryUsageGB,2)}},    @{N='Memory Free GB';E={[math]::Round(($_.MemoryTotalGB - $_.MemoryUsageGB),2)}} | Export-Csv -Path C:\Users\gemela\cpu_mem_Hardware_info.csv -NoTypeInformation -UseCulture

 

I would like to add some columns;

 

Number of CPU for Cluster

Cpu (number) usage for each host

Memory (Gb) usage for each host

 

 

Thanks


Viewing all articles
Browse latest Browse all 16717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>