SUMMARY: What process is using a port

From: Kevin Van Der Hart (kvanderhart@vermeermfg.com)
Date: Thu Sep 14 2000 - 13:02:42 CDT


Thanks for all of the replies to use lsof. It is a very helpful tool.
Unfortunately is has not been able to help me fix the original problem. lsof
reports that "/usr/lib/saf/listen tcp" is reserving port 515. That is why
inetd is unable to use that port for the in.lpd process. However I am unable
to determine why the "listen" process is using that port. I can find no
configuration changes on this box and the /etc/saf/tcp/_pmtab configuration
file is identical to an E3500 with identical patches loaded that does not
exhibit this problem. However I do also have an E4500 that is having the
same problem so I am wondering about the possibility of a patch having an
issue with a particular style of hardware since the E5500 is an E4500 that
comes in a Sun rack. If anyone has any suggestions other than calling Sun
tech support which I am already working on, please let me know. Thanks
again.

Original Posting:
-----------------
I have an E5500, Solaris 7, patched with Recommended Patchset downloaded
August 10th.

On reboot I started getting the following error:
        Sep 11 06:09:45 host inetd[223]: printer/tcp: bind: Address already
in use

I commented out the printer line in /etc/inetd.conf and the messages stopped
recurring. Now if I telnet to port 515 I get the following:
        Connected to localhost.
        Escape character is '^]'.
        Connection closed by foreign host.

How can I tell which process is responding to port 515 short of killing
processes until the port stops responding? I tried killing inetd, did an
lpshut, and it will still respond to port 515. Thanks in advance and I will
summarize.

Kevin Van Der Hart
Systems Administrator
Vermeer Mfg Co
Mailto:kvanderhart@vermeermfg.com

S
U BEFORE POSTING please READ the FAQ located at
N ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/faq
. and the list POLICY statement located at
M ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/policy
A To submit questions/summaries to this list send your email message to:
N sun-managers@sunmanagers.ececs.uc.edu
A To unsubscribe from this list please send an email message to:
G majordomo@sunmanagers.ececs.uc.edu
E and in the BODY type:
R unsubscribe sun-managers
S Or
. unsubscribe sun-managers original@subscription.address
L To view an archive of this list please visit:
I http://www.latech.edu/sunman.html
S
T



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:14:17 CDT