ORACLE: Bash 查看网络连接

# netstat -nat |awk '{print $6}'|sort|uniq -c |sort -rn
    556 ESTABLISHED
     66 TIME_WAIT
     31 LISTEN
      1 Foreign
      1 established)

# netstat -anlp|grep 1521|grep tcp |awk '{print $5}'|awk -F: '{print $1}' | sort | uniq -c | sort -nr | head -n20 
    111 192.168.100.92
     88 10.20.0.90
     78 10.20.0.99
     64 192.168.100.93
     64 10.20.0.27
     50 10.20.0.201
     43 10.20.0.96
     40 10.20.0.92
     35 10.20.0.91
     33 10.20.0.93
     28 10.20.0.97
     24 10.20.0.98
     22 10.20.0.100
     18 192.168.100.90
     13 192.168.100.140
     13 10.20.0.107
      7 10.20.0.191
      6 192.168.100.97
      6 10.20.0.101
      4 10.20.0.72
点赞

发表评论

电子邮件地址不会被公开。必填项已用 * 标注