Jim Lane wrote:
Bill: maybe I'm chasing a phantom here but what I really want is to
check whether the application, process, service (call it whatever) that
corresponds to a particular UDP port is up and running on a remote host.
I don't really want to send any data, or receive any beyond what may be
necessary just to check status. some examples of what I'm after are:
- port 123. which means an ntp process is running.
- port 161. an SNMP agent is running.
- port 177. an XDMCP graphical login process is up.
- port 514. the syslogd daemon is running.
my script takes a list of host names and for each one checks if a
specified port is up. I know that the nmap program can do what I want
but my C isn't up to decoding it. I was hoping to find a simple Perl
equivalent. make sense?
I don't know what nmap does, but without actually sending data
to a UDP port (or accessing the computer via an app that resides
on the computer in question that can determine if an app is
listening to that port), I know of no way to determine if the
port is in use. Some sort of SNMP solution might work. On
Windoze you could probably get the info with WMI. I think
nmap actually writes to the UDP port.
--
,-/- __ _ _ $Bill Luebkert ICQ=162126130
(_/ / ) // // DBE Collectibles Mailto:[EMAIL PROTECTED]
/ ) /--< o // // http://dbecoll.tripod.com/ (Free site for Perl)
-/-' /___/_<_</_</_ Castle of Medieval Myth & Magic http://www.todbe.com/
_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs