To use this function add it to the class library file named PluginVCHostSystemService.ts
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: PluginVCHostSystemService.ts
Description: Orchestrator Function to Change Advanced Settings on an ESXi Host.
Function: ChangeAdvancedSettingsNetwork
public ChangeAdvancedSettingsNetwork(objVcHostSystem: VcHostSystem): boolean {
let objProperties: Properties = new Properties();
objProperties.put("Net.NetSchedInFlightMaxBytesDefault", "100000"); // 1Gbps = 20000
objProperties.put("Net.NetSchedInFlightMaxBytesHigh", "500000"); // 10Gbps = 66000
objProperties.put("Net.NetSchedInFlightMaxPktsDefault", "200"); // 1Gbps = 20
objProperties.put("Net.NetSchedInFlightMaxPktsHigh", "800"); // 10Gbps = 50
let arrVcOptionValue: VcOptionValue[] = this.ConvertPropertiesToVcOptionValueArray(objProperties);
let blnReturn: boolean = this.ApplyAdvancedSettings(objVcHostSystem, arrVcOptionValue);
return blnReturn;
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
