linux下监控带宽资源方法

2016-04-22 07:35:50 4595

查看网卡信息---型号,监控网络实时带宽  1.查看网卡详细信息  

1)dmesg | grep -i eth  

2) ethtool eth1 Settings for eth1: 

        Supported ports: [ TP MII ] 

        Supported link modes:   10baseT/Half 10baseT/Full  

                                100baseT/Half 100baseT/Full          Supports auto-negotiation: Yes 

        Advertised link modes:  10baseT/Half 10baseT/Full  

                                100baseT/Half 100baseT/Full          Advertised auto-negotiation: Yes         Speed: 100Mb/s         Duplex: Full         Port: MII         PHYAD: 32 

        Transceiver: internal         Auto-negotiation: on 

        Supports Wake-on: pumbg         Wake-on: d 

        Current message level: 0x00000007 (7)         Link detected: yes  

2.查看网络实时带宽  

在linux的proc文件系统中,通过查看/proc/net/dev文件 可以得到每个网络接口的吞吐量,但是无法获得实时带宽 

最近发现了一种基于ncurses库的小程序bmon,可以获得实时带宽  

Example: 

执行 bmon -o ascii -p eth1


提交成功!非常感谢您的反馈,我们会继续努力做到更好!

这条文档是否有帮助解决问题?

非常抱歉未能帮助到您。为了给您提供更好的服务,我们很需要您进一步的反馈信息:

在文档使用中是否遇到以下问题: