You are not logged in.

#1 19 Jul 2007 14:02

ruban
Member
Registered: 18 Jul 2007
Posts: 2

Check if a telnet server is online in a bat file ?

Hi !!

Need help.......

I need to create a bat scirpt that check if a telnet server is online. I have use this line before:

ping 10.45.1.25 -n 1
if not errorlevel 1 goto checkonline

but the ping command is nolonger allow in the network anymore.

Anyone have any tips ??


Fredrik from Sweden

Offline

#2 20 Jul 2007 13:52

bluesxman
Member
From: UK
Registered: 29 Dec 2006
Posts: 1,129

Re: Check if a telnet server is online in a bat file ?

I guess you could try using a command line port scanner (nmap, for example) to see if a given port is open on the server ("23" in the case of telnet).  That's even more effective than a ping because you're checking for the actual service you want to connect to, rather than just whether the server is available.


cmd | *sh | ruby | chef

Offline

Board footer

Powered by