统计连接到主机前十的ip地址和连接数
2024-10-06 18:38:15
常用脚本–tcp
- #!/bin/bash
- #
- #********************************************************************
- #encoding -*-utf8-*-
- #Author: zhangshang
- #Date: 2017-11-25
- #URL: http://blog.vservices.top/myblog
- #Description: The test script
- #Copyright (C): 2017 All rights reserved
- #QQ Numbers: 765030447
- #********************************************************************
- echo -e "\033[31m**************************net_tcp_top_10*********************************\033[0m"
- echo -e "IPADDR\t\tcount"
- ss -nt | grep 'ESTAB' | awk '{print $5}' | cut -d: -f1 | grep "^[[:digit:]]\+.*" | sort | uniq -c | sort -rnk1 | awk '{print $2,"\t",$1}' | head
最新文章
- ThreadLocal对象使用过程中容易陷入的坑
- WCF wsHttpBinding之Transport security Mode, clientCredentialType=”Basic”
- java删除文件夹
- session在.ashx文件操作问题
- HotApp
- 正向代理VS反向代理 总结
- Doodle Poll 投票文档
- 释放C盘空间的27招优化技巧
- VHD_Update_mount-vhd
- Ruby简介,附带示例程序
- Oracle的大数据类型,BIG DATA TYPE
- RPC 的概念模型与实现解析(转)
- Silverlight的Socket通信
- POJ 3237 Tree 【树链剖分】+【线段树】
- 《linux就该这么学》第十节课:第8章iptables和firewalld
- Java:内部接口
- dbeaver can't connect HBase1.2 using phoenix driver #1863
- redis事件监听及在订单系统中的使用
- Memory consumption of popular Java data types
- 12 tensorflow实战:修改三维tensor矩阵的某个剖面
热门文章
- npm run build 报错 Error: No PostCSS Config found in...
- 简单深入Joomla!3.1.5模块_组件开发(一)
- Facebook推荐算法模型DLRM解读
- SQL SERVER 使用游标删除所有主键
- springboot集成mongoDB简易使用
- Android Studio彻底删除Module
- ubuntu18下Docker运行springboot项目
- Java静态代理与动态代理实现
- django中的缓存 跨域问题(同源策略)
- Python占位符使用总结