8–Configuring FCoE in a Linux Environment
Using the QLogic Linux Utilities
FE0254601-00 A 8-51
Command Line Interface
To use the command line interface, type one of the following commands:
# ./ql-lun-state-online.sh <host number list>
or
# ./ql-lun-state-online.sh --all
where host number list a list of one or more SCSI host IDs (delimited by spaces)
of the QLogic Converged Network Adapter physical or virtual ports. If you omit
host number list and the --all option, the utility prompts you to correct your entry.
Table 8-20 describes the FC HBA Change LUN State Utility command line
options.
Table 8-21 shows a set of tasks and the commands that perform them.
Table 8-20. FC HBA Change LUN State Utility Command Line Options
Option
(Abbreviation)
Description
<Host number> Scan for all offline LUNs on the specified HOSTS (QLogic adapter
ports) and enable them
--all (-a) Scan for all offline LUNs on all the HOSTS (QLogic adapter ports)
and enable them
--help (-h) Display the help text
--interactive (-i) Open the menu interface. Refer to “Menu Interface” on page 8-52.
Table 8-21. HBA Change LUN State Utility Command Examples
Task Command Example
Enable all LUNs on host 2 and
4; that is, QLogic adapter ports
shown in sysfs as
/sys/class/scsi_host/host2 and
/sys/class/scsi_host/host4
# ./ql-lun-state-online.sh 2 4
Enable all LUNs on all adapt-
ers
# ./ql-lun-state-online.sh --all
Open the menu interface
# ./ql-lun-state-online.sh --interactive
Display the help text
# ./ql-lun-state-online.sh -–help