[robg adds: I tested this, and it works as described. Note that this simply returns the speed of the connection, not the throughput. If you want to see network throughput, try this GeekTool script.]
|
|
|
I've written a quick script to print the network interface speeds, designed for use with GeekTool. In particular, this is very useful for seeing how fast your WiFi has connected. Create a new entry in GeekTool, and set it to a Shell action (how to do this varies depending on if you're using GeekTool 2.x or 3.x). In the Command window, enter the following code:
Set the Refresh pop-up to whatever you prefer; the information provided is generally unchanging, so you can use a large refresh interval. If you'd prefer to run the above as a straight shell script, change the echo lines at the end to be echo -e .... Note that the script assumes en0 is wired Ethernet, and en1 is wireless networking.
[robg adds: I tested this, and it works as described. Note that this simply returns the speed of the connection, not the throughput. If you want to see network throughput, try this GeekTool script.]
•
[17,569 views]
Hint Options
See network connection speed via GeekTool
why not use "airport -l" as command?
See network connection speed via GeekTool
I figured people would have a better way to do this - I churned this script out in about 5 mins as I have varying breeds of access point around my flat and was particularly interested in what WiFi speed I am getting.
However - airport -l isn't something that my version of airport does:
What does it do for you?
See network connection speed via GeekTool
This is a nice hint, even if you don't use geektool. I didn't know about
airport -I before.If you run airport -I you will see other valuable information besides network speed you might be interested in. An exotic example would be noise ratios (might be interesting while placing your gear). More common information is the actual channel your network is on, and the authentication it's using. (I couldn't believe it first, neither Network Utility, nor System Preferences delivers this information).
See network connection speed via GeekTool
It should be noted that the command "airport" is not a default command and requires a sudo and password authentication to enable.
Use the following, assuming you understand that a sudo call should not be taken lightly:
See network connection speed via GeekTool
No, there's no need for sudo to enable the airport program used here, only to create the symbolic link you mentioned. You can invoke the program where it is by specifying the full pathname, you could make a symbolic link to it that lives in a directory of yours where you have write permission, you could make a shell alias, add a directory to your search path, etc. If authentication was needed to make the program available for use, the proposed symbolic link wouldn't provide it.
See network connection speed via GeekTool
If your only aim is "seeing how fast your WiFi has connected", then clicking the Airport menu item while pressing the option-key will achieve that, too. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.23 seconds |
|