Function: vCenter Host System Change Advanced Settings

by Simon Sparks · 24 April 2014

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

publicChangeAdvancedSettingsNetwork(objVcHostSystem:VcHostSystem):boolean{

letobjProperties:Properties=newProperties();
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

letarrVcOptionValue:VcOptionValue[]=this.ConvertPropertiesToVcOptionValueArray(objProperties);

letblnReturn:boolean=this.ApplyAdvancedSettings(objVcHostSystem,arrVcOptionValue);

returnblnReturn;
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like