pascallaroche99
Enthusiast
Enthusiast

Workflow to Upgrade Hardware and Tools with vShield.

Jump to solution

Hi,

I am starting with vCO and JavaScript!

I start from the workflow that Cody Bunch created at this url and did some changes to add vShield Drivers to the tools update and to upgrade VMware Hardware(compatibility).

WithoutDecision.JPG

When i hit a VM with the Hardware at the latest version, the workflow crash. So i wanted to add a decision point before the Upgrade VM Hardware Workflow.

WithDecision.JPG

If the VM has the latest Hardware Version i want to skip the Upgrade VM Hardware version. I want to write a simple script that look like that :

if (VMHardware version is current){

  return false;

}

else{

  return true;

}

I am looking in the API search in vCO to find the property for the Hardware Version and i cannot find it! Can someone help me with that? Where i can find this?

I know i can do it with Update Manager, but i want to use vCO to practice and integrate that kind of workflow in vCAC!

Thanks all for your help!

0 Kudos
1 Solution

Accepted Solutions
Burke-
VMware Employee
VMware Employee

vm.config.version -- where vm is a VC:VirtualMachine object... results will be something like vmx-10 , vmx-09, etc... you can then base your logic on those results.

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
4 Replies
Burke-
VMware Employee
VMware Employee

vm.config.version -- where vm is a VC:VirtualMachine object... results will be something like vmx-10 , vmx-09, etc... you can then base your logic on those results.

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
ChristianWehner
VMware Employee
VMware Employee

I've built there something long time ago. It also could help you a bit.

pascallaroche99
Enthusiast
Enthusiast

Thanks Burke! That works well! Smiley Happy

0 Kudos
pascallaroche99
Enthusiast
Enthusiast

Thanks Christian, this is a nice workflow! :smileycool:

0 Kudos