Emulex LP1150-F4 Power Screwdriver User Manual


 
Solaris SFS Driver User Manual Page 105
reset_link <wwpn,0> - Resets the link of a specified FC device.
reset_hard - Reset the HBA.
reset_hard_core - Reset the HBA firmware core.
diag <test> - Perform a diagnostic test on the HBA.
ns - Performs a complete query of the fabric name server.
parm_get_num - *Returns the total number of configurable parameters.
parm_get_list - *Returns a list of configurable parameters.
parm_get <label> - *Gets the value of a specified parameter in the driver.
parm_set <label> <val> - *Sets the value of a specified parameter in the driver.
msgbuf all or <number> [-i interval] - *Returns the driver's internal message
log.
get_host_attrs - Returns the host adapter and port attributes.
get_port_attrs <index>, <wwn> or all - Returns the port attributes.
get_path <index> - Returns the adapter path.
get_vpd - *Returns the adapter’s Vital Product Data (VPD).
boot_code [enable or disable] - *Sets or shows the boot code state in this HBA.
q - Exits this program.
h - Returns this help screen.
hba - Select another hba.
p - Repeat previous command.
*Emulex adapters only
emlxadm>
At the bottom of the command list is an emlxadm> prompt. From this point, the utility is prompt driven.
When the prompt is displayed, you must enter one of the commands in the list. The list is displayed
automatically only once, but you can display it again by entering <h> at the prompt. To exit the program,
enter <q>.
Some commands require additional arguments, such as a FC World Wide Port Name (WWPN) or a FC
port address (D_ID). To display the available arguments for a command, enter the command without any
arguments.
For example, the command get_state requires a WWPN for the target device. If only the command
without the argument is entered, the following statement appears to indicate that the command requires
an argument to be executed. For example:
emlxadm> get_state
Usage: get_state <wwpn>
emlxadm> get_state 21000020371938fa
State: PORT_DEVICE_LOGGED_IN
For a detailed explanation of each command and its arguments, see Command Descriptions (emlxadm) on
page 107.
CLI Mode (emlxadm)
You can run the emlxadm utility program in CLI mode by typing the name of the program, followed by the
full device name of the desired HBA (or a pattern string for multiple HBAs), followed by a valid command
and any required command arguments. In the following example, the emlxadm utility pauses to ask if
you want to continue before executing the command. To specify a full device name, type:
# emlxadm /devices/pci@1e,600000/SUNW,emlxs@2/fp@0,0:devctl get_state
21000020371938fa
Information similar to the following is displayed:
Found path to 1 HBA port(s).
HBA port: /devices/pci@1e,6000000/SUNW,emlxs@2/fp@0,0:devctl
>Do you wish to continue with this device [y,n,q] ? y <---Response required
State: PORT_DEVICE_LOGGED_IN