46
Sun Dual Gigabit Ethernet and Dual SCSI/P Adapter Installation and User’s Guide • January 2004
Usability Enhancements to the Driver
In older Ethernet device drivers, determining the link status for a driver required a
two-step process:
First, you had to set the instance:
Then you had to get the link status:
Starting in the Solaris 9 operating system, this method of determining the link status
is discouraged, and in some cases, it is removed completely as a driver feature.
The new improved approach moves all read-only parameters from the
ndd
options
into
kstat
. This simplifies getting link status information by allowing you to do it
with one simple command.
●
To get the link status of a driver, type the following command:
Where n = instance.
For more information about the
kstat
command, refer to the
kstat
man page.
# ndd -set /dev/ce instance 2
# ndd -get /dev/ce link_status
1
# kstat ce:
n
| grep link_up
link_up 0