Hi All,
We are facing trouble for monthly reporting of capacity in Vmware.
Need script for information like cluster level capacity report on both ESXI host and Datastore for multiple Vcentres
If there is any script to get below output or any similair output like below Please let me know
Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.
Need modification on this script to get above data
{foreach($vminGet-VM){
Get-Datastore-RelatedObject$vm|
Select @{N='Cluster';E={Get-Cluster-VMHost$vm.VMhost |select-ExpandPropertyName}},
Name,
@{N='VMName';E={$vm.Name}},
@{N='NAA';E={$_.ExtensionData.Info.Vmfs.Extent[0].DiskName}},
@{N='Capacity';E={[math]::Round($_.CapacityGB,1)}},
@{N='Free';E={[math]::Round($_.FreeSpaceGB,1)}}}} |
Export-CsvC:\vm-full-report-2.csv-NoTypeInformation-UseCulture
Thanks,
Karthikeyan Raman.