View Full Version : Telnet and http connection


Wensi Peng
09-16-2005, 05:09 PM
Hi,

I have many servers from IBM and HP with web client to do remote management.
I want to find a way to check web connections. I tried to use httpcmd of
Microsoft. It does not work for IBM servers. I use "telnet server 80". It
can connect to all type of servers. However, I have problem to run the
telnet in a batch file to check over hundred servers.
Problems are:
(1) how to enter HTTP commands/request to get a page info
(2) how to disconnect telnet connection in a batch file. I have to
interactively enter EXIT and RETURN in the black screen to disconnect the
active telnet connection in order to come to next server.


Thanks,
Wensi

Paul R. Sadowski [MVP]
09-16-2005, 05:24 PM
Hello, Wensi:
On Fri, 16 Sep 2005 12:09:07 -0400: you wrote...

WP> Hi,
WP>
WP> I have many servers from IBM and HP with web client to do remote
WP> management. I want to find a way to check web connections. I tried to
WP> use httpcmd of Microsoft. It does not work for IBM servers. I use
WP> "telnet server 80". It can connect to all type of servers. However, I
WP> have problem to run the telnet in a batch file to check over hundred
WP> servers. Problems are:
WP> (1) how to enter HTTP commands/request to get a page info
WP> (2) how to disconnect telnet connection in a batch file. I have to
WP> interactively enter EXIT and RETURN in the black screen to disconnect
WP> the active telnet connection in order to come to next server.

The telnet client that comes with Windows really isn't scriptable. Try
something like Kermit95 which is. It's low-cost.

If you want to use WSH then look at HTMLHead.vbs @
http://www.paulsadowski.com/WSH/xmlhttp.htm
That should be sufficient for checking connectivity.

Regards, Paul R. Sadowski [MVP].