Hi All,
Do we have any API or function which helps to modify the EVC settings by using vRO? Was unable to find any functions in vRO API explorer.
Regards
Sandeep
There are multiple EVC related Classes, methods, and attributes in the vRO 7.3 API explorer... Not sure how you are not finding any. There are not any pre-built workflows or actions, but the API certainly has the necessary things to do some automation... Here's a quick sample to log the Max EVC Mode supported by hosts in a cluster. Just put this in a scriptable task, add/bind an input named "cluster" of type "VC:ComputeClusterResource"
System.debug("Cluster Name: " + cluster.name);
for each (host in cluster.host){
var maxEvcMode = host.summary.maxEVCModeKey;
var currentEvcMode = host.summary.currentEVCModeKey;
if (maxEvcMode == null){
System.debug(host.name + " does not support EVC");
}else{
System.debug("\tHost: " + host.name);
System.debug("\t\tMax EVC Mode: " + maxEvcMode);
if (currentEvcMode){
System.debug("\t\tCurrent EVC Mode: " + currentEvcMode);
}
System.debug("");
}
}
Here is some sample output:
[2018-02-23 09:48:53.291] [D] Cluster Name: TestCluster
[2018-02-23 09:48:53.298] [D] Host: host1.test.lab
[2018-02-23 09:48:53.299] [D] Max EVC Mode: intel-broadwell
[2018-02-23 09:48:53.300] [D]
[2018-02-23 09:48:53.303] [D] Host: host2.test.lab
[2018-02-23 09:48:53.304] [D] Max EVC Mode: intel-broadwell
[2018-02-23 09:48:53.306] [D]
[2018-02-23 09:48:53.310] [D] Host: host3.test.lab
[2018-02-23 09:48:53.311] [D] Max EVC Mode: intel-broadwell
[2018-02-23 09:48:53.312] [D]
[2018-02-23 09:48:53.313] [D] Host: host4.test.lab
[2018-02-23 09:48:53.314] [D] Max EVC Mode: intel-broadwell
[2018-02-23 09:48:53.315] [D]
There are multiple EVC related Classes, methods, and attributes in the vRO 7.3 API explorer... Not sure how you are not finding any. There are not any pre-built workflows or actions, but the API certainly has the necessary things to do some automation... Here's a quick sample to log the Max EVC Mode supported by hosts in a cluster. Just put this in a scriptable task, add/bind an input named "cluster" of type "VC:ComputeClusterResource"
System.debug("Cluster Name: " + cluster.name);
for each (host in cluster.host){
var maxEvcMode = host.summary.maxEVCModeKey;
var currentEvcMode = host.summary.currentEVCModeKey;
if (maxEvcMode == null){
System.debug(host.name + " does not support EVC");
}else{
System.debug("\tHost: " + host.name);
System.debug("\t\tMax EVC Mode: " + maxEvcMode);
if (currentEvcMode){
System.debug("\t\tCurrent EVC Mode: " + currentEvcMode);
}
System.debug("");
}
}
Here is some sample output:
[2018-02-23 09:48:53.291] [D] Cluster Name: TestCluster
[2018-02-23 09:48:53.298] [D] Host: host1.test.lab
[2018-02-23 09:48:53.299] [D] Max EVC Mode: intel-broadwell
[2018-02-23 09:48:53.300] [D]
[2018-02-23 09:48:53.303] [D] Host: host2.test.lab
[2018-02-23 09:48:53.304] [D] Max EVC Mode: intel-broadwell
[2018-02-23 09:48:53.306] [D]
[2018-02-23 09:48:53.310] [D] Host: host3.test.lab
[2018-02-23 09:48:53.311] [D] Max EVC Mode: intel-broadwell
[2018-02-23 09:48:53.312] [D]
[2018-02-23 09:48:53.313] [D] Host: host4.test.lab
[2018-02-23 09:48:53.314] [D] Max EVC Mode: intel-broadwell
[2018-02-23 09:48:53.315] [D]
I've just added that code and another workflow to the Sample Exchange here: https://code.vmware.com/samples?id=3757
com.vmware.coe.vcenter.cluster.evc.package - Samples - VMware {code}
I don't have the time right now to write the workflows to Enable and Disable EVC on a cluster, but would be happy to add them to that package if someone else is able to provide the working code.