Information furnished by Emulex Corporation is believed to be accurate and reliable. However, no responsibility is
assumed by Emulex Corporation for its use; or for any infringements of patents or other rights of third parties which
may result from its use. No license is granted by implication or otherwise under any patent or patent rights of Emulex
Corporation.
Emulex and LightPulse are registered trademarks, and AutoPilot Installer, AutoPilot Manager, BlockGuard,
FibreSpy, HBAnyware, InSpeed, MultiPulse, SLI and SBOD are trademarks, of Emulex Corporation. All other brand
or product names referenced herein are trademarks or registered trademarks of their respective companies or
organizations.
Emulex provides this manual "as is" without any warranty of any kind, either expressed or implied, including but not
limited to the implied warranties of merchantability or fitness for a particular purpose. Emulex Corporatio n may
make improvements and changes to the product described in this manual at any time and without any notice. Emulex
Corporation assumes no responsibility for its use, nor for any infringements of patents or other rights of third parties
that may result. Periodic changes are made to information contained herein; although these changes will be
incorporated into new editions of this manual, Emulex Corporation disclaims any undertaking to give notice of such
changes.
This document provides the information needed to use the Emulex® emlxa dm and e lmxdrv utility
programs. For system administrators, this document includes information about the installation and
removal of these utilities.
At the very least, system administrators should be familiar with Solaris and the Sun StorEdge SAN
Foundation Software (SFS) and should have access to standard system documentation. Anyone
working with this product should have some familiarity with the nature and use of Fibre Channel.
Fibre Channel Overview
Fibre Channel is a general-purpose, high-throughput, low-latency interconnect. It employs serial b it
transmission over copper media, short-wave and long-wave optical media. Cable distances may range
up to 30 meters for copper media and up to 10 kilometers for optical media. Transmission speeds
currently range up to 4 gigabits per second, or roughly 400 megabytes per second. Fibre Channel
transmission protocols provide high reliability, with bit error rates less than 1 in 10
be configured as point-to-point, loop, or fabric (network switch).
The Fibre Channel specifications provide for the emulation of two traditional protocols: SCSI and IP. For
storage, Fibre Channel provides an emulation of SCSI; this emulation is dubbed FCP, short for Fibre Channel Protocol – a confusing acronym, in that it refers specifically to SCSI-on-Fibre Channel rather
than to the lower-level protocols by which Fibre Channel itself operates. Throughout this docum ent, we
generally refer to FCP; when we mention SCSI, we are referring to the particular SCSI properties within
FCP, or to the original SCSI protocol. For networking, Fibre Channel provides an encapsulation of IP
(Internet Protocol), referred to in this document as IP.
-12
. Interconnects may
The Solaris Fibre Channel Stack
Each Fibre Channel host bus adapter (HBA) is managed by an associated device driver. A device driver
acts as a translator between an operating system and the hardware so that the operating system's
kernel need not know the specifics of the device it uses. A device driver contains all of the code specific
to operating a device and provides an input/output (I/O) interface to the rest of the system.
The Emulex-Sun LightPulse® HBA device driver for Solaris, emlxs, is a Fibre Channel adapter (FCA)
driver as specified by the Sun Fibre Channel architecture (also known as Leadville). The heart of the
Sun Fibre Channel architecture consists of the Fibre Channel transport layer (FCTL) modu les, which
provide a common interface for various Fibre Channel adapters on a host. These modules con sist of
several tightly coupled pieces, including a per-port driver (FP) and a system-wide transport layer (FCTL)
driver. The FP driver handles all per-port state and common services needed by a variety of protocols
and the FCA drivers. The FCTL module provides consistent, system-wide access of Fibre Channel
devices and services to upper layer protocols (ULP) and administration utilities. The point of providing a
Fibre Channel port/transport interface is to abstract and define all services available through an FCA
driver needed by FC-4 ULP drivers such as the SCSI driver (FCP) and the IP driver (FCIP). The FCP
function provides access to Fibre Channel disk and tape drives. The IP function provides peer-to-peer
networking, such as TCP or UDP, between Fibre Channel hosts.
FCA Utilities Reference ManualPage 1
Figure 1 shows the software stack for network operations and SCSI operations from the standpoint of a
Solaris host.
6eea^XVi^dc6eea^XVi^dc
@ZgcZa@ZgcZa
HdaVg^h
HigZVbh
HiVX`
I8E$>EBdYjaZ
HE6G8hidgV\Z
H8H>Yg^kZghhY
9AE>BdYjaZ
;8>EJAE9g^kZg;8EJAE9g^kZg
;8IgVchedgiAVnZg;8IA9g^kZg
;8Edgi;E9g^kZg
:bjaZmA^\]iEjahZ;86
9g^kZg
Zbamh
:bjaZmA^\]iEjahZ=dhi
7jh6YVeiZg=76
HdaVg^h8dbbdc
H8H>
6gX]^iZXijgZ
H8H6
HdaVg^h8dbbdc
;^WgZ8]VccZa
6gX]^iZXijgZ
V#`#V#AZVYk^aaZ
Figure 1: The Solaris Software Stack
FCA Utilities Reference ManualPage 2
;^WgZ8]VccZaCZildg`
Installing the Utilities
Caution: Before installing the Emulex utilities package, you must first install the Sun StorEdge SAN
Foundation Software package and al l the recommended p a tches as described in the Sun StorEdge
SAN Foundation Software Installation Guide provided by Sun.
The Emulex utility programs are provided as part of the emlxu utilities kit. You can download the emlxu
utilities kit (for example, emlxu_kit-1.00x-sparc.tar for SPARC platforms or emlxu_kit-1.00x-i386.tar for
x86/x64 platforms) from the Sun page of the Emulex Web site (http://www.emulex.com/ts/docoem/sun/
10k.htm).
Installing or Updating the Utilities Using the emlxu_install Script
Although it is possible to install emlxu onto one or more clients from a server, that procedure is not
covered in this dcument; refer to the Solaris documentation.
Before installing the Emulex emlxu utilities package, you must have completely installed the Sun
StorEdge SAN Foundation Software package, all the recommended patches as described in the Sun StorEdge SAN Foundation Software Installation Guide, and the Emulex-Sun Fibre Channel adapter
driver package SUNWemlxs.
If an earlier version of the emlxu utilities package is already installed on the system, the emlxu_install
script will first remove the old version before installing the new version.
To install the utilities kit using the emlxu_install script, do the following:
1. Log in as root, or su to root.
2. Copy the utilities kit from your distribution medium into a directory, referred to here as
<directory>. The utilities kit is a .tar file named something similar to emlxu_kit-1.00x-sparc.tar.
3. Change to the directory where you put the kit tar file by typing
cd <directory>
4. Extract the emlxu_install script from the tar file by typing
tar xf emlxu_kit-1.00x-sparc.tar emlxu_install
5. Install the kit by typing
emlxu_install
6. The script removes any earlier verison of the emlxu utilities package. (If an earlier package is not
found, this fact is indicated; skip to step 9.) The following text is displayed:
<Removing old EMLXemlxu package>
7. If an old package is installed, you are prompted to remove it:
Do you want to remove this package? [y,n,?,q]
8. Enter y. The following message is displayed:
Removal of <EMLXemlxu> was successful.
9. The script expands the utilities kit .tar file and begins installing the new package. The following
message is displayed:
<Expanding emlxu_kit-1.00x-sparc.tar>
<Adding new package>
10. The script installs the emlxu utilities package. The package is prepared for installation and you
are prompted for confirmation by the following message:
Do you want to continue with the installation of <EMLXemlxu> [y,n,?]:
11. Enter y. The installation package provides running commentary on the installation process.
FCA Utilities Reference ManualPage 3
12. Exam ine the output for any errors or warnings. If the installation is successful, the following
message is displayed near the end of the process:
Installation of <EMLXemlxu> was successful.
13. The script performs some cleanup and displays the following messages:
<Cleaning directory>
<emlxu_install complete>
<Execute "emlxu_remove" when ready to uninstall>
14. The script leaves a copy of the emlxu_remove script in your working directory with the original
utilities kit tar file. You can remove this script, or leave it in the directory if you may want to
uninstall the emlxu utilities from your system in the future. See
emlxu_remove Script
on page 4 for more details.
Removing the Utilities Using the
The emlxu utilities installation is complete. The utility package's programs are located in the
/opt/EMLXemlxu/bin directory.
You do not have to reboot your system to begin running a utility program. However , to run a program you
must either enter the progam's full path name, or add the package's bin directory (/opt/EMLXemlxu/bin)
to your envirionment's search path. To use the man pages provided by the package, you must also add
the package's man directory (opt/EMLXemlxu/man) to your environment's man path.
For further information on installing and removing packages, consult the Solaris system administr ation
documentation and the pkgadd(1M) and pkgrm(1M) manual pages.
Removing the Utilities Using the emlxu_remove Script
You can uninstall the utilities kit using the emlxu_remove script. If you do not have the emlxu_remove
script and you do not have the original emlxu utilities kit tar file, you must uninstall the emlxu package
manually; follow the instructions in
the emlxu utilities to a newer version and you have the new utilities kit tar file, you do not have to use the
emlxu_remove script; the emlxu_install script removes any old version as it installs the newer version;
see
Installing or Updating the Utilities Using the emlxu_install Script on page 3 for more details.
Removing the Utilities Package Manually on page 5. If you are up dating
If you do not want to update the utilities package, and only want to uninstall it, use the emlxu_remove
script by doing the following (all emlxu files are removed):
1. Log in as root, or su to root.
2. Go to the directory where the emlxu_remove script is located, or to the directory where the
original utilities kit tar file is located, by typing
cd <directory>
3. If you have the emlxu_remove script, skip to step 4. If you do not have the emlxu_remove script
but you do have the original emlxu utilities kit tar file, extract the emlxu_remove script from the
tar file by typing
tar xf emlxu_kit-1.00x-sparc.tar emlxu_remove
4. Remove the emlxu utilities package by typing
emlxu_remove
5. The script locates the EMLXemlxu utilities package, and the following message is displayed:
<Removing EMLXemlxu package>
If no package is installed, a message indicates this; skip to step 7. Otherwise, you are prompted
to remove the package with the following message:
Do you want to remove this package? [y,n,?,q]
6. Enter y. The following message is displayed:
Removal of <EMLXemlxu> was successful.
7. The script performs some cleanup and displays the following message:
FCA Utilities Reference ManualPage 4
<Removing emlxu scripts>
<emlxu_remove complete>
The utilities package has been removed. If you want to install another version of the emlxu utilities
package, do so now by by following the instructions in one of the following sections:
•
Installing or Updating the Utilities Using the emlxu_install Script on page 3
•
Installing the Utilities Package Manually on page 5
For additional information on installing and removing packages, see the Solaris system administration
documentation and the pkgadd(1M) and pkgrm(1M) manual pages.
Installing the Utilities Package Manually
If an earlier version of the emlxu utilities package is already installed on the system and you want to
install a different version, follow the instuctions in
return to this section to install the new utilities package.
Caution: Before installing the Emulex utilities package, you must first install the Sun StorEdge SAN
Foundation Software package and al l the recommended p a tches as described in the Sun StorEdge SAN Foundation Software Installation Guide provided by Sun.
To install the emlxu utilities package manually, do the following:
1. Log in as root, or su to root.
2. Copy the utilities kit from your distribution medium into a directory, referred to here as
<directory>. The utilities kit is a .tar file named something similar to emlxu_kit-1.00x-sparc.tar.
3. Change to the directory where you put the kit tar file by typing
cd <directory>
4. Extract the installation images from the tar file by typing
tar xvf emlxu_kit-1.00x-sparc.tar
5. install the EMLXemlxu utilities package by typing
pkgadd -d . EMLXemlxu
6. The package is prepared for installation, and you are prompted to confirm the installation with
the following message:
Do you want to continue with the installation of <EMLXemlxu> [y,n,?]
7. Enter y. The installation package provides running commentary on the installation process.
8. Examine the output for any errors or warnings. If the installation is successful, the following
message is displayed near the end of the process:
Installation of <EMLXemlxu> was successful.
The emlxu utilities installation is complete. The utility package's programs are located in the
/opt/EMLXemlxu/bin directory.
Removing the Utilities Package Manually on page 5, then
You do not have to reboot your system to begin running a utility program. However , to run a program you
must either enter the progam's full path name, or add the package's bin directory (/opt/EMLXemlxu/bin)
to your envirionment's search path. To use the man pages provided by the package, you must also add
the package's man directory (opt/EMLXemlxu/man) to your environment's man path.
Removing the Utilities Package Manually
To remove the emlxu utilities package, do the following:
1. Remove the EMLXemlxu utilities package by typing
pkgrm EMLXemlxu
FCA Utilities Reference ManualPage 5
2. You are prompted to confirm the removal by the following message:
Do you want to remove this package? [y,n,?,q]
3. Enter y. The package is prepared for removal, and you are prompted again for confirmation:
Do you want to remove this package? [y,n,?,q]
4. Enter y. The following message is displayed:
Removal of <EMLXemlxu> was successful.
The utilities package has been removed.
For additional information on installing and removing packages, see the Solaris system administration
documentation and the pkgadd(1M) and pkgrm(1M) manual pages.
Updating the Utilities Package Manually
Update the emlxu utilities by doing the following:
1. Remove the old emlxu utilities package by following the instructions in
Package Manually
2. Install the new emlxu utilities package by following the instructions in
Manually
on page 5.
on page 5.
Installing the Utilities Package
Removing the Utilities
FCA Utilities Reference ManualPage 6
Using the emlxadm Utility
The emlxadm utility is intended to be a direct user interface to the Fibre Channel inp ut/output (FCIO )
interface provided by the Sun StorEdge SFS. The FCIO interface provides a Sun common ioctl interface
to the FCTL, which manages the FCA drivers for each Fibre Channel HBA attached to the host system.
Modes of Operation (emlxadm)
The emlxadm utility program can be run in two modes:
•Interactive
•Command line interface (CLI)
Interactive Mode (emlxadm)
The emlxadm utility program can be run in an interactive command mode by typing th e name o f the
program without any command line arguments:
# emlxadm
After it is started, the emlxadm program scans the host system and prepares a list of qualified HBA ports
to choose from. Qualified HBA ports are devices that attach to the SUN StorEdge SFS through the FP
driver. After the list is prepared, the utility displays the following:
You must choose from one of the available HBAs in the list by entering the appropriate number. In this
example, if you enter 2, the utility displays the HBA device name selected and presents a list of
command options:
HBA: /devices/pci@1e,600000/SUNW,emlxs@2/fp@0,0:devctl
Available commands:
get_num_devs - Returns the number of FC devices seen by this HBA.
get_dev_list - Returns a list of FC devices seen by this HBA.
get_logi_params <wwpn> - Returns the login paramters for a specified FC device.
get_host_params - Return the host parameters.
get_sym_pname - Returns the symbolic port name of a device.
set_sym_pname <string> - Sets the symbolic port name for a device.
get_sym_nname - Returns the symbolic node name of a device.
set_sym_nname <string> - Sets the symbolic node name for a device.
dev_login <wwpn> - Performs an FC login to a device.
dev_logout <wwpn> - Performs an FC logout to a device.
get_state <wwpn> - Returns current Leadville state of a specified device.
dev_remove <wwpn> - Remove the FC device from Leadville management.
link_status <d_id> - Request link error status from a specified D_ID.
get_fcode_rev - Returns the current Fcode revison of the HBA.
download_fcode [filename] - Download the HBA fcode.
get_fw_rev - Returns the current firmware revison of the HBA.
download_fw [filename] - Download the HBA firmware.
get_boot_rev - Returns the current boot revison of the HBA.
download_boot [filename] - Download the HBA boot image.
get_dump_size - Returns the HBA's firmware core dump size.
force_dump - Force a firmware core dump on this HBA.
get_dump <-t,-b> <file> - Saves firmware core dump to a file.
get_topology - Returns the current FC network topology.
FCA Utilities Reference ManualPage 7
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.
q - Exits this program.
h - Returns this help screen.
hba - Select another hba.
p - Repeat previous command.
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 Fibre Channel World Wide Port Name
(WWPN) or a Fibre Channel 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 8.
CLI Mode (emlxadm)
The emlxadm utility program can be run in CLI mode by typing the name of the program, followed by the
full device name of the desired HBA, followed by a valid command and any required comma nd
arguments. For example:
This mode of operation enables you to use the emlxadm utility as part of a script or another progra m
capable of executing system level calls. For a det ailed explanation of each command and its argument s,
see
Command Descriptions (emlxadm) on page 8.
Command Descriptions (emlxadm)
This section provides a list of commands that can be issued with the emlxadm utility program.
FCA Utilities Reference ManualPage 8
get_num_devs
Returns the number of FC devices currently seen by this HBA port.
Example:
emlxadm> get_num_devs
There are 4 devices reported on this port.
get_dev_list
Returns a list of FC devices currently seen by this HBA port.
Example:
Are you sure you want to download this image? (y or n): y
Downloading...
Done.
Note: If the file name is not provided, the program attempts to identify the adapter model,
then downloads a default boot image file, if one is available.
get_dump_size
Returns the byte size of the HBA's firmware core dump buffer.
Example:
emlxadm> get_dump_size
Size: 256 (0x100) bytes
force_dump
Forces the HBA to perform a firmware core dump to the core dump buffer.
Example:
emlxadm> force_dump
Done.
get_dump <-t filename.txt or -b filename.bin>
Returns a copy of the HBA's firmware core dump buffer to the specified file in the specified text (-t) or
binary (-b) format.
Example:
emlxadm> get_dump -t mydump.txt
Done.
Following is an example of the text file created by this operation. The binary version of the file has the
binary pattern indicated without the column or row labels and white spaces.
00000030: 30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f
00000040: 40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f
00000050: 50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f
00000060: 60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f
00000070: 70 71 72 73 74 75 76 77 78 79 7a 7b 7c 7d 7e 7f
00000080: 80 81 82 83 84 85 86 87 88 89 8a 8b 8c 8d 8e 8f
00000090: 90 91 92 93 94 95 96 97 98 99 9a 9b 9c 9d 9e 9f
000000a0: a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aa ab ac ad ae af
000000b0: b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 ba bb bc bd be bf
000000c0: c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 ca cb cc cd ce cf
000000d0: d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 da db dc dd de df
000000e0: e0 e1 e2 e3 e4 e5 e6 e7 e8 e9 ea eb ec ed ee ef
000000f0: f0 f1 f2 f3 f4 f5 f6 f7 f8 f9 fa fb fc fd fe ff
00000100:
get_topology
Returns the FC network topology of the HBA port.
Example:
emlxadm> get_topology
Topology: PRIVATE_LOOP
reset_link <wwpn or zero for local link>
Resets the local link, if zero is specified, or the link of a specified FC device on the network.
Example:
emlxadm> reset_link 0
Done.
or
emlxadm> reset_link 21000020371938fa
Done.
reset_hard
Forces the HBA to perform a hardware reset.
Example:
emlxadm> reset_hard
Done.
reset_hard_core
Forces the HBA to perform a core firmware reset.
Example:
emlxadm> reset_hard_core
Done.
diag <test [parameters]> or diag code <cmd_code (hex)>
Performs the specified diagnostics function or command code on the HBA port. This command provides
support for the Emulex-specific tests shown below, or generic support to issue an HBA-specific
diagnostic code (in hexadecimal) to any third party HBA.
FCA Utilities Reference ManualPage 15
Example:
or
or
Example:
Tests:
emlx_biu [pattern] - Performs the Bus Interface Unit test.
emlx_echo <did> [pattern] - Performs the ECHO test to a specified port id.
emlx_post - Performs the Power-On Self Tests.
Parameters:
pattern - 4 byte hex pattern to be used for test. (e.g. 0xA5A5A5A5)
emlxadm> diag emlx_biu
Result: EMLX_DIAG_BIU: Operation successful.
emlxadm> diag emlx_echo fffffc
Result: EMLX_DIAG_ECHO: Operation successful.
emlxadm> diag emlx_post
Result: EMLX_DIAG_POST: Operation successful.
emlxadm> diag code 0x4526
Result: CODE(0x4526): 16 (0x10)
Note: The return status from the HBA is displayed in decimal and hexadecimal if the
diagnostic code is valid for the HBA. No interpretation of the return status is provided.
ns
Performs and returns a complete query of the fabric name server.
Example:
dynamic: yes
desc: Verbose mask for error messages to the console.
---------------------------------------------------------------- label: log-notices
min: 0x0
current: 0xffffffff
max: 0xffffffff
default: 0xffffffff
dynamic: yes
desc: Verbose mask for notice messages to the messages file.
---------------------------------------------------------------- label: log-warnings
min: 0x0
current: 0xffffffff
max: 0xffffffff
default: 0xffffffff
dynamic: yes
desc: Verbose mask for warning messages to the messages file.
---------------------------------------------------------------- label: log-errors
min: 0x0
current: 0xffffffff
max: 0xffffffff
default: 0xffffffff
dynamic: yes
desc: Verbose mask for error messages to the messages file.
---------------------------------------------------------------- label: num-iocbs
min: 128
current: 1024
max: 10240
default: 1024
dynamic: no
desc: Number of outstanding IOCBs driver can queue to adapter
---------------------------------------------------------------- label: ub-bufs
min: 40
current: 1000
max: 16320
default: 1000
dynamic: no
desc: Number of unsolicited buffers the driver should allocate.
---------------------------------------------------------------- label: network-on
min: 0
current: 1
max: 1
default: 1
dynamic: no
desc: Enable IP processing
---------------------------------------------------------------- label: ack0
min: 0
current: 0
max: 1
default: 0
dynamic: no
desc: Enable ACK0 support
---------------------------------------------------------------- label: link-speed
min: 0
current: 0
max: 4
default: 0
dynamic: no
desc: Select link speed
---------------------------------------------------------------- label: num-nodes
min: 2
current: 512
max: 512
default: 512
dynamic: no
desc: Number of fibre channel nodes (NPorts) the driver will support.
---------------------------------------------------------------- label: cr-delay
min: 0
current: 0
max: 63
default: 0
dynamic: no
desc: A count of milliseconds after which an interrupt response is generated
---------------------------------------------------------------- label: cr-count
min: 1
current: 1
max: 255
default: 1
dynamic: no
desc: A count of I/O completions after which an interrupt response is
generated
---------------------------------------------------------------- label: assign-alpa
min: 0x0
current: 0x0
max: 0xef
default: 0x0
dynamic: no
desc: Assigns a preferred ALPA to the port. Only used in Loop topology.
Note: To make this change permanant, you must edit the /kernel/drv/emlxs.conf file.
Example: This example attempts to set a static parameter:
emlxadm> parm_set network-on 1
emlxadm: EMLX_PARM_SET: Parameter (network-on) is not dynamic and cannot be
changed here.
** To make this change you must edit the /kernel/drv/emlxs.conf or **
** the /kernel/drv/emlx.conf file(s) and reboot the system. **
msgbuf all or <number> [-i interval]
Displays all or part (the last <number> of lines) of the current driver message log, and can update the
screen every <interval> seconds if desired. To stop the program from updating the screen, press
<Ctrl+C> to break. If no interval is provided, the current message log is displayed with no additional
updates, and the emlxadm prompt returns.
Example:
emlxadm> msgbuf 10
155130.01: 1002033:[B.1C35]emlxs0: DEBUG: 800: ELS sent. (GA_NXT: did=fffffc
[00011000,00000000])
Displays all of the current host HBA API attributes.
Example:
emlxadm> get_host_attrs
Host Attributes:
Manufacturer = Emulex
Serial Number = BG42434343
Model = LP10000DC-S
Model Description = EMULEX LIGHTPULSE LP10000DC-S 2GB PCI-X FIBRE
CHANNEL ADAPTER
Node WWN = 20000000C9409ED5
Node Symbolic Name = none
Hardware Version = 1001206d
Driver Version = 2.00j.t4 (2005.01.18.16.38)
Optional ROM Version = 1.50a2
Firmware Version = 1.90a4
Vendor Specific ID = 10df
Number of HBA ports = 2
Driver Name = Emulex-Sun s10-64 sparc v2.00j.t4
Last Change = 1
fp Instance = 1
Node WWN = 20000000C9409ED5
Port WWN = 10000000C9409ED5
Port Fc Id = 011000
Port Type = Nport
Port State = Online
Port Supported COS = Class 3
Port Supported Fc4 Types:
00, 00, 00, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00
Port Active Fc4 Types:
00, 00, 01, 20, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00
Port Symbolic Name = none
Port Supported Speed = 1Gb 2Gb
Port Speed = 1Gb
Port Max Frame Size = 0x800 bytes
Fabric Name = 0000000000000000
Number of Discovered Ports = 5
get_port_attrs <index>, <wwn> or all
Displays the current HBA API port attributes. All of the port attributes can be displayed, or a single port
can be specified by <index> or <wwn>. The total number of ports available can be seen in the "Number
of Discovered Ports" attribute displayed using the get_host_attrs command. The <index> argume nt is
an index into this list.
Example:
emlxadm> get_port_attrs all
Host Port Attributes:
Last Change = 1
fp Instance = 1
Node WWN = 20000000C9409ED5
Port WWN = 10000000C9409ED5
FCA Utilities Reference ManualPage 21
Port Fc Id = 011000
Port Type = Nport
Port State = Online
Port Supported COS = Class 3
Port Supported Fc4 Types:
00, 00, 00, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00
Port Active Fc4 Types:
00, 00, 01, 20, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00
Port Symbolic Name = none
Port Supported Speed = 1Gb 2Gb
Port Speed = 1Gb
Port Max Frame Size = 0x800 bytes
Fabric Name = 0000000000000000
Number of Discovered Ports = 5
Port[0] Attributes:
Node WWN = 20000020371938FA
Port WWN = 21000020371938FA
Port Fc Id = 0113e1
Port Type = Unknown
Port State = Unknown
Port Supported COS = Unknown
Port Supported Fc4 Types:
00, 00, 00, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00
Port Active Fc4 Types:
00, 00, 01, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00
Port Symbolic Name = SEAGATE ST39103FC 0004
Port Supported Speed = Unknown
Port Speed = Unknown
Port Max Frame Size = 0x0 bytes
Fabric Name = 0000000000000000
Port[1] Attributes:
Node WWN = 20000020371938A3
Port WWN = 21000020371938A3
Port Fc Id = 0113e4
Port Type = Unknown
Port State = Unknown
Port Supported COS = Unknown
Port Supported Fc4 Types:
00, 00, 00, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00
Port Active Fc4 Types:
00, 00, 01, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00
Port Symbolic Name = SEAGATE ST39103FC 0004
Port Supported Speed = Unknown
Port Speed = Unknown
Port Max Frame Size = 0x0 bytes
Fabric Name = 0000000000000000
FCA Utilities Reference ManualPage 22
Port[2] Attributes:
Node WWN = 20000020371939A2
Port WWN = 21000020371939A2
Port Fc Id = 0113e2
Port Type = Unknown
Port State = Unknown
Port Supported COS = Unknown
Port Supported Fc4 Types:
00, 00, 00, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00
Port Active Fc4 Types:
00, 00, 01, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00
Port Symbolic Name = SEAGATE ST39103FC 0004
Port Supported Speed = Unknown
Port Speed = Unknown
Port Max Frame Size = 0x0 bytes
Fabric Name = 0000000000000000
Port[3] Attributes:
Node WWN = 200000E08B17006F
Port WWN = 210000E08B17006F
Port Fc Id = 011500
Port Type = Unknown
Port State = Unknown
Port Supported COS = Unknown
Port Supported Fc4 Types:
00, 00, 00, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00
Port Active Fc4 Types:
00, 00, 01, 20, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00
Port Symbolic Name = none
Port Supported Speed = Unknown
Port Speed = Unknown
Port Max Frame Size = 0x0 bytes
Fabric Name = 0000000000000000
Port[4] Attributes:
Node WWN = 2000002037193670
Port WWN = 2100002037193670
Port Fc Id = 0113e8
Port Type = Unknown
Port State = Unknown
Port Supported COS = Unknown
Port Supported Fc4 Types:
00, 00, 00, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00
Port Active Fc4 Types:
00, 00, 01, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00,
00, 00, 00, 00, 00, 00, 00, 00
Port Symbolic Name = SEAGATE ST39103FC 0004
Port Supported Speed = Unknown
Port Speed = Unknown
Port Max Frame Size = 0x0 bytes
FCA Utilities Reference ManualPage 23
Fabric Name = 0000000000000000
get_path <index>
Displays the current Solaris device path for a specified HBA port. The total number of ports available can
be seen in the "Number of HBA ports" attribute displayed using the get_host_attrs comman d. The
<index> argument is an index into this list.
Example:
emlxadm> get_path 0
Adapter: /pci@1e,600000/SUNW,emlxs@2/fp@0,0
emlxadm> get_path 1
Adapter: /pci@1e,600000/SUNW,emlxs@2,1/fp@0,0
q
Exits the utility program.
Example:
emlxadm> q
Exiting...
h
Displays a help menu of utility commands.
Example:
emlxadm> h
Available commands:
get_num_devs - Returns the number of FC devices seen by this HBA.
get_dev_list - Returns a list of FC devices seen by this HBA.
get_logi_params <wwpn> - Returns the login paramters for a specified FC device.
get_host_params - Return the host parameters.
get_sym_pname - Returns the symbolic port name of a device.
set_sym_pname <string> - Sets the symbolic port name for a device.
get_sym_nname - Returns the symbolic node name of a device.
set_sym_nname <string> - Sets the symbolic node name for a device.
dev_login <wwpn> - Performs an FC login to a device.
dev_logout <wwpn> - Performs an FC logout to a device.
get_state <wwpn> - Returns current Leadville state of a specified device.
dev_remove <wwpn> - Remove the FC device from Leadville management.
link_status <d_id> - Request link error status from a specified D_ID.
get_fcode_rev - Returns the current Fcode revison of the HBA.
download_fcode [filename] - Download the HBA fcode.
get_fw_rev - Returns the current firmware revison of the HBA.
download_fw [filename] - Download the HBA firmware.
get_boot_rev - Returns the current boot revison of the HBA.
download_boot [filename] - Download the HBA boot image.
get_dump_size - Returns the HBA's firmware core dump size.
force_dump - Force a firmware core dump on this HBA.
get_dump <-t,-b> <file> - Saves firmware core dump to a file.
get_topology - Returns the current FC network topology.
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.
FCA Utilities Reference ManualPage 24
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.
q - Exits this program.
h - Returns this help screen.
hba - Select another hba.
p - Repeat previous command.
hba
Allows you to select another HBA to interface with. This prevents you from having to exit and reenter the
program.
The emlxdrv utility is intended to be used for binding (associa ting) the Em ulex emlxs (Le adville Fi bre
Channel) driver and the Emulex lpfc (traditional non-Leadville Fibre Channel) drive r to the va rious
models of Emulex Fibre Channel HBAs. This allows both drivers to coexist in the same host and attach
to mutually exclusive Emulex Fibre Channel HBA models. In other words, the emlxs driver can be
configured to attach and operate one set of HBA models, while the lpfc driver can be configured to
attach and operate a different set of HBA models. However, Solaris does not allow both drivers to attach
and operate the same model of HBA even if there are multiple HBAs of that model present. If the driver
binding configuration is changed, the host system must usually be rebooted in order for the new
configuration to take effect.
Modes of Operation (emlxdrv)
The emlxdrv utility program can be run in two modes:
•Interactive
•CLI
Interactive Mode (emlxdrv)
Run the emlxdrv utility program in interactive mode by typing the name of the program without a ny
command line arguments:
# emlxdrv
After it is started, the emlxdrv program scans the host system and prepares a driver configuration table
consisting of bindings (associations) between the emlxs and lpfc drivers and a list of Emulex Fibre
Channel HBA models. After the table is prepared, the utility displays the following:
- f800 no no no LP8000 and LP8000DC
lpfc f900 yes no no LP9002, LP9002C, LP9002DC, and LP9402DC
lpfc f980 no no no LP9802 and LP9802DC
emlxs fa00 yes no no LP10000, LP10000DC and LP10000ExDC
emlxs fd00 no no no LP11000 and LP11002
emlxs fe00 no no no LPe11000 and LPe11002
emlxs f0a5 no no no 2G Blade Adapter (emlxs only)
emlxs fc00 yes no yes LP10000-S and LP10000DC-S
emlxs fc20 no no yes LPe11000-S and LPe11002-S
Available commands:
---------------------------------------------------------------- set_emlxs <Alias> - Sets emlxs driver to bind to the specified device(s)
set_emlxs_sun - Sets emlxs driver to bind to all Sun devices
set_emlxs_all - Sets emlxs driver to bind to all devices
set_lpfc <Alias> - Sets lpfc driver to bind to the specified device(s)
set_lpfc_nonsun - Sets lpfc driver to bind to all non-Sun devices
clear_dev <Alias> - Clears driver binding to the specified device(s)
clear_lpfc - Clears all lpfc driver bindings
clear_emlxs - Clears all emlxs driver bindings
clear_sun - Clears driver bindings to all Sun devices
clear_nonsun - Clears driver bindings to all non-Sun devices
clear_all - Clears driver bindings to all devices
q - Exits this program.
emlxdrv>
FCA Utilities Reference ManualPage 26
The display comprises three parts: the current driver configuration table, a list of available commands
and the emlxdrv prompt.
The driver configuration table contains the following columns of data:
•Driver: Indicates which driver (emlxs, lpfc or "-" if none ) is currently configured to bind or attach
to a specific adapter alias.
•Alias: Indicates the specific adapter alias associated with a set of Emulex HBA models. Driver
bindings can be made only with a specific adapter alias and not with a specific adapter model.
•Present: Indicates whether this specific type of adapter is currently present in the host system.
Emlxdrv allows you to bind a driver to adapters that are not currently present in the system but
that may be present at some point in the future.
•Boot: Indicates whether this specific type of adapter is currently providing connectivity to the
system's boot disk. This is important because emlxdrv does not allow you to change the driver
binding to an adapter currently providing connectivity to the boot disk. If the driver binding needs
to be changed to a boot device, the system must first be configured to boot through an adapte r
of another type. This procedure is not in the scope of this document.
•Sun: Indicates whether this specific type of adapter is branded and sold directly b y Sun
Microsystems.
•Models: Provides a list of Emulex HBA models that are identified by a common adapter alias.
Driver bindings can be made only with a specific adapter alias and not with a specific adapter
model.
After the driver configuration table is a list of available commands. For a detailed explanation of each
command and its arguments, see
Command Descriptions (emlxdrv) on page 28.
Below the command list is an emlxdrv> 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 current driver configuration
table and the available command list are displayed automatically after each command is issued.
Some commands require an additional <alias> argument. You must specify one of the valid adapter
aliases listed in the current driver configuration tabl e. Each alias is shared by multiple ad apter mod els.
Driver bindings can be made only with an adapter alias and not with a specific adapter m odel.
To exit the program, enter q.
CLI Mode (emlxdrv)
The emlxdrv utility program can be run in CLI mode by typing the name of the program fo llowed by a
valid command and any required command arguments. For example, you can update the a device
binding by entering all the information on one line at the operating system pr omp t:
# emlxdrv set_emlxs f980
Updating f980 ...
Done.
Driver Alias Present Boot Sun Models
---------------------------------------------------------------- emlxs lpfs no no no LP8000S and LP9002S (SBUS)
- f800 no no no LP8000 and LP8000DC
lpfc f900 yes no no LP9002, LP9002C, LP9002DC, and LP9402DC
lpfc f980 no no no LP9802 and LP9802DC
emlxs fa00 yes no no LP10000, LP10000DC and LP10000ExDC
emlxs fd00 no no no LP11000 and LP11002
emlxs fe00 no no no LPe11000 and LPe11002
emlxs f0a5 no no no 2G Blade Adapter (emlxs only)
emlxs fc00 yes no yes LP10000-S and LP10000DC-S
emlxs fc20 no no yes LPe11000-S and LPe11002-S
FCA Utilities Reference ManualPage 27
#
This mode of operation enables you to use the emlxdrv utility as part of a script or another progr am
capable of executing system-level calls. For a detailed explanation of each command and its arguments,
see
Command Descriptions (emlxdrv) on page 28.
Command Descriptions (emlxdrv)
This section provides a list of commands that can be issued with the emlxdrv utility program. You can
view the list of commands at any time by running the emlxdrv utility in interactive mod e (see
Mode (emlxdrv)
on page 26).
set_emlxs <alias>
Sets the emlxs driver to bind to the specified devices. You must specify one of the valid adapter aliases
listed on the screen. Note that each alias is shared by multiple adapter models. Driver bindings can be
made only with an adapter alias and not with a specific adapter model.
You may see the message "Cannot unload module". This indicates that you must reboot the system to
get a driver to unbind from that adapter alias; emlxdrv only updates the system configuration for the next
boot.
Example:
emlxdrv> set_emlxs f980
Updating f980 ...
Cannot unload module: lpfc
Will be unloaded upon reboot.
Interactive
Done.
set_emlxs_sun
Sets the emlxs driver to bind to all Sun devices.
Example:
emlxdrv> set_emlxs_sun
Updating fc00 ...
Done.
set_emlxs_all
Sets the emlxs driver to bind to all devices. You may see the message "Cannot unload module". This
indicates that you must reboot the system to get a driver to unbind from that adapter alias; emlxdrv only
updates the system configuration for the next boot.
Example:
emlxdrv> set_emlxs_all
Updating lpfs ...
Updating f800 ...
Updating f900 ...
Cannot unload module: lpfc
Will be unloaded upon reboot.
Updating f980 ...
Cannot unload module: lpfc
Will be unloaded upon reboot.
Updating fa00 ...
Updating fd00 ...
FCA Utilities Reference ManualPage 28
Updating fe00 ...
Updating fc00 ...
Done.
set_lpfc <alias>
Sets the lpfc driver to bind to the specified devices. You must specify one of the valid adapter aliases
listed on the screen. Each alias is shared by multiple adapter models. Driver bindings can be made only
with an adapter alias and not with a specific adapter model.
You may see the message "Cannot unload module". This indicates that you must reboot the system to
get a driver to unbind from that adapter alias; emlxdrv only updates the system configuration for the next
boot.
Example:
emlxdrv> set_lpfc fa00
Updating fa00 ...
Cannot unload module: emlxs
Will be unloaded upon reboot.
Done.
set_lpfc_nonsun
Sets the lpfc driver to bind to all non-Sun devices. You may see the message "Cannot unload module".
This indicates that you must reboot the system to get a driver to unbind from that adapter alias; emlxdrv
only updates the system configuration for the next boot.
Example:
emlxdrv> set_lpfc_nonsun
Updating lpfs ...
Updating f800 ...
Updating f900 ...
Updating f980 ...
Updating fa00 ...
Cannot unload module: emlxs
Will be unloaded upon reboot.
Updating fd00 ...
Updating fe00 ...
Done.
clear_dev <alias>
Clears driver binding to the specified devices. You must specify one of the adapter aliases listed on the
screen. Each alias is shared by multiple adapter models. Driver bindings can be made only with an
adapter alias and not with a specific adapter model.
You may see the message "Cannot unload module". This indicates that you must reboot the system to
get a driver to unbind from that adapter alias; emlxdrv only updates the system configuration for the next
boot.
Example:
emlxdrv> clear_dev fe00
Updating fe00 ...
Cannot unload module: emlxs
Will be unloaded upon reboot.
Done.
FCA Utilities Reference ManualPage 29
clear_lpfc
Clears all lpfc driver bindings. You may see the message "Cannot unload module". This indicates that
you must reboot the system to get a driver to unbind from that adapter alias; emlxdrv on ly update s the
system configuration for the next boot.
Example:
emlxdrv> clear_lpfc
Updating f900 ...
Cannot unload module: lpfc
Will be unloaded upon reboot.
Updating f980 ...
Cannot unload module: lpfc
Will be unloaded upon reboot.
Done.
clear_emlxs
Clears all emlxs driver bindings. You may see the message "Cannot unload module". This indicates that
you must reboot the system to get a driver to unbind from that adapter alias; emlxdrv on ly update s the
system configuration for the next boot.
Example:
emlxdrv> clear_emlxs
Cannot unload module: emlxs
Will be unloaded upon reboot.
Updating fc00 ...
Cannot unload module: emlxs
Will be unloaded upon reboot.
Done.
clear_sun
Clears driver bindings to all Sun devices. You may see the message "Cannot unload module". This
indicates that you must reboot the system to get a driver to unbind from that adapter alias; emlxdrv only
updates the system configuration for the next boot.
Example:
emlxdrv> clear_sun
Updating fc00 ...
Cannot unload module: emlxs
Will be unloaded upon reboot.
Done.
clear_nonsun
Clears driver bindings to all non-Sun devices. You may see the message "Cannot unload module". This
indicates that you must reboot the system to get a driver to unbind from that adapter alias; emlxdrv only
updates the system configuration for the next boot.
Example:
emlxdrv> clear_nonsun
Updating lpfs ...
Cannot unload module: emlxs
FCA Utilities Reference ManualPage 30
Will be unloaded upon reboot.
Updating f800 ...
Cannot unload module: emlxs
Will be unloaded upon reboot.
Updating f900 ...
Cannot unload module: lpfc
Will be unloaded upon reboot.
Updating f980 ...
Cannot unload module: lpfc
Will be unloaded upon reboot.
Updating fa00 ...
Cannot unload module: emlxs
Will be unloaded upon reboot.
Updating fd00 ...
Cannot unload module: emlxs
Will be unloaded upon reboot.
Updating fe00 ...
Cannot unload module: emlxs
Will be unloaded upon reboot.
Done.
clear_all
Clears driver bindings to all devices. You may see the message "Cannot unload module". This indicates
that you must reboot the system to get a driver to unbind from that adapter alias; emlxdrv only upd ates
the system configuration for the next boot.
Example:
emlxadm> clear_all
Updating lpfs ...
Cannot unload module: emlxs
Will be unloaded upon reboot.
Updating f800 ...
Cannot unload module: emlxs
Will be unloaded upon reboot.
Updating f900 ...
Cannot unload module: lpfc
Will be unloaded upon reboot.
Updating f980 ...
Cannot unload module: lpfc
Will be unloaded upon reboot.
Updating fa00 ...
Cannot unload module: emlxs
Will be unloaded upon reboot.
Updating fd00 ...
Cannot unload module: emlxs
Will be unloaded upon reboot.
Updating fe00 ...
Cannot unload module: emlxs
Will be unloaded upon reboot.
Updating fc00 ...
Cannot unload module: emlxs
Will be unloaded upon reboot.
FCA Utilities Reference ManualPage 31
Done.
q
Exits the program. If changes were made to the driver bindings, a system reboot is usually required in
order for all the changes to take effect.
Example:
emlxdrv> q
Exiting...
NOTE: If changes were made, then a system reboot may be required.
#
FCA Utilities Reference ManualPage 32
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.