#

If you do not want the utility to pause for verification, add a "-y" option just after the device path, and the emlxadm utility will skip the verification. For example:

#emlxadm /devices/pci@1e,600000/SUNW,emlxs@2/fp@0,0:devctl -y get_state 21000020371938fa

Information similar to the following is displayed:

Found path to 1 HBA port(s).

HBA port: /devices/pci@1e,600000/SUNW,emlxs@2/fp@0,0:devctl

State: PORT_DEVICE_LOGGED_IN

#

If you want to run a command on multiple HBAs at once, you can use a pattern string instead of a full device path. If the entire pattern string matches any part of an HBA device path, the command will execute against that HBA. Again, in this example the emlxadm utility pauses to ask if you want to continue before executing the command. For example:

#emlxadm "SUNW,emlxs@2" get_num_devs

Information similar to the following is displayed:

Found path to 2 HBA port(s).

 

 

HBA port:

/devices/pci@1e,600000/SUNW,emlxs@2/fp@0,0:devctl

 

 

>

Do you wish to continue with this device [y,n,q] ?

y

<--- Response

required

 

 

 

There are

5 devices reported on this port.

 

 

HBA port:

/devices/pci@1e,600000/SUNW,emlxs@2,1/fp@0,0:devctl

 

 

>

Do you wish to continue with this device [y,n,q] ?

y

<--- Response

required

 

 

 

There are

0 devices reported on this port.

 

 

#

If you do not want the utility to pause for verification, add a "-y" option just after the pattern string, and the emlxadm utility will skip the verification. For example:

#emlxadm "SUNW,emlxs@2" -y get_num_devs

Information similar to the following is displayed:

Found path to 2 HBA port(s).

HBA port: /devices/pci@1e,600000/SUNW,emlxs@2/fp@0,0:devctl

There are 5 devices reported on this port.

HBA port: /devices/pci@1e,600000/SUNW,emlxs@2,1/fp@0,0:devctl

There are 0 devices reported on this port.

#

This mode of operation enables you to use the emlxadm utility as part of a script or another program capable of executing system level calls.

Solaris SFS Driver User Manual

Page 106

Page 113
Image 113
Emulex LP1150-F4 user manual # emlxadm SUNW,emlxs@2 getnumdevs