Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Sort of "ping" test for telnet and its open ports...

105 views
Skip to first unread message

mudriu

unread,
May 22, 2007, 10:22:01 AM5/22/07
to
hello world!
1st post for me here.

my boss give me a task for this week.

we have a lot of servers (45-50) and every machine has different
service. (ISS, APACHE, RDP, VNC, etc.)

I must compile a 'simple' HTML page where every row contains :
IP - machinename - ISSexistence - APACHEexistence - RDPon - VNCon - etc

I know that all service that use port can be contacted by telnet,
so i think that if i can test single telnet port i can determine if a
determinate service is running...

can anyone help me?

Andrea

Jeffery Hicks

unread,
May 22, 2007, 10:37:54 AM5/22/07
to

I'd use a third party port scanning tool that generates HTML reports.
Here's one that might work:

http://www.snapfiles.com/get/superscan.html

I wouldn't try and re-invent the wheel. Sure this might be possible
with a script but spend the time and energy, unless you want the
learning experience.

--
Jeffery Hicks
SAPIEN Technologies - Scripting, Simplified. www.SAPIEN.com
VBScript & Windows PowerShell Training -
www.ScriptingTraining.com/classes.asp
Windows PowerShell? - www.SAPIENPress.com/powershell.asp

blog: http://blog.SAPIEN.com
blog: http://jdhitsolutions.blogspot.com

Si Ballenger

unread,
May 22, 2007, 9:09:30 PM5/22/07
to

Two places to start:

====ping1.vbs====

function ping(arg)
with createobject("wscript.shell")
ping = Not CBool(.run("ping -n 1 " & arg,0,true))
end with
end function

wscript.echo cstr(ping("127.0.0.1"))
wscript.echo cstr(ping("www.yahoo.com"))
wscript.echo cstr(ping("blah.blah.com"))

====ping2.vbs====

strComputer = "127.0.0.1"
'strComputer = "mycomp"
Set WshShell = WScript.CreateObject("WScript.Shell")
theCmd = "ping " & strComputer & " -n 1 -w 250"
Return = WshShell.Run(theCmd, 0, true)
if Return = 0 then
Wscript.echo "Ping successful"
else
Wscript.echo "Ping failed"
End If

mudriu

unread,
May 23, 2007, 11:18:03 AM5/23/07
to
vbs ping is a good thing. thank you Si.

Jeff, i think that Telnet stuff is important to test the availability
of services, and usefull also for linux boxes.

any idea or command line tool to do this test?

Andrea

0 new messages