beautypg.com

Using the ndd utility in noninteractive mode – Sun Microsystems FASTETHERNET 6U User Manual

Page 85

background image

Appendix B

Configuring the Sun Quad FastEthernet Device Driver Parameters

67

Using the

ndd

Utility in Noninteractive Mode

This section describes how to modify a parameter value and how to display a
parameter value using the

ndd

utility in noninteractive mode.

To modify a parameter value, use the

-set

option.

If you invoke the

ndd

utility with the

-set

option, the utility will set the specified

device driver parameter to value:

For example, if you want to disable LANCE mode, you would type:

To display the value of a parameter, specify the parameter name, omitting the

-set

option.

When you omit the

-set

option (and omit the parameter value), the utility assumes

that you want to display the current parameter value.

For example, if you wanted view the link speed of the device, you would type:

In the preceding example, the link speed is set to 100 Mbps.

# ndd -set /dev/qfe

parameter value

# ndd -set /dev/qfe lance_mode 0

# ndd /dev/qfe

parameter

# ndd /dev/qfe link_speed

1