Check hme ethernet link speed, duplex, and status in Solaris

Home -> UNIX -> Solaris -> Network administration

46510 views

From the computer of: qmchenry (339 recipes)
Created: Oct 02, 2003


8 comments:
View all comments

Add a comment

Add to:
Add to stumbleuponAdd to del.icio.usDigg itAdd to FURL

When troubleshooting networking issues, it is often helpful to determine the state of an ethernet interface. Solaris offers access to many configurable networking parameters through ndd.

To determine the ethernet interface link status, duplex, and speed on hme0, run the following commands as superuser:

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


If you have only one ethernet interface, you can leave out the instance command. Otherwise, you can specify the hme instance number there. The results of the next three commands are either 1 or 0. In each case, the value means:

link_status: 0=down 1=up
link_mode: 0=half duplex 1=full duplex
link_speed: 0=10Mbps 1=100Mbps

Subscribe to the Tech-Recipes Newsletter

You can get tips like this delivered in your email every week!

Enter your Email

We will never, ever sell your email address or spam you.




8 Recipe comments: View comments

Check hme ethernet link speed, duplex, and status in Solaris by zapman
Great script! by qmchenry
WOrks great by Anonymous
nice scripts! by Anonymous
Very Good by Anonymous
Re: Check hme ethernet link speed, duplex, and status in Solaris by Anonymous
Re: Check hme ethernet link speed, duplex, and status in Solaris by siemed
check archive.org by lscritch



Related recipes:

  Create a virtual interface in Solaris
  Simple Solaris IP Multipathing
  Setting Solaris Network Tunable Parameters
  Remove a virtual interface in Solaris
  Configure interface automatically with DHCP
  View the routing table in Solaris
  Get MAC address without root
  Solaris 10: set subnet mask in zone
  Change the default route in Solaris
  Change the subnet mask of an interface

 

Sponsored links

 

Login

Nickname

Password

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.