Server Management - Systems Insight Manager
1833017 Members
2353 Online
110048 Solutions
New Discussion

Connection refused running Custom Command

 
SOLVED
Go to solution
Ian Kirvell
Frequent Advisor

Connection refused running Custom Command

Hi,

I have setup a custom command so that if SIM receives a process monitor event, a simple cmd file should be run. The task only runs against one server, and the cmd file lives on that server. The cmd file simply creates a directory called "test" on the root of the C:, and runs in the context of local administrator.

Unfortunately when the custom command is called it returns the error "Connection refused to host: **.**.**.** ... nested exception is: java.net.ConnectionException: Connection refused: connect

As the command runs on the local server, and the job runs as the local administrator, why would it get connection refused?

Thanks in advance
5 REPLIES 5
Mike Strako
Trusted Contributor
Solution

Re: Connection refused running Custom Command

Be sure you have set up correctly OpenSSH and the service is running.

Best regards,

Mike.
Ian Kirvell
Frequent Advisor

Re: Connection refused running Custom Command

OK - does that mean I need OpenSSH installed on each server that will have a command run on it?
Mike Strako
Trusted Contributor

Re: Connection refused running Custom Command

No, just on your CMS.

Best regards,

Mike.
Ian Kirvell
Frequent Advisor

Re: Connection refused running Custom Command

Thanks for your help. All sorted now.
Ian Kirvell
Frequent Advisor

Re: Connection refused running Custom Command

User help