[UNIX-WIZ] Fixed: [UNIX-WIZ] Correlate process and socket in Solaris 8
That works wonderfully.
Thanks, Kevin!
root@myserver:/tmp# netstat -a | grep CLOSE_
bkserv.bprd bkclient.63670 49640 0 49640 0 CLOSE_WAIT
root@myserver:/tmp# lsof -i “TCP@255.255.170.91:60504″
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
bprd 1688 root 5u IPv4 0×3005e146f70 0t234 TCP
bkserv:bprd->bkclient:60504 (CLOSE_WAIT)
root@myserver:/tmp#
- Kai
On Mon, Apr 7, 2008 at 1:49 PM, Kevin Inscoe wrote:
>
> 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!