beautypg.com

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

Page 58

background image

24

Sun PCI-Express Dual Gigabit Ethernet MMF/UTP Adapter Installation and User’s Guide • June 2006

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.

1. 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/ipge driver instance, and assigns the
value to the parameter:

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

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

1. To modify a parameter value in interactive mode, specify ndd /dev/ipge:

After you enter the parameter name, the ndd utility prompts you for the parameter
value (see

TABLE 3-4

through

TABLE 3-1

).

# ndd -set /dev/ipge

parameter-value

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

# ndd /dev/ipge

parameter

# ndd /dev/ipge

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

parameters)