1836438 Members
2482 Online
110100 Solutions
New Discussion

Re: Telnet question

 
SOLVED
Go to solution
Anthony khan
Frequent Advisor

Telnet question

Hi,

I want to check telnet connectivity for all production boxes, Do anyone have an idea how to use telnet in a script or is there any other way to do it.

Thanks in advance
5 REPLIES 5
Ian Dennison_1
Honored Contributor
Solution

Re: Telnet question

'netstat -a |grep telnet' on the server concerned will show if the telnet daemon is listening.

Share and Enjoy! Ian
Building a dumber user
Edward Alfert_2
Respected Contributor

Re: Telnet question

My all-time favorite monitoring program...

http://www.netsaint.org/

It will let you monitor any port on any number of machines on any interval you want and notify you any way you want (email, sound, etc.).

Hope you find it as usefull as i have...

enjoy.
"Do what you love and you will never work a day in your life." - Confucius
Peter Kloetgen
Esteemed Contributor

Re: Telnet question

Hi Anthony,

you should be able to use telnet in a script like every other command, if you know the structure of a script file: It is ASCII text file, this means at the end of a line there is a RETURN which is also registered when a shell is reading and interpreting the script. So you can use the lines

telnet host_that_you_want_or_IP
login_name
password

as alternative you can use the rsh-command without password, if you did the requested configuration. ( host- and system- aequivalency files are configured )

Allways stay on the bright side of life!

Peter
I'm learning here as well as helping
harry d brown jr
Honored Contributor

Re: Telnet question

I like to use this:

http://www.perlfect.com/articles/telnet.shtml


live free or die
harry
Live Free or Die
Andrei Petrov
Advisor

Re: Telnet question

Hi

With telnet you can try something like this

#(sleep 3;echo ;sleep 3;echo ;sleep 5;echo;sleep 5;echo "uname -a"; echo "exit")|telnet