Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Showing results for 
Search instead for 
Did you mean: 

difference between /proc/net/nicinfo/ and /sbin/mii-tool -v eth0

Go to solution
Vincent DANTEN
Occasional Advisor

difference between /proc/net/nicinfo/ and /sbin/mii-tool -v eth0

Hi guys,

these two command send back different value for the speed, which is the corect one ?


[root@lx001082 init.d]# cat /proc/net/nicinfo/
Description HP NC7781 Gigabit Server Adapter
Driver_Name bcm5700
Driver_Version 6.2.17a
Bootcode_Version 5703-v2.33
System_Device_Name eth0
Auto_Negotiate on
Speed 100
Duplex half
Flow_Control off
State up
MTU_Size 1500


[root@lx001082 init.d]# /sbin/mii-tool -v eth0
eth0: 100 Mbit, full duplex, link ok
product info: vendor 00:08:18, model 22 rev 2
basic mode: 100 Mbit, full duplex
basic status: link ok
capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control


Re: difference between /proc/net/nicinfo/ and /sbin/mii-tool -v eth0

mii-tool and ethtool should give you correct info .

I am not able to find '/proc/net/nicinfo/ ' in my Linux AS 2.1 OS .

Trusted Contributor

Re: difference between /proc/net/nicinfo/ and /sbin/mii-tool -v eth0

mii-tool gives you an accurate reading. These days, most media devices auto-negotiate link settings via the intelligent devices built-in. The status of the link is always correctly reported by mii-tool.
Debian GNU/Linux for the Enterprise! Ask HP ...