Noninteractive and interactive modes – Sun Microsystems 806-2989-10 Manuel d'utilisation

Page 54

Advertising
background image

34

Sun GigaSwift Ethernet Adapter Installation and User’s Guide • February 2001

To Specify Device Instances for the

ndd

Utility

Before you use the

ndd

utility to get or set a parameter for a

ce

device, you must

specify the device instance for the utility.

1. Check the

/etc/path_to_inst

file to identify the instance associated with a

particular device.

In the example above, the three GigaSwift Ethernet instances are from the installed
adapters. The instance numbers are in bold italics for clarity.

2. Use the instance number to select the device.

The device remains selected until you change the selection.

Noninteractive and Interactive Modes

You can use the

ndd

utility in two modes:

Noninteractive

Interactive

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

Using the

ndd

Utility in Noninteractive Mode

This section describes how to modify and display parameter values.

# grep ce /etc/path_to_inst

"/pci@1f,2000/pci@1/network@0"

2 "ce"

"/pci@1f,2000/pci@2/network@0"

1 "ce"

"/pci@1f,2000/pci@4/network@0"

0 "ce"

# ndd -set /dev/ce instance

instance#

Advertising