Using the ndd Utility in Non-Interactive Mode

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

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

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

Using the ndd Utility in Interactive Mode

To modify a parameter value in interactive mode, specify ndd /dev/qfe, as shown below.

The ndd utility then prompts you for the name of the parameter:

#ndd /dev/qfe

name to get/set? (Enter the parameter name or ? to view all parameters)

After entering the parameter name, the ndd utility prompts you for the parameter value (see TABLE B-1 through TABLE B-8).

32 Sun Quad FastEthernet PCI Adapter Installation and User’s Guide • August 1997

Page 46
Image 46
Sun Microsystems Sun Quad Using the ndd Utility in Non-Interactive Mode, To modify a parameter value, use the -setoption