Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I know this is old question, but I cant find anything on google. Is there any good software for centrally scripting telnet and ssh? Basically the following components: Telnet/SSH client, GUI, Server & Switch detection and support, pre-defined script templates, error reporting, logging, authenticating, and it's universal and not product specific. ps. It's not product discussion, but a tool / solution question.

share|improve this question

closed as not constructive by womble, Bart De Vos, Dave M, Ward, Michael Hampton Oct 2 '12 at 14:51

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

add comment

1 Answer

up vote 0 down vote accepted

If I understand the question properly, Expect is the answer. You can even see some telnet and ssh examples on its Wikipedia page.

Here is for example a simple Expect script that prints the environment variables on a remote server:

#! /usr/bin/expect

spawn telnet 127.0.0.1

# Send username
expect -nocase "login:"
send  "myuser\r"

# Send password
expect -nocase "password: "
send "123456\r"

# Wait for a shell prompt
expect -re {\$}

# Get the environment variables
send "env\r"

# Wait for a prompt again and exit
expect -re {\$}
exit 
share|improve this answer
    
Many thanks, so I do server-side expect CGI, and the desktop/mobile client, so I can click buttons, this should be OK so I can run two clients no problem in two different rooms. –  Andrew Smith Jul 4 '12 at 11:18
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.