SUMMARY: Matching a TCP or UDP port number to a process

From: Kevin M. Korb (kmk@sanitarium.net)
Date: Mon Jun 19 2000 - 14:35:47 CDT


oops, forgot to put SUMMARY in the subject on that last message.

Thanks to:
Mike Salehi
Dan Brown
Todd Boss
Joe Thykattil

Everyone says to use lsof. 'lsof | grep port number' worked just fine so I am
happy. I knew about lsof but thought it only did files not ports. Thanks to
all who replied. I had the first three replies at the same time the question
came in!

~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
        Kevin Korb Phone: (407) 513-7732
        Systems Administrator Internet:
        Maxcess.net kkorb@maxcess.net (work)
        Orlando, Florida kmk@sanitarium.net (personal)
        Web page: http://www.sanitarium.net/
        PGP public key available: finger:kmk@ao.net
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~

On Mon, 19 Jun 2000, Kevin M. Korb wrote:

> Date: Mon, 19 Jun 2000 14:47:13 -0400 (EDT)
> From: Kevin M. Korb <kmk@sanitarium.net>
> To: sun-managers@sunmanagers.ececs.uc.edu
> Subject: Matching a TCP or UDP port number to a process
>
> Sun managers,
> Is it possible to determine what process/PID is listening on a
> particular port number? I know that in the Linux world I can use netstat -p
> and it will list them but I can't find an equivalent option in Solaris.
>
> TIA, will summarize.
>
>
> ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
> Kevin Korb Phone: (407) 513-7732
> Systems Administrator Internet:
> Maxcess.net kkorb@maxcess.net (work)
> Orlando, Florida kmk@sanitarium.net (personal)
> Web page: http://www.sanitarium.net/
> PGP public key available: finger:kmk@ao.net
> ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
>
>



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:14:10 CDT