PowerCLI – Script to Output Usage from vCloud Director

The following PowerCLI command will output all the Organization VDCS with status, CPU, memory and storage usage & provider VDC which it belongs to

 

1) Connect to the vCloud Director instance

Connect-CIServer myuatcloud.jordansphere.co.uk -user administrator -password {password}

 

 

2) Run the following query

Get-OrgVdc | Select Name,Enabled,CpuUsedGhz,CpuLimitGhz,MemoryUsedGB,MemoryLimitGB,StorageUsedGB,StorageLimitGB, ProviderVdc

script_vdcs1