Page 1 of 1

Problem Running mii-tool

Posted: Wed May 20, 2009 8:57 am
by jdmfontz
Have a small php script that calls mii-tool, but I am getting this error:

[root@localhost libexec]# mii-tool eth0
SIOCGMIIPHY on 'eth0' failed: Operation not supported

Here is my kernel version:

[root@localhost libexec]# uname -a
Linux localhost.localdomain 2.6.18-128.1.1.el5 #1 SMP Mon Jan 26 13:59:00 EST 2009 i686 i686 i386 GNU/Linux

Here is the latest version of net-tools I have which is the latest for el5:

[root@localhost libexec]# rpm -qa | grep -i net-tools
net-tools-1.60-78.el5
net-tools-debuginfo-1.60-73
[root@localhost libexec]#


I heard that there were problems with mii-tool implementations in kernel version 2.6 and thereafter. There were also talks about a patch, but has not been able to find anything. Does anyone knows of a workaround?