port speed

2007-12-24 22:27:00

Does anyone know of a single command that will tell me the speed of an
interface? I have a shell script with ndd commands to query the speed,
but that shell script queries each interface 5 times (10/half, 10/full,
100/half, 100/full, autonegotiate) and so it is much harder to put in
cron. TIA.

+-----------------------------------------------------------------------+
| Christopher L. Barnard O When I was a boy I was told that |
| cbarnard at tsg.cbot.com / \ anybody could become president. |
| (312) 347-4901 O---O Now I'm beginning to believe it. |
| http://www.cs.uchicago.edu/~cbarnard --Clarence Darrow |
+----------PGP public key available via finger or PGP keyserver---------+

Comments

Got something to say?

You must be logged in to post a comment.