User Tools

Site Tools


netstat

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
netstat [2016/05/20 06:55] luke7858netstat [2024/05/23 07:26] (current) – external edit 127.0.0.1
Line 1: Line 1:
-=== Apache Connection IPs and Connection State (CentOS 6) ===+=== Apache Connection IPs and Connection State === 
 +Cent OS 6
 <sxh bash> <sxh bash>
 netstat -pant | awk '/http/ {print $5, $6}' | awk -F: '{print $4 , $5}' | awk '{print $1, $3}' | sort -k1 | uniq -c | sort -rn netstat -pant | awk '/http/ {print $5, $6}' | awk -F: '{print $4 , $5}' | awk '{print $1, $3}' | sort -k1 | uniq -c | sort -rn
Line 10: Line 11:
 Example output: Example output:
 <sxh bash> <sxh bash>
-     63 x.x.x.x CLOSE_WAIT +     63 x.x.x.x CLOSE_WAIT apache2 
-     58 127.0.0.1 ESTABLISHED +     58 127.0.0.1 ESTABLISHED apache2 
-      9 127.0.0.1 SYN_SENT +      9 127.0.0.1 SYN_SENT apache2 
-      1 10.x.x.254 CLOSE_WAIT +      1 10.x.x.254 CLOSE_WAIT apache2 
-      1 10.x.x.252 CLOSE_WAIT +      1 10.x.x.252 CLOSE_WAIT apache2 
-      1 10.x.x.251 CLOSE_WAIT +      1 10.x.x.251 CLOSE_WAIT apache2 
-      1 10.x.x.250 CLOSE_WAIT+      1 10.x.x.250 CLOSE_WAIT apache2
 </sxh> </sxh>
 \\ \\
netstat.1463727340.txt.gz · Last modified: 2024/05/23 07:26 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki