Using the ndd Utility in Noninteractive Mode

This section describes how to modify and 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/ce driver instance, and assigns it to the parameter:

#ndd -set /dev/ce parameter value

When you change any adv parameter, a message similar to the following appears:

xcvr addr: 0x00 - link up 1000 Mbps full duplex

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/ce parameter

Using the ndd Utility in Interactive Mode

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

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

#ndd /dev/ce

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

After typing the parameter name, the ndd utility prompts you for the parameter value (see TABLE 4-1 through TABLE 4-11).

Chapter 4 Configuring Driver Parameters 49

Page 71
Image 71
Sun Microsystems X1150A To modify a parameter value, use the -setoption, # ndd -set /dev/ce parameter value, # ndd /dev/ce