- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2022 02:33 AM
Host OS: Linux (Cent OS)
Goal: I want to pass an SSH command to MID Server to force MID Server to restart when MID Server goes down.
I want to communicate with MID Server in order to achieve my goal, but when I try to communicate with MID Server with Flow Action, I see the following error content.
When the status of MID Server is Up :
What is this error?
Also, if I can resolve this error, my command should work fine.
Please help me,
thank you.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2022 06:27 AM
Hi Sato,
There might be a misunderstanding here.
What you want is to do a remote connection to a server where the mid server instance is running.
You want to execute that shell script in that server if the mid server instance/service is down.
Is that what you want?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2022 10:36 AM
Hi Sato,
Those validations need to be performed on the Linux server where you are running your kid server. The ssh command you want to execute should be executed with a local user of that server. That user has nothing to do with the mid server. It is a local user with rights to execute those commands. Hope this helps you.
Please, don't forget to mark my answer as correct if it solves your issue or mark it as helpful if it is relevant for you!
Best Regards,
Filipe Cruz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-06-2022 05:51 AM
Hi,
Thank you for the detailed information.
>>> It is a local user with rights to execute those commands
Does the authority to type commands mean the authority on ServiceNow? Or does it refer to local permissions on Linux?
Then, based on the above contents, what about this case?
When MID Server A is in the Down state, MID Server B (Up state) is forced to put MID Server A in the Up state by issuing "/start/.sh" and SSH command to MID Server A.
Is it possible to do it?