My primary tools for reading OSX details on hardware are
system_profiler
and ioreg
. For network interface details, ifconfig
is the best bet. The first two will show you connection paths for the hardware as well as software driver information. In your example - media and status provide most of the details you listed.# ethtool eth3 Settings for eth3: Supported ports: FIBRE Supported link modes: 1000baseT/Half 1000baseT/Full Supports auto-negotiation: Yes Advertised link modes: 1000baseT/Half 1000baseT/Full Advertised auto-negotiation: Yes Speed: 1000Mb/s Duplex: Full Port: FIBRE PHYAD: 1 Transceiver: internal Auto-negotiation: on Supports Wake-on: g Wake-on: g Current message level: 0x000000ff (255. Linux Ethtool Command Examples. Ethtool - NIC Utility. Ethtool is a Network Interface Cards (NICs) utility/configuration tool. Ethtool allows you to query and change your NIC settings such as the Speed, Port, auto-negotiation and many other parameters. In the examples below, we will show you how to install the 'Ethtool' utility and demonstrate some basic functions that the tool can be.
In your case, you are grepping for Duplex, Speed and Link and on Mac hardware you can get all of that data from
ifconfig en0 | egrep [media|status]
as desired.I checked both of these commands, and they seem to probe extensive, system-wide info. I'd rather avoid that if possible..I wonder if there's something networking-focused? – AJ.19 mar. 122012-03-19 22:40:46
I disagree with this comment, you can easily replicate the suggested output of 'ethtool' simply by adding a grep statement in the same way you did. 'ifconfig en0 | grep Media:' supplies the same details as the first 3 of your ethtool outputs in a single command and without any extraneous information. – stuffe24 mar. 122012-03-24 13:07:22
The only difference remaining is that macs list autoselect and the negotiated link speed and don't simply report just the link speed. Piping output to awk and cut can help there is desired. – bmike24 mar. 122012-03-24 15:13:08 Punjabi font for mac os x.
@stuffe - the 'two commands' to which my comment refers were system_profiler and ioreg. i agree that ifconfig is less resource-intensive. – AJ.27 mar. 122012-03-27 20:12:42
Original author(s) | David S. Miller |
---|---|
Developer(s) | Ben Hutchings |
Initial release | 1998; 22 years ago |
Repository | |
Written in | C |
Operating system | Linux |
Type | Networking |
License | GPLv2 |
Website | www.kernel.org/pub/software/network/ethtool/ |
ethtool is a utility for Linux kernel-based operating system for displaying and modifying some parameters of network interface controllers (NICs) and their device drivers. ethtool is developed parallel to the Linux kernel.
Usage[edit]
The command is useful for: Citrix receiver for mac sierra not working.
- Identification and diagnosis of Ethernet devices
- Extended Ethernet devices statistics
- Control speed, duplex, auto-negotiation and flow control for Ethernet devices
- Control checksum offload and other hardware offload features
- Control DMA ring sizes and interrupt moderation
- Control receive queue selection for multiqueue devices
- Upgrade firmware in flash memory
Examples[edit]
To display the current parameters of the first network port (eth0):
To force its speed and duplex, in 1000BASE-T:
mii-tool[edit]
mii-tool is an older program performing a similar function to ethtool. Since 2003,[1] it's considered obsolete and replaced by ethtool.
Example[edit]
To display the current parameters:
Os X 10.12
To force the network speed to 1 Gbit/s, and the duplex in full on the port 1 (eth0):
See also[edit]
Ethtool For Os X 8
References[edit]
- ^http://lists.olug.org/pipermail/olug/2003-September/010415.html
External links[edit]
Os X El Capitan
Retrieved from 'https://en.wikipedia.org/w/index.php?title=Ethtool&oldid=956134103'