Determining speed of device...
Got a quick question... Other than looking in dmesg for what the driver reported the speed of the cable of the network device, does anybody know what utility or place in /proc that'll tell you what the speed of the cable connected to your machine is. Thanks, Tim.
On Wed, Jul 11, 2001 at 04:57:12PM -0400, Keller, Tim wrote:
Other than looking in dmesg for what the driver reported the speed of the cable of the network device, does anybody know what utility or place in /proc that'll tell you what the speed of the cable connected to your machine is.
There is no guaranteed way of doing this from the OS since each driver is different (kind of annoying). You can look at mii-tool which should be able to get/set the network settings if the driver supports it. Otherwise it's dmesg or another driver specific method. If you just want to know the speed, your card may have a 10/100 mbit LED/set of LEDs on the back which will tell you. (My Kingston KNE111's at home have "100mbit" and "Full Duplex" LEDs, which will handle the 4 possibilities. (10hdx/10fdx/100hdx/100fdx)) With the Intel EEPro cards I have at work, you can cat /proc/net/PRO_LAN_Adapters/eth#.info and get a whole bunch of information including the speed/duplex: [...] System_Device_Name eth0 Current_HWaddr 00:D0:B7:7F:19:CC Permanent_HWaddr 00:D0:B7:7F:19:CC Part_Number 721383-009 Link up Speed 100 Duplex full State up Rx_Packets 733794920 Tx_Packets 828391473 [...] -- Randomly Generated Tagline: After watching my newly-retired dad spend two weeks learning how to make a new folder, it became obvious that "intuitive" mostly means "what the writer or speaker of intuitive likes". (Bruce Ediger, bediger@teal.csn.org, in comp.os.linux.misc, on X the intuitiveness of a Mac interface.)
participants (2)
-
Keller, Tim
-
Theo Van Dinter