"/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:

4Non-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.)

Using the ndd Utility in Non-Interactive Mode

This section describes how to modify and to display parameter values.

1.To modify a parameter value, use the -setoption.

If you invoke the ndd utility with the -setoption, the utility passes value, which must be specified down to the named /dev/qfe driver instance, and assigns it to the parameter:

# ndd -set /dev/qfe parameter value

1.To display the value of a parameter, specify the parameter name (and omit the value).

When you omit the -setoption, a query operation is assumed and the utility queries the named driver instance, retrieves the value associated with the specified parameter, and prints it:

# ndd /dev/qfe parameter

34 Sun Quad FastEthernet PCI Adapter Installation and User's Guide Revision A, August 1997

Page 48
Image 48
Sun Microsystems 805-1797-10 Use the instance number to select the device, To modify a parameter value, use the -setoption