beautypg.com

To specify the device instance for the ndd utility, Use the instance number to select the device, Non-interactive and interactive modes – Sun Microsystems Sun Quad User Manual

Page 45: To specify the device instance for the

background image

Appendix B

Configuring the Quad FastEthernet Device Driver Parameters

31

To Specify the Device Instance for the

ndd

Utility

1. Check the

/etc/path_to_inst

file to identify the instance associated with a

particular device.

In the example above, the four

SUNW,qfe@

x

,1

instances are from a Sun Quad

FastEthernet PCI adapter installed in slot 2. For clarity, the instance numbers are
bold.

2. Use the instance number to select the device.

The device remains selected until you change the selection.

Non-Interactive and Interactive Modes

You can use the

ndd

utility in two modes:

Non-interactive

Interactive

In non-interactive 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 qfe /etc/path_to_inst

"/pci@1f,2000/pci@2/SUNW,qfe@0,1" 4 "qfe"

"/pci@1f,2000/pci@2/SUNW,qfe@1,1" 5 "qfe"

"/pci@1f,2000/pci@2/SUNW,qfe@2,1" 6 "qfe"

"/pci@1f,2000/pci@2/SUNW,qfe@3,1" 7 "qfe"

# ndd -set /dev/qfe instance

instance#