Sun Microsystems X1150A manual To Specify Device Instances for the ndd Utility

Models: X1150A

1 106
Download 106 pages 55.63 Kb
Page 70
Image 70

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.

#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"

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.

#ndd -set /dev/ce instance instance#

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

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

Page 70
Image 70
Sun Microsystems X1150A To Specify Device Instances for the ndd Utility, Use the instance number to select the device