告警通知变得轻松便捷——微信告警接口指南
814
2023-02-13
监视网络接口数据
监视网络接口TCP状态信息数据有多种工具或命令。下面举例一些:
nstat命令
ss命令
1 2 3 4 5 6 7 8 9 10 11 | # ss -s Total:319(kernel752) TCP:187(estab114,closed58,orphaned0,synrecv0,timewait58/0),ports0 Transport Total IP IPv6 *752-- RAW000 UDP321 TCP12911316 INET13211517 FRAG000 |
netstat命令
1 2 3 4 5 | # netstat -i Kernel Interfacetable Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg eth09001021949160001424609000BMRU lo65536076705980007670598000LRU |
ip命令
1 2 3 4 5 6 7 8 9 10 11 12 13 | # ip -s link 1:lo:<LOOPBACK,UP,LOWER_UP>mtu65536qdisc noqueue state UNKNOWN mode DEFAULTgroup default link/loopback00:00:00:00:00:00brd00:00:00:00:00:00 RX:bytes packets errors dropped overrun mcast 88339557576722580000 TX:bytes packets errors dropped carrier collsns 88339557576722580000 2:eth0:<BROADCAST,MULTICAST,UP,LOWER_UP>mtu9001qdisc pfifo_fast state UP mode DEFAULTgroup defaultqlen1000 link/ether02:7a:7d:d2:f7:21brd ff:ff:ff:ff:ff:ff RX:bytes packets errors dropped overrun mcast 69475438121972680000 TX:bytes packets errors dropped carrier collsns 29698040914252570000 |
sar命令
还有其它工具如nload,iftop等等,不一一列举了。
发表评论
评论列表