VMware Cloud Community
joe4VMware
Contributor
Contributor
Jump to solution

Orchestrator Storage Pod FreeSpace and capacity

Hello together,

Please help how can i get capacity and free Space from a Storage pod

I found this Object but i only get the Name and ID.

var myVcStoragePodSummary = new VcStoragePodSummary();

Thank's for help

Joe

0 Kudos
1 Solution

Accepted Solutions
Burke-
VMware Employee
VMware Employee
Jump to solution

Yes, it is a bug - you need to disable inventory service for your vCO server OR update to most current GA.

See this thread to learn how to disable Inventory service: Unable to get capacity or free space value with vCO vCenter plugin 5.5.1

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you!

Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator
for vRealize Orchestrator tips and tutorials - @TechnicalValues on Twitter

View solution in original post

0 Kudos
3 Replies
Burke-
VMware Employee
VMware Employee
Jump to solution

The line you provided is instantiating a new blank object...

If you wish to get info from your current environment, you need to pass your VcStoragePod object as an input to your workflow... Assuming you name your variable "storagePod", the script would look something like this:

var storagePodSummary = storagePod.summary;

System.log("Name: "+storagePodSummary.name);

System.log("Capacity: "+storagePodSummary.capacity);

System.log("Free Space: "+storagePodSummary.freeSpace);

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you!

Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator
for vRealize Orchestrator tips and tutorials - @TechnicalValues on Twitter
joe4VMware
Contributor
Contributor
Jump to solution

Hi Burke,

thanks for your help

with this Script i get only the Name capacity and free Space = 0

Is this a bug ?

Thanks

Joe

0 Kudos
Burke-
VMware Employee
VMware Employee
Jump to solution

Yes, it is a bug - you need to disable inventory service for your vCO server OR update to most current GA.

See this thread to learn how to disable Inventory service: Unable to get capacity or free space value with vCO vCenter plugin 5.5.1

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you!

Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator
for vRealize Orchestrator tips and tutorials - @TechnicalValues on Twitter
0 Kudos