Re: [UNIX-WIZ] Correlate process and socket in Solaris 8

On Mon, Apr 7, 2008 at 3:38 PM, Kai Hintze wrote:
> Greetings oh Wizeness,
>
> How do I find out what process holds a socket on Solaris 8 (Sparc)?
>
> If I were using most flavors of Linux I would say
>
> fuser -n TCP
>
> to find out the process that is using that socket.
>
> But this box is Solaris 8, and the only thing fuser knows about for
> this OS seems to be files. Is there a flag I don’t see in the man
> page, or another tool?

lsof is the easy answer. However if you cannot install that you can
use pfiles for each pid on the system to track it down.

See also:

http://opensolaris.org/jive/message.jspa?messageID=11725#11725


Kevin P. Inscoe Amateur Call Sign: KE3VIN
Deltona, FL 32738 28.9497N by 81.1952W
kevin [at] inscoe [dot] org http://kevininscoe.com
Skype: ke3vin
“Write to be understood, speak to be heard, read to grow.” - Lawrence
Clark Powell


To unsubscribe from the UNIX-WIZ Mailing List, send an email to
LISTSERV@LISTSERV.NODAK.EDU having a body containing only “SIGNOFF
UNIX-WIZ” minus quotes of course. There are searchable archives located
at http://listserv.nodak.edu/archives/unix-wiz.html
———
ListAdmin: UNIX-WIZ-request@LISTSERV.NODAK.EDU
Contact the above address if you have any problems or questions about the
list itself!

Comments are closed.