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 -------------------- ----- -------- -------- ----- -------- -------- ...

+ Reply to Thread
Results 1 to 7 of 7

Thread: Understanding netstat output

  1. 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


  2. 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...

  3. 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


  4. Re: Understanding netstat output

    Sashi wrote:
    > On Jun 11, 5:02 pm, Rick Jones wrote:
    > > Unless your netperf has an option to display owning process (not all


    > 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.


    Oops, incomplete context switch from Mr Netperf mode That should
    have read:

    "unless your netstat has an option..."

    rick jones
    --
    firebug n, the idiot who tosses a lit cigarette out his car window
    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...

  5. 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



  6. Re: Understanding netstat output

    Solaris:

    pfiles /proc/*

    warning: slow

    the output probably needs some tweaking by awk/etc

    --
    rs

  7. Re: Understanding netstat output

    try this to get pid's of port ..... lsof -i:

+ Reply to Thread