Server Management - Systems Insight Manager
1834165 Members
2234 Online
110064 Solutions
New Discussion

SSH tasks finish with "Complete" status but return no output

 
Steve Kadish
Trusted Contributor

SSH tasks finish with "Complete" status but return no output

Hi all,

When I execute an SSH task against either my CMS or a managed server, the tasks finishes within a second or two and SIM reports a "Complete" status, but there is no STDOUT or STDERR and the task is not actually run.

For every task, I get two Windows event log messages on the server against which the task run. The first one has in it:

sshd : PID 4128 : Accepted publickey for Administrator from x.x.x.x port 3209 ssh2.

(where x.x.x.x is actually the IP of our CMS)

and the second is:

sshd : PID 5216 : Received disconnect from x.x.x.x:11: Terminating connection.

I've looked at the passwd file on the servers with OpenSSH, and confirmed that the home directory paths are correct.

I've looked at the tool definitions; the execute-as-user is set to Administrator. The local Administrator account is renamed on the CMS, but this shouldn't be a problem because the passwd file has an Administrator user which is acutally DOMAIN/Administrator. Anyway, I changed the local user name back to Administrator and that didn't work.

I can start an SSH session manually using PuTTY or OpenSSH, log in, and run commands successfully.

Help!

Thanks,
- Steve
4 REPLIES 4
Steve Kadish
Trusted Contributor

Re: SSH tasks finish with "Complete" status but return no output

Well, I called HP Support on this, and spoke to someone on the SIM team, but so far no one has been able to come up with an answer.

I'm hoping that there might be an experienced OpenSSH/Cygwin user out there, who can tell me if there is anyway to turn on SSH logging and maybe get some more idea of what is happening - or not happening - when I run these tasks.

Thanks,
- Steve
David Claypool
Honored Contributor

Re: SSH tasks finish with "Complete" status but return no output

Can you be more specific about what you are doing, including the TDEF you are using and the commands/scripts you're calling?
Steve Kadish
Trusted Contributor

Re: SSH tasks finish with "Complete" status but return no output

Hi David,

The behavior is pretty consistent, with every tool I've tried, from "dir" and "netstat" commands from the Tools menu, to "Install OpenSSH" from the Deploy menu, to "Acquire Updates" in "Vulnerablity and Patch Management."

The event log messages, such as they are, are fairly descriptive. If a tool attempts to use a user name that isn't in that systems passwd file, the error is clear. When I use "mxagentconfig" I see an entry indicating that a SFTP subsystem change has been made, letting me know that the tool was successful.

For these tools I'm running through the GUI, however, all I'm getting is one entry saying that a connection was made, and another saying that it was terminated.

Thanks,
- Steve
Steve Kadish
Trusted Contributor

Re: SSH tasks finish with "Complete" status but return no output

Hi all,

I got no where with this issue, either on my own or with HP support. I finally uninstalled and reinstalled SIM, and then I was able to configure SSH properly. My theory is that something was screwed up by changing the local administrator account name after SIM was installed, but I have no evidence of that.

- Steve