Orchestration Activity how to run command directly on MID Server

Katie A
Mega Guru

Hello, How can I run a linux command directly on a specified MID server in a workflow activity?

I tried the "SSH Command" activity however, it is using the default MID server that is set in the system properties.

I need to be able to specify the MID server name as a variable in the workflow activity.

3 REPLIES 3

DrewW
Mega Sage
Mega Sage

Have you looked at making a copy of the existing one and adding the needed parameter?



I have all so used this to run commands on a mid server


CommandLine Example


var commandprobe = new CommandProbeES("MIDSERVER");


commandprobe.setCommand("dir");


commandprobe.addParameter("source", "Job 22");


commandprobe.addParameter("agent_correlator", "Job 22");


commandprobe.addParameter("topic", "CommandComplete");


commandprobe.create();


How do I add the needed parameter as you described in the first sentence?



Yes, I could manually script this out, but I want to set the MID Server in the Activity Designer. The whole purpose of the Activity Designer is to avoid manually scripting to the ECC queue.


So far I have only used the "Activity Designer" once for one activity since it came out so all I can say is...   I' dun know....