telnet alternative
Hello
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 ? Thank you! |
try this: nc mydomain.com 80
|
Quote:
|
just check if you have the nmap command in your machine.....
|
Quote:
|
Quote:
Code:
wget <hostname or IP>:<port> | grep "connected" |
Quote:
|
yea..that was gud...but wget can't be used for the smtp port, 25
|
Quote:
|
no alternative ?
|
Quote:
|
Quote:
|
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. Thanks & Regards, Ramesh Shihora |
Quote:
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' [ <=> ] 294 --.-K/s in 0s 2011-08-21 19:48:16 (13.4 MB/s) - `index.html' saved [294] [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 |
Quote:
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:
|
All times are GMT -5. The time now is 11:43 AM. |