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.
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
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
Hi
this works very good.
Thanks.