SUMMARY: port speed

From: Christopher L. Barnard <cbar44_at_tsg.cbot.com>
Date: Wed Apr 17 2002 - 12:29:57 EDT
I asked:

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.

The answer:

no.

A *lot* of people responded, far too many to list, telling me of the
multiple ndd commands you could do on each interface.  I have been
doing that, but I wanted to find out if there is a single command before
I possibly re-invent the wheel.  There is not, so I have written a perl
script that gets all interface names on a machine and then runs the
appropriate ndd commands to determine the speed of all interfaces.

+-----------------------------------------------------------------------+
| Christopher L. Barnard         O     When I was a boy I was told that |
| cbarnard@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---------+
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Wed Apr 17 12:43:44 2002

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:40 EST