In this example I set the NTP Server and then check if the NTP Service is running. If not I start it. //myhost is input parameter of type VcHostSystem //ntpServer is input parameter of type String[] (string array) var hostDateTimeConfig = new VcHostDateTimeConfig(); hostDateTimeConfig.ntpConfig = new VcHostNtpConfig(); hostDateTimeConfig.ntpConfig.server = ntpServer; //Set the ntp servers myhost.configManager.dateTimeSystem.updateDateTimeConfig(hostDateTimeConfig);Continue reading “vCO – Configure NTP on ESX”
Author Archives: txusa
vCO – Remove default portgroup
This is another simple one. In my eyes useful if you want to use vCO to configure your ESX. I go through all port groups on the host and compare if one is name “VM Network” if this is so then I remove it.
vCO – Enable vMotion
Well it took me a while to figure this one out but once you know, it is really simple. Isn’t it?
vCO – Many new workflows in Release 4.2.1
If you are using and older version of vCO you probably have not noticed that VMware has put a lot of work into new workflows. In my eyes VMware has learned their lesson. In vSphere 4 and vSphere 4.1 VMware had not released any workflows for their premium functions like Distributed Virtual Switches and HostContinue reading “vCO – Many new workflows in Release 4.2.1”
vCO – Create Distributed Virtual Port Group
Here is the code for creating a distributed virtual port group. Input is of type VC:VmwareDistributedVirtualSwitch
vCO – Create Distributed Virtual Switch (DVS)
Here is the code for creating a distributed virtual switch. Input is sdkConnection. The code assumes you have only the root network folder.
vCO – Send email attachment
There are maybe times when you want to send an email attachment. A csv file for example. It is actually quit easy to achieve. Just create a duplicate of the existing workflow “Send notification” and add a few lines. Add following lines: attachmentName is an input parameter of the type string with the file nameContinue reading “vCO – Send email attachment”
vCO getting started – Videos from VMwareTV
VMware has published some demo videos on how to develop vCenter Orchestrator (vCO) workflows. The first time I ever worked with vCO before I actually were clueless on what to do with it. In case you feel the same way right now these three youtube videos might give you a good start. Developing Your FirstContinue reading “vCO getting started – Videos from VMwareTV”
vCO – Another way of getting Distributed Virtual Switches
Well this is my very first blog ever. Actually this is a reply to a blog on the mighty virtualization blog from Christian Johannsen on http://mighty-virtualization.blogspot.com/2011/01/vco-get-all-distributed-virtual.html Blogspot for some reason did not let me post this code as a reply but I thought I do not want to leave my talent wasted (cough!) and post it asContinue reading “vCO – Another way of getting Distributed Virtual Switches”
