beautypg.com

To specify the device instance for the ndd utility, Non-interactive and interactive modes, To specify the device instance for the – Sun Microsystems THE SUN 805-7945-10 User Manual

Page 15

background image

Installing and Configuring the

ge

Device Driver

11

To Specify the Device Instance for the

ndd

Utility

Before you use the

ndd

utility to get or set a parameter for a

ge

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.

For Sun GigabitEthernet/P:

In this example, the three GigabitEthernet instances are from the adapters installed
in perspective PCI slots.

For Sun GigabitEthernet/S:

In this example, the GigabitEthernet instance is from an adapter installed in a
perspective SBus slot.

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 ge /etc/path_to_inst

“/pci@4,4000/network@4” 2 “ge”

“/pci@6,2000/network@1” 1 “ge”

“/pci@4,2000/network@1” 0 “ge”

# grep ge /etc/path_to_inst

“/sbus@b,0/network@2,100000” 0 “ge”

# ndd -set /dev/ge instance

instance_number