Orchestration Activity how to run command directly on MID Server

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2017 08:37 AM
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.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2017 09:40 AM
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();

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-24-2017 06:51 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2017 02:21 PM
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....