Re: which process bind some port

From: Reg Quinton (reggers@ist.uwaterloo.ca)
Date: 09/03/02


From: "Reg Quinton" <reggers@ist.uwaterloo.ca>
To: "Nakamura" <eiji@pfu.fujitsu.com>
Date: Tue, 3 Sep 2002 16:36:23 -0400


> Try using the lsof utility.

On Solaris 8 you can find the process/socket bindings without installing a
third party product. Try pfiles:

[4:30pm wally]# pfiles /proc/* > /tmp/procs

if you browse the results you'll find things like:

[4:30pm wally]# more /tmp/procs
....etc.
13396: /software/ssh-openssh-3.0/servers/sshd
  Current rlimit: 256 file descriptors
.....etc.
   6: S_IFSOCK mode:0666 dev:247,0 ino:26450 uid:0 gid:0 size:0
      O_RDWR|O_NONBLOCK
        sockname: AF_INET 129.97.108.65 port: 22
        peername: AF_INET 129.97.108.204 port: 3428
....etc.

That shows the network connection corresponding to:

[4:32pm wally]# netstat -an | grep 3428
129.97.108.65.22 129.97.108.204.3428 16768 39 24820 0
ESTABLISHED

Not too surprising, it's the SSH daemon on port 22.



Relevant Pages

  • Re: lppchk -v error
    ... That "fileset" comes as a result of installing some ... weird third party product. ... > N.B. Unsolicited email from vendors will not be ...
    (AIX-L)
  • Re: Logs in Windows OS
    ... philo wrote: ... Does the Windows OS keep track of the files installed while ... installing a third party product? ...
    (alt.os.windows-xp)
  • Re: Logs in Windows OS
    ... Does the Windows OS keep track of the files installed while installing ... then look in your Windows folder (and sub-folders) for the logyou are ...
    (alt.os.windows-xp)
  • Logs in Windows OS
    ... Does the Windows OS keep track of the files installed while installing ... -Raja Sundar. ...
    (alt.os.windows-xp)