Unix administration - fuser

This is Interesting: Free IT Magazines  
Home > Archive > Unix administration > January 2004 > fuser





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author fuser
Carlos D. Garza

2004-01-23, 4:30 pm

How do I go about figureing out which pid is listening
on a given port? I'm useing SunOS 5.9 and I would like to
see what process is listening on tcp port 6112.

Tony Curtis

2004-01-23, 4:30 pm

>> On Sat, 26 Jul 2003 15:32:45 -0500,
quote:

[QUOTE][color=darkred]
> How do I go about figureing out which pid is
> listening on a given port? I'm useing SunOS 5.9 and I
> would like to see what process is listening on tcp port
> 6112.



lsof

(Not a very good Subject line)

hth
t
TJ Easter

2004-01-23, 4:30 pm

I use the 'lsof' tool, myself. Packages can be downloaded at
www.sunfreeware.com.

HTH...

-tj-


"Carlos D. Garza" <crc@world-net.net> wrote in message
news:3f22e576$0$43854$39cecf19@news.twtelecom.net...
quote:

> How do I go about figureing out which pid is listening
> on a given port? I'm useing SunOS 5.9 and I would like to
> see what process is listening on tcp port 6112.
>




Tony Curtis

2004-01-23, 4:30 pm

>> On Sat, 26 Jul 2003 15:32:45 -0500,
quote:

[QUOTE][color=darkred]
> How do I go about figureing out which pid is
> listening on a given port? I'm useing SunOS 5.9 and I
> would like to see what process is listening on tcp port
> 6112.



lsof

(Not a very good Subject line)

hth
t
Scott Howard

2004-01-23, 4:30 pm

In comp.unix.solaris Carlos D. Garza <crc@world-net.net> wrote:
quote:

> How do I go about figureing out which pid is listening
> on a given port? I'm useing SunOS 5.9 and I would like to
> see what process is listening on tcp port 6112.



[09:51:19][@milliways ~]$ grep 6112 /etc/services
dtspc 6112/tcp # CDE subprocess control
[09:51:24][@milliways ~]$ grep dtspc /etc/inetd.conf
dtspc stream tcp nowait root /usr/dt/bin/dtspcd /usr/dt/bin/dtspcd
[09:51:27][@milliways ~]$ su - root -c 'pfiles `pgrep inetd`'| grep 6112
Password:
sockname: AF_INET 0.0.0.0 port: 6112

Scott
Scott Howard

2004-01-23, 4:30 pm

In comp.unix.solaris Carlos D. Garza <crc@world-net.net> wrote:
quote:

> How do I go about figureing out which pid is listening
> on a given port? I'm useing SunOS 5.9 and I would like to
> see what process is listening on tcp port 6112.



[09:51:19][@milliways ~]$ grep 6112 /etc/services
dtspc 6112/tcp # CDE subprocess control
[09:51:24][@milliways ~]$ grep dtspc /etc/inetd.conf
dtspc stream tcp nowait root /usr/dt/bin/dtspcd /usr/dt/bin/dtspcd
[09:51:27][@milliways ~]$ su - root -c 'pfiles `pgrep inetd`'| grep 6112
Password:
sockname: AF_INET 0.0.0.0 port: 6112

Scott
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com