> How can I determine what pre-existing TCP daemon port numbers are in use by
> other services? I need to do this for HP-UX, Sun (Solaris), and AIX.
This will only get you services that are already running. You could
run into a conflict if the service is defined but not running, like
TELNET or FTP, etc. that are spawned out of /etc/inetd.conf.
--
************************************************************
* A goofy Unix SA working for a large computer equipment *
* manufacturer and services provider. Opinions expressed *
************************************************************
Steve Pushak a crit:
You can also run "iss". This program scans all ports for one, or several, IPQuote:> How can I determine what pre-existing TCP daemon port numbers are in use by
> other services? I need to do this for HP-UX, Sun (Solaris), and AIX.
Regards
Open a socket, and try to bind to that port number. If the port is in
use, the bind will fail unless you set SO_REUSEADDR. Another
possibility would be to parse the output of something like "netstat
-an."
rick jones
--
these opinions are mine, all mine; HP might not want them anyway... :)
feel free to email, or post, but please do not do both...
my email address is raj in the cup.hp.com domain...
or try to download and compile lsof.Quote:>> How can I determine what pre-existing TCP daemon port numbers are in use by
>> other services? I need to do this for HP-UX, Sun (Solaris), and AIX.
> You can also run "iss". This program scans all ports for one, or several, IP
>adresses. it will give you all the "active" ports. You can download it from
>http://www-frec.bull.com for the AIX version.
--
best regards from vienna | mayer (at) unisys.co.at_SPAM
hans | mayer (at) relay.bfl.at_SPAM
1. TCP daemon port number collisions
2. seagate 20gb drive question
3. TCP wrapper to log port/service number instead of name of daemon?
4. PROBLEM: Kernel Panics because of sync() and IO ressources, Supposed to be fixed in 2.4.5pre9 ?
5. How to determine daemon's TCP/IP ports?
7. ipchains/TCP/UDP, Why should I open UDP ports so that my TCP ports can work?
8. DIP 'Host name lookup failure'.
9. TCP port number and process
10. How to get tcp port numbers on Solaris 8/9
11. How to change openwin's tcp port number
13. Determining Flexlm Vendor TCP port numbers