To specify device instances for the ndd utility, Use the instance number to select the device, Noninteractive and interactive modes – Sun Microsystems X1150A User Manual

Page 70: To specify device instances for the

Advertising
background image

48

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

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

# 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