im looking to connect to vcenter using powercli and get the following quick stats
eneral Information | ||||||||||||||
General details on the infrastructure | ||||||||||||||
|
can anyone help me with the syntax?
Like this?
'Number of Hosts' = (Get-VMHost).Count
'Number of VMs' = (Get-VM).Count
'Number of Templates' = (Get-Template).Count
'Number of Clusters' = (Get-Cluster).Count
'Number of Datastores' = (Get-Datastore).Count
'Number of Datastore Clusters' = (Get-DatastoreCluster).Count
}
---------------------------------------------------------------------------------------------------------
Was it helpful? Let us know by completing this short survey here.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Like this?
'Number of Hosts' = (Get-VMHost).Count
'Number of VMs' = (Get-VM).Count
'Number of Templates' = (Get-Template).Count
'Number of Clusters' = (Get-Cluster).Count
'Number of Datastores' = (Get-Datastore).Count
'Number of Datastore Clusters' = (Get-DatastoreCluster).Count
}
---------------------------------------------------------------------------------------------------------
Was it helpful? Let us know by completing this short survey here.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
thanks i will try it out
Thank you, it gives a quick over all stats, will be handy at times.