Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
to check every some minute the status of port 25 and 80 for my domain. Now my datacenter uninstalled "telnet" , have I some alternative to telnet linux command please ?
I was using telnet mydomain.com 25 and telnet mydomain.com 80 to check every some minute the status of port 25 and 80 for my domain. Now my datacenter uninstalled "telnet" , have I some alternative to telnet linux command please ?
If I read this correctly your goal is not to use telnet but to be able to monitor services. If you monitor services then you will probably also restart them automagically on and be notified of certain conditions. While homebrewn kludges are nice they're usually not that configurable (say switching to HTTPS) or extensible (add NTP, a specific web-based application path, etc, etc) and that's why people before you already invented the wheel. So unless you want to re-invent the wheel, why not use something like Monit, Hobbit or even Nagios?..
If you are just only concern to check the port avaibility then why dont you use the "nmap <IP address> -sT -p <port>". This will simply gives you the status of open ports on the respective remote servers.
Wrong...please re-read my post. You have to SPECIFY the port, like "wget localhost:443", or "wget 10.11.12.13:25"
Yea....may be u r rite.....if the requirement is just to check if a port is open, you can use the port no. along with the domain name or IP. But it will try to send http request to that port, even if wget is made to connect to a non-http port.
Anyway I think graziano1968, can use this to check the availability of a remote port.
[root@localhost ~]# wget linux-web.com:25
--2011-08-21 19:48:14-- http://linux-web.com:25/
Resolving linux-web.com... 202.65.135.196
Connecting to linux-web.com|202.65.135.196|:25... connected.
HTTP request sent, awaiting response... 200 No headers, assuming HTTP/0.9
Length: unspecified
Saving to: `index.html'
[root@localhost ~]# vi index.html
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# cat index.html
220-server102.hostcats.com ESMTP Exim 4.69 #1 Tue, 11 Oct 2011 09:49:31 +0530
220-We do not authorize the use of this system to transport unsolicited,
220 and/or bulk e-mail.
500 unrecognized command
500 unrecognized command
500 unrecognized command
500 Too many unrecognized commands
If you are just only concern to check the port avaibility then why dont you use the "nmap <IP address> -sT -p <port>". This will simply gives you the status of open ports on the respective remote servers.
Thanks & Regards,
Ramesh Shihora
The problem is that nmap does not come preinstalled in all OS (such as red hat , centos) . I am searching an alternative to telnet
which is available in almost all major linux distro such as Red Hat/Centos.
---------- Post added 10-11-11 at 05:44 AM ----------
Quote:
Originally Posted by rameshshihora
Hey,
If you are just only concern to check the port avaibility then why dont you use the "nmap <IP address> -sT -p <port>". This will simply gives you the status of open ports on the respective remote servers.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.