Understanding netstat output - Unix
This is a discussion on Understanding netstat output - Unix ; All, I'm not sure if this is the right group but here goes.
Running 'netstat -av' gives me the following:
TCP: IPv4
Local/Remote Address Swind Snext Suna Rwind Rnext Rack
Rto Mss State
-------------------- ----- -------- -------- ----- -------- --------
...
-
Understanding netstat output
All, I'm not sure if this is the right group but here goes.
Running 'netstat -av' gives me the following:
TCP: IPv4
Local/Remote Address Swind Snext Suna Rwind Rnext Rack
Rto Mss State
-------------------- ----- -------- -------- ----- -------- --------
----- ----- -----
*.lockd
*.* 0 00000000 00000000 49152 00000000 00000000
3375 536 LISTEN
my.server.com.80
*.* 0 00000000 00000000 49152 00000000 00000000
3375 536 LISTEN
*.443
As you can see, my server (shown here as my.server.com) seems to have
port 80 occupied but I don't see any details. How can I find out who's
using this port?
Thanks in advance,
Sashi
-
Re: Understanding netstat output
Unless your netperf has an option to display owning process (not all
do) you want to see if your system has "lsof" (list open files)
installed and if not, install a copy.
rick jones
--
oxymoron n, Hummer H2 with California Save Our Coasts and Oceans plates
these opinions are mine, all mine; HP might not want them anyway... 
feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...
-
Re: Understanding netstat output
On Jun 11, 5:02 pm, Rick Jones wrote:
> Unless your netperf has an option to display owning process (not all
> do) you want to see if your system has "lsof" (list open files)
> installed and if not, install a copy.
>
> rick jones
> --
> oxymoron n, Hummer H2 with California Save Our Coasts and Oceans plates
> these opinions are mine, all mine; HP might not want them anyway... 
> feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...
I'm using Solaris 10 and there is no netperf command. Hm, maybe I need
to install that first.
lsof is probably a good idea.
Thanks,
Sashi
-
-
Re: Understanding netstat output
On Jun 12, 4:56 am, Sashi wrote:
> All, I'm not sure if this is the right group but here goes.
>
> Running 'netstat -av' gives me the following:
>
> TCP: IPv4
> Local/Remote Address Swind Snext Suna Rwind Rnext Rack
> Rto Mss State
> -------------------- ----- -------- -------- ----- -------- --------
> ----- ----- -----
> *.lockd
> *.* 0 00000000 00000000 49152 00000000 00000000
> 3375 536 LISTEN
> my.server.com.80
> *.* 0 00000000 00000000 49152 00000000 00000000
> 3375 536 LISTEN
> *.443
>
> As you can see, my server (shown here as my.server.com) seems to have
> port 80 occupied but I don't see any details. How can I find out who's
Try netstat -np
-
Re: Understanding netstat output
Solaris:
pfiles /proc/*
warning: slow 
the output probably needs some tweaking by awk/etc
--
rs
-
Re: Understanding netstat output
try this to get pid's of port ..... lsof -i: