42 Star 129 Fork 51

ppabc / cc_iptables

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
netstat.sh 391 Bytes
一键复制 编辑 原始数据 按行查看 历史
ppabc 提交于 2014-10-17 14:03 . netstat
#!/bin/bash
#netstat -na|grep ESTABLISHED|awk '{print $5}'|awk -F: '{print $1}'|sort|uniq -c|sort -n |tail -1 |awk 'FS="[ ]+" {print $2}'
netstat -na|grep ESTABLISHED|awk '{print $5}'|awk -F: '{print $1}'|sort|uniq -c|sort -n
echo "ESTABLISHED ok"
netstat -an| grep :80 | grep -v 127.0.0.1 |awk '{ print $5 }' | sort|awk -F: '{print $1,$4}' | uniq -c | awk '$1>2 {print $1,$2}'
echo "80 ok"
Shell
1
https://gitee.com/ppabc/cc_iptables.git
git@gitee.com:ppabc/cc_iptables.git
ppabc
cc_iptables
cc_iptables
master

搜索帮助