Connection Speed (command for it??)

Connection Speed (command for it??)

Post by Kevin Mile » Thu, 08 Jul 1999 04:00:00



Anyone know if a command exists in solaris2.6 or 2.7 to
determine how fast an ethernet connection is??
Seems a silly question but someone asked me and I
don't know of one....
 
 
 

Connection Speed (command for it??)

Post by Peter Sundstro » Fri, 09 Jul 1999 04:00:00


ndd -set /dev/hme  instance 0
ndd -get /dev/hme link_speed

Substitute the appropriate device in the first line if your ethernet
interface is not /dev/hme0
The second line will return a 0 for 10Mbit or 1 for 100Mbit

Also useful is:

ndd -get /dev/hme link_mode
0 is half duplex, 1 is full duplex


>Anyone know if a command exists in solaris2.6 or 2.7 to
>determine how fast an ethernet connection is??
>Seems a silly question but someone asked me and I
>don't know of one....