Wednesday, August 17, 2005

Check_Cable

> is there a way within solaris 10 to determine if a network cabel is
> plugged in the socket of an ethernet interface (connection LED is green) ?

Yes. For example:

# kstat -n hme0 | grep link_up
link_up 1

link_up = 0 means no link, link_up = 1 means has link.

It does not directly tell you if it is plugged in or not, but you can
deduce that if link_up = 0, it is probably unplugged, plugged in wrong
interface, or has a bad cable.

or

bash-2.05# ndd -get /dev/hme link_status
1
bash-2.05#

It'll give you an idea if there is a physically connected device plugged in
anyway!

0 Comments:

Post a Comment

<< Home