Sun Microsystems Gigabit Ethernet MMF/UTP Adapter To Use the ndd Utility in Noninteractive Mode

Models: Gigabit Ethernet MMF/UTP Adapter

1 122
Download 122 pages 59.52 Kb
Page 58
Image 58
▼To Use the ndd Utility in Noninteractive Mode

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

If you invoke the ndd utility with the -setoption, the utility passes value, which must be specified, down to the named /dev/ipge driver instance, and assigns the value to the parameter:

#ndd -set /dev/ipge parameter-value

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

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

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

When you omit the -setoption, the utility queries the named driver instance, retrieves the value associated with the specified parameter, and prints it:

#ndd /dev/ipge parameter

To Use the ndd Utility in Interactive Mode

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

#ndd /dev/ipge

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

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

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

Page 58
Image 58
Sun Microsystems Gigabit Ethernet MMF/UTP Adapter manual To Use the ndd Utility in Noninteractive Mode