Re: which process bind some port
From: Reg Quinton (reggers@ist.uwaterloo.ca)Date: 09/03/02
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|