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
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
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
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