Sun Microsystems 6U manual Using the ndd Utility in Noninteractive Mode

Models: 6U

1 106
Download 106 pages 54.73 Kb
Page 85
Image 85
Using the ndd Utility in Noninteractive Mode

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 -setoption.

If you invoke the ndd utility with the -setoption, the utility will set the specified device driver parameter to value:

#ndd -set /dev/qfe parameter value

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

#ndd -set /dev/qfe lance_mode 0

To display the value of a parameter, specify the parameter name, omitting the -setoption.

When you omit the -setoption (and omit the parameter value), the utility assumes that you want to display the current parameter value.

#ndd /dev/qfe parameter

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

#ndd /dev/qfe link_speed

1

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

Appendix B Configuring the Sun Quad FastEthernet Device Driver Parameters 67

Page 85
Image 85
Sun Microsystems 6U manual Using the ndd Utility in Noninteractive Mode, To modify a parameter value, use the -set option