咨询热线:4006-75-4006
售前:9:00-23:30 备案:9:00-18:00 技术:7*24h
查看网卡信息---型号,监控网络实时带宽 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