【Linux】Linux上网络状态和软硬中断动态查看 您所在的位置:网站首页 linux查看中断列表 【Linux】Linux上网络状态和软硬中断动态查看

【Linux】Linux上网络状态和软硬中断动态查看

2024-07-10 18:51| 来源: 网络整理| 查看: 265

网络相关的错误排查,可以有几种方式:

 

1. 找系统类的错误, dmesg | tail

2. 直接的网络错误 sar -n ETCP 1 或者 sar -n EDEV 1

3.查看网络状态, netstat -s 或者 watch -d netstat -s

4.网络状态的统计 ss -ant | awk '{++s[$1]} END {for(k in s) print k,s[k]}'

#  netstat -s

#  watch -d netstat -s

#  netstat -s -u

# watch -d netstat -s -u

 

 

 

查看软中断:

 

# cat /proc/softirqs

 

# watch -d "/bin/cat /proc/softirqs | /usr/bin/awk 'NR == 1{printf \"%-15s %-15s %-15s %-15s %-15s\n\",\" \",\$1,\$2,\$3,\$4}; NR > 1{printf \"%-15s %-15s %-15s %-15s %-15s\n\",\$1,\$2,\$3,\$4,\$5}'"

 

 

查看硬中断:

# watch -d   "cat /proc/interrupts"

 

 



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有