On Thu, 2007-07-05 at 14:01 -0700, Quentin Hartman wrote:
> Anyone out there know of a way to manually blink link lights on
> ethernet interfaces under Linux? I am working on a project where it
> would be useful to be able to positively determine that a particular
> port on a computer corresponds to a particular ethX device by saying
> "Eth0 is the one with the blinking link light" and so on. I've been
> doing some man-page reading (mii-tool and ifconfig) and Googling, but
> have so far come up empty handed. A method that is easy to integrate
> into a Python or bash script would be best, as if beggars can be
> choosers... 

You should be able to blink the lights by manually writing to the port
address of the blinking lights.

One source could be grepping the your network cards driver within the
linux kernel sources.

My reasoning, this reminds me of my pci bios check card.  It prints hex
digit debug info from the major bios vendors and Linuxbios.org.  This is
done by writing the hex debug value to a predetermined port address on
the pci bus.  Basically, this same methodology here, I would assume is
also used for blinking lights on the pci/isa network card.  I would also
presume the light's port address may differ from card to card, or at
least, from isa to pci based cards.

--
Roger
http://www.eskimo.com/~roger/index.html
Key fingerprint = 8977 A252 2623 F567 70CD 1261 640F C963 1005 1D61

Thu Jul 5 21:18:49 PDT 2007

_______________________________________________
EUGLUG mailing list
[email protected]
http://www.euglug.org/mailman/listinfo/euglug

Reply via email to