The CreatorCon Call for Content is officially open! Get started here.

Can't connect to MID Server?

Sato3
Tera Contributor

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.

find_real_file.png

find_real_file.png

When the status of MID Server is Up :

find_real_file.png
find_real_file.png

What is this error?
Also, if I can resolve this error, my command should work fine.


Please help me,

thank you.

1 ACCEPTED SOLUTION

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?

View solution in original post

11 REPLIES 11

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

Hi, @Filipe Cruz 

 

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?