General
cancel
Showing results for 
Search instead for 
Did you mean: 

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

SOLVED
Go to solution
Vincent DANTEN
Occasional Advisor

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

Hi guys,

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

Thanx



[root@lx001082 init.d]# cat /proc/net/nicinfo/eth0.info
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

AND

[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

2 REPLIES
rvrameshbabu
Advisor

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

mii-tool and ethtool should give you correct info .

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

Ragu_3
Trusted Contributor
Solution

Re: difference between /proc/net/nicinfo/eth0.info 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 ...