Use case - I want to turn on SSH service on a particular host, and then use vCO to run one or more commands.
Problem 1 - Using Onyx, I can see that the method I need is "startService" and the API search finds the element I need is "VC / VcHostServiceSystem.startService()" however, I am not able to create an input parameter of that type - it's just not there.
Problem 2 - Turning on the service manually, I attempted to use the Run SSH command workflow, with password authentication and it fails with the following error:
Unable to execute command InternalError: java.net.UnknownHostException: ch.dunes.plugin.ssh.config.xml.Connection@4fc31216 (Workflow:Copy of Run SSH command / Execute SSH Command (item6)#14) (Workflow:Copy of Run SSH command / Execute SSH Command (item6)#31)
Any pointers or suggestions?
Hi!
And for your first issue:
You cannot create a Workflow Parameter of this type. You rather have to "get" a VcHostServiceSystem-Object from the VcHostSystem (youc an create a Workflow Parameter for the latter one).
That remembers me of an example I fixed for Cody Bunch in the past: See his blog post about setting an NTP server for an ESX host for a complete example:
http://professionalvmware.com/2012/03/orchestrator-configure-host-time-settings/
It should give you an idea how to work with the ServiceSystem...
Cheers,
Joerg
For the second issue it seems the host is unknown. Your vCO server must have a problem resolving the name. Make sure you have a proper DNS configuration and a valid host name.
Christophe.
Hi!
And for your first issue:
You cannot create a Workflow Parameter of this type. You rather have to "get" a VcHostServiceSystem-Object from the VcHostSystem (youc an create a Workflow Parameter for the latter one).
That remembers me of an example I fixed for Cody Bunch in the past: See his blog post about setting an NTP server for an ESX host for a complete example:
http://professionalvmware.com/2012/03/orchestrator-configure-host-time-settings/
It should give you an idea how to work with the ServiceSystem...
Cheers,
Joerg
Resolution doesn't seem to be the problem, Christophe. I also tried with IP address and same error. By the way I'm testing with the Run SSH command workflow included with the plug-in.