Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

netstat

Discussion in 'General Discussion' started by MMarko, Jan 28, 2006.

  1. MMarko

    MMarko Well-Known Member

    Joined:
    Apr 18, 2005
    Messages:
    316
    Likes Received:
    0
    Trophy Points:
    166
    One of the most twisted, but useful invocations is:

    netstat -a -n|grep -E "^(tcp)"| cut -c 68-|sort|uniq -c|sort -n

    This will show you a sorted list of how many sockets are in each connection state. For example:

    9 LISTEN
    21 ESTABLISHED


    :D


    Found this here -> http://people.redhat.com/alikins/system_tuning.html
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,366
    Likes Received:
    6
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    Actually thought the ps invocation mentioned was more useful.

    ps -eo pid,%cpu,vsz,args,wchan

    Thanks for the link.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice