By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,089 Members | 2,260 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,089 IT Pros & Developers. It's quick & easy.

Help with socket staus

P: n/a
Hello,
First let me say hello since I am new to this list.

Recently I downloaded and installed the c3 suite of python2 scripts so that I can execute commands on multiple unix nodes. What I am looking to do is determine when an ssh connection fails (either sshd has been stopped, the node is not in service, etc). I have been unable to find good documentation to help me resolve this issue. The message that I receive when ssh fails is this:

ssh: connect to host test.node.com port 22: Connection refused

So I guess my question is this...are there any methods to determine the state of a socket connection (i.e connected, no connected, connection failed, etc).

Thanks in advance,

Shain
Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.