VMware Cloud Community
jddias
VMware Employee
VMware Employee
Jump to solution

Turning on SSH Service and Using SSH plug-in

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?

Visit my blog for vCloud Management tips and tricks - http://www.storagegumbo.com
0 Kudos
1 Solution

Accepted Solutions
tschoergez
Leadership
Leadership
Jump to solution

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

View solution in original post

0 Kudos
3 Replies
cdecanini_
VMware Employee
VMware Employee
Jump to solution

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.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter
0 Kudos
tschoergez
Leadership
Leadership
Jump to solution

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

0 Kudos
jddias
VMware Employee
VMware Employee
Jump to solution

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.

Visit my blog for vCloud Management tips and tricks - http://www.storagegumbo.com
0 Kudos