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

Run SSH command workflow with output variables

$
0
0

Hi,

I am trying to run a cmd to execute a script on the source host to stop application with input of the list of VM names.

vms = System.getModule("com.vmware.library.vc.cluster").getAllVMsOfCluster(cluster) ;
var vmtostop = sudo -u applicationx/stop.sh (vms) ;

on the WF Run SSH Command, i've set cmd local param to source param "vmtostop"

but the first script does not accept the 2nd line of vmtostop = script.

any hints would be appreciated. many thanks

vms = System.getModule("com.vmware.library.vc.cluster").getAllVMsOfCluster(cluster) ;
allHosts = System.getModule("com.vmware.library.vc.cluster").getAllHostSystemsOfCluster(cluster) ;
var hostCount = allHosts.length;
var vmtostop = sudo -u osysops /farequote/Admin/AppStopVM -L (vms) -a -t

Viewing all articles
Browse latest Browse all 6251

Trending Articles