To Specify the Device Instance for the ndd Utility

1.Check the /etc/path_to_inst file to identify the instance associated with a particular device.

#grep qfe /etc/path_to_inst "/pci@1f,2000/pci@2/SUNW,qfe@0,1" 4 "qfe" "/pci@1f,2000/pci@2/SUNW,qfe@1,1" 5 "qfe" "/pci@1f,2000/pci@2/SUNW,qfe@2,1" 6 "qfe" "/pci@1f,2000/pci@2/SUNW,qfe@3,1" 7 "qfe"

In the example above, the four SUNW,qfe@x,1 instances are from a Sun Quad FastEthernet PCI adapter installed in slot 2. For clarity, the instance numbers are bold.

2.Use the instance number to select the device.

#ndd -set /dev/qfe instance instance#

The device remains selected until you change the selection.

Non-Interactive and Interactive Modes

You can use the ndd utility in two modes:

Non-interactive

Interactive

In non-interactive mode, you invoke the utility to execute a specific command. Once the command is executed, you exit the utility. In interactive mode, you can use the utility to get or set more than one parameter value. (Refer to the ndd (1M) man page for more information.)

Appendix B Configuring the Quad FastEthernet Device Driver Parameters 31

Page 45
Image 45
Sun Microsystems Sun Quad To Specify the Device Instance for the ndd Utility, Use the instance number to select the device