Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

Start SSH on ESXi host

$
0
0

Hi Guys,

 

I'm trying to get a scriptable task to start SSH on an ESXi host and its not quite happening. I'll try to explain briefly what I've done so far.

 

So I've created an attribute / array of ESXi hosts and created an input to use the array as predefined objects. Next I have a scriptable task as follows where its going wrong.

 

// Start SSH service on ESXi host
var myVcHostServiceSystem = new VcHostServiceSystem() ;
myVcHostServiceSystem.startService("TSM-SSH")

 

System.log ("Starting SSH service on: " + host.name);

 

This keeps on failing saying

 

Unable to create object : VcHostServiceSystem : com.vmware.vmo.plugin.vi4.model.VimHostServiceSystem

 

Can anybody shed some light?

 

Thanks

 

Mr G


Viewing all articles
Browse latest Browse all 6251

Trending Articles