- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2022 01:40 AM
Should I follow such a Flow Step to communicate between MID Servers using the Flow Designer Action in SSH step?
What I want to achieve is when MID Server A is in the Up state and MID Server B is in the Down state, MID Server A passes an SSH command (./start.sh) to MID Server B to restart it.
Best regards
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2022 07:48 PM
Scripts in ServiceNow is able to execute the command on the running MID Server. That is, script will execute a command on the running MID server that will in turn ssh to the other server to execute the command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2022 08:50 PM
Hi,
I don't have an image of how to pass a script to MID Server and execute it. Is there any concrete code?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2022 09:14 PM
Check the following site. It only executes the command on the MID server and not other server in the intranet.
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0754843

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2022 10:59 PM
If using an Integration Hub, it is be possible to ssh to an linux server.
Integration Hub requires additional license.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2022 11:18 PM
I'm not using IntegrationHub primary because it'll require me to save login information on intranet devices such as firewall in ServiceNow. Security risk is too high.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2022 11:25 PM
Hi,
>>>If using an Integration Hub, it is be possible to ssh to an linux server.
I am using each method.
Path is bash, but do you know why you can't access directories in MID Server with bash?
I have already reached the access of MID Process, but can you provide a concrete solution such as the access method between MID Servers that I have been worried about earlier?