beautypg.com

To use the ndd utility in noninteractive mode, To use the ndd utility in interactive mode – Sun Microsystems GigaSwift Ethernet Adapter User Manual

Page 70

background image

48

Sun GigaSwift Ethernet Adapter Installation and User’s Guide • August 2004

In noninteractive 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.

To Use the

ndd

Utility in Noninteractive Mode

This section describes how to modify and display parameter values.

To modify a parameter value, use the

-set

option.

If you invoke the

ndd

utility with the

-set

option, the utility passes value, which

must be specified, down to the named

/dev/ce

driver instance, and assigns the

value to the parameter:

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

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

When you omit the

-set

option, the utility queries the named driver instance,

retrieves the value associated with the specified parameter, and prints it:

To Use the

ndd

Utility in Interactive Mode

To modify a parameter value in interactive mode, specify

ndd /dev/ce

:

After you enter the parameter name, the

ndd

utility prompts you for the parameter

value (see

TABLE 4-1

through

TABLE 4-12

).

# ndd -set /dev/ce

parameter value

ce0: xcvr addr:0x01 - link up 1000 Mbps full duplex

# ndd /dev/ce

parameter

# ndd /dev/ce

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

parameters)