VMware Cloud Community
mg1978
Enthusiast
Enthusiast
Jump to solution

How to get the ESXi version

Hi All,

can somebody provide me a script with one input parameter and one output parameter.

Input is (VC:HostSystem) and output a string with the ESXi version.

Thanks.

Reply
0 Kudos
1 Solution

Accepted Solutions
Burke-
VMware Employee
VMware Employee
Jump to solution

Here, these will help:

System.log("Version: "+host.config.product.version);
System.log("Build: "+host.config.product.build);
System.log("FullName: "+host.config.product.fullName);

Shows results like this:

2013-03-06 10:14:58.799] [I] Version: 5.1.0
[2013-03-06 10:14:58.800] [I] Build: 799733
[2013-03-06 10:14:58.801] [I] FullName: VMware ESXi 5.1.0 build-799733

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

Reply
0 Kudos
2 Replies
Burke-
VMware Employee
VMware Employee
Jump to solution

Here, these will help:

System.log("Version: "+host.config.product.version);
System.log("Build: "+host.config.product.build);
System.log("FullName: "+host.config.product.fullName);

Shows results like this:

2013-03-06 10:14:58.799] [I] Version: 5.1.0
[2013-03-06 10:14:58.800] [I] Build: 799733
[2013-03-06 10:14:58.801] [I] FullName: VMware ESXi 5.1.0 build-799733

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
Reply
0 Kudos
mg1978
Enthusiast
Enthusiast
Jump to solution

Hi

this works very good.

Thanks.

Reply
0 Kudos