LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-14-2010, 12:08 PM   #1
Vimuth
Member
 
Registered: Sep 2009
Posts: 59

Rep: Reputation: 15
How to telnet to a port continuously


Dear Gentleman,
Could someone please advice me as to how I should telnet continuously to a certain port on a server from a remote machine in order to determine if there are any disconns. Preferably I'd like to take the incoming telnet stream to a file at the server end and check if there are any disconnections. Heard this can be done with the use of "nc" ? If thats case the would someone please help me out with the steps.

For an instance say my server IP which the clients are connecting to is 212.*.*.* and the port is 7005. Please help out gentlemen.

Many thanks in advance

Cheers
Vimo
 
Old 06-14-2010, 01:00 PM   #2
frndrfoe
Member
 
Registered: Jan 2008
Distribution: RHEL, CentOS, Ubuntu
Posts: 379

Rep: Reputation: 38
By disconns do you you mean network connectivity, or the server shutting down active connections due to crashing or something?

You could use nagios to verify network connectivity and server response.
 
Old 06-16-2010, 04:27 AM   #3
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by Vimuth View Post
Dear Gentleman,
Could someone please advice me as to how I should telnet continuously to a certain port on a server from a remote machine in order to determine if there are any disconns. Preferably I'd like to take the incoming telnet stream to a file at the server end and check if there are any disconnections. Heard this can be done with the use of "nc" ? If thats case the would someone please help me out with the steps.

For an instance say my server IP which the clients are connecting to is 212.*.*.* and the port is 7005. Please help out gentlemen.

Many thanks in advance

Cheers
Vimo
Like frndrfoe says, nagios is a good choice but of course there are simpler monitoring tools to configure, like monit or big brother.

As you asked, nc or netcat can monitor the port for a connection.

nc hostname port

echo command | nc hostname port
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PLESK [Solution] Change port to 23 (telnet) instead of default port 8443 x5452 Linux - Software 6 05-10-2009 05:58 AM
telnet to port 22 icechong Linux - Newbie 9 03-08-2007 01:25 AM
cannot telnet port 25 varun_saa Mandriva 2 12-30-2006 11:25 PM
can't telnet to port 25 varun_saa Mandriva 8 12-05-2005 08:36 PM
telnet to port 80 davee Linux - Networking 5 08-06-2003 03:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration