[HPADM] SUMMARY: Port question



Thanks to everyone who responded, too numerous to list all of you! The
consensus is that netstat, lsof and the /etc/services file will be about
all the info I can get on ports in use. No way to determine ports that
will be used if the application is not running, unless it is listed in
/etc/services as reserved. Some useful links were sent, listed below

http://docs.hp.com/en/5990-7252/ch01s01.html (Thanks to Bill Hassel)

http://www.iana.org/assignments/port-numbers (Thanks to Michal Kapalka)

www.insecure.org (Thanks to John Backus)

http://www.pimpworks.org/hp/hpuxtips.html
<http://www.pimpworks.org/hp/hpuxtips.html> (Thanks to John Lanier)



-----Original Message-----
From: Yoho, Cindy
Sent: Wednesday, January 10, 2007 2:44 PM
To: 'hpux-admin@xxxxxxxxxxxxx'
Subject: Port question


Hi All,

Is there a way to determine all the different ports that are
used by a system, applications and all? I want to select a range of
unused ports to assign to an application but I'm not sure how to tell
which ones are unused. The /etc/services file is a list of ports and
what they are used for, but it is only as accurate as the sysadmin (me)
and I'm afraid that's not very accurate :-\ Is there another way or
ways to find this info? HP-UX 11i on rp7410.

Thanks in advance for any help ~
Cindy Yoho
System Engineer
United Methodist Publishing House
Nashville, Tennessee





Relevant Pages

  • Re: whats listening on these network ports?
    ... Anyone here know what programs are listening on those ports? ... I tried fstat and sockstat along with netstat -A and still couldn't ... (or sudo lsof -i:676 if you want to narrow the search) ...
    (comp.unix.bsd.freebsd.misc)
  • RE: Random unprivileged TCP ports below 5000 kind-of open for a fraction of a second
    ... Not only did he say that he ran lsof on the system (no ... Random unprivileged TCP ports below 5000 ... > I found out that by default nmap doesn't scan every ...
    (Incidents)
  • RE: ¡¡I NEED HELP!!
    ... I telnet to the host in those ports and got nothing but it ... Do you know the official site of lsof? ... Håkan Stensby: how does fuser work? ... Do You Yahoo!? ...
    (Security-Basics)
  • YMZ284? Re: My Mockingboard Clone
    ... date - a Mockingboard clone! ... It's also worth noting that a Mockingboard has two mostly unused ports ... of the 8910 without the extra I/O pins? ...
    (comp.sys.apple2)
  • RE: ¡¡I NEED HELP!!
    ... If you have debian and dont have lsof do this: ... I scanned my homeserver for open ports and I found that I have the ... 20034 NetBus Pro ...
    (Security-Basics)