FC HBA Snapshot Utility for Linux

This software license applies only to QLogic customers.
QLogic Corporation.
All rights reserved.

Table of Contents

1.
Package Contents
2.
Requirements
3.
OS Support
4.
Supported Features
5.
Using the Dynamic FC HBA Snapshot Utility for Linux
  5.1 Command Line Options
  5.1 Usage Examples
6.
Application Notes
7.
Known Issues / Workarounds
8.
Contacting Support

1. Package Contents

The following table describes the contents provided in the FC HBA Snapshot Utility package.

Filename Description
COPYING GNU General Public License that describes user rights to copy, distribute, and use the open source content in this Linux tool.
ql-hba-snapshot.sh Script file used to display the details of the QLogic HBA attached to the system.
README.ql-hba-snapshot.txt Text file version of this readme file.
revision.qlhbasnapshot.txt Text file that identifies the changes made between versions of this package.

2. Requirements

The FC HBA Snapshot Utility requires one of the Linux platforms identified in OS Support.

3. OS Support

The FC HBA Snapshot Utility runs on the OS platforms shown in the following table.

Operating Systems
OS Name
OS Type
Hardware Platform
Red Hat RHEL AS 3.0
32-bit/64-bit
Intel x86, Intel EM64T, AMD64, Intel IA64, and PPC64 platforms
Red Hat RHEL AS 4.0
32-bit/64-bit
Intel x86, Intel EM64T, AMD64, Intel IA64, and PPC64 platforms
Novell SLES 8
32-bit/64-bit
Intel x86, Intel AMD64,Intel IA64, and PPC64 platforms
Novell SLES 9
32-bit/64-bit
32-bit/64-bit on Intel x86, Intel EM64T, AMD64, Intel IA64, and PPC64 platforms
Novell SLES 10
32-bit/64-bit
64-bit on Intel x86, Intel EM64T, AMD64, Intel IA64, and PPC64 platforms

NOTE: For specific OS service packs (SP) and updates, refer to the descriptions where this software version is posted on the QLogic website (http://support.qlogic.com/support/drivers_software.asp).

4. Supported Features

The ql-hba-snapshot utility provides following features:

  • Displays specific information of the HBA, such as WWPN, port ID, and connected targets.
  • Lists QLogic HBAs in the system.
  • Provides detailed HBA information including LUNs.
  • Provides parameters or options that can be passed to the QLogic driver.
  • Displays statistics for the QLogic host.
  • Supports fibre channel driver version 8.xx.xx.

5. Using the FC HBA Snapshot Utility

The FC HBA Snapshot Utility displays the details of the QLogic HBA attached to the system. It uses one of the two file systems for scanning: proc or sysfs.

Displayed details include the following:

  • QLogic HBA general information
  • Targets connected to QLogic host
  • Details about targets and LUNs
  • Statistics and parameters
  • Host list

By default, the utility displays specific information of the QLogic HBA. For details, see the following topics:

5.1 Command Line Options

Options Description
<Host number> | <-a/--all> [optional] Provides the <HOST NUMBER> to display the detailed information of the HBA. To obtain the <HOST NUMBER>, use the command:
# ./ql-hba-snapshot.sh -hl
Without specifying an option, the command displays only general information of all Hosts. For example:
# ./ql-hba-snapshot.sh <Host Number>
# ./ql-hba-snapshot.sh --sysfs <Host Number> (For sysfs)
-h, --help, ? Displays the help text. For example:
# ./ql-hba-snapshot.sh --help
-hl, --hostlist This option displays the list of QLogic hosts (HBAs) connected to this system. To obtain the <HOST NUMBER>, enter the following command:
# ./ql-hba-snapshot.sh --hostlist
# ./ql-hba-snapshot.sh --sysfs --hostlist (For sysfs)
-p, --parameters This option displays the command line parameters that can be passed to the QLogic HBA driver. For example:
# ./ql-hba-snapshot.sh --parameters <Host Number>
# ./ql-hba-snapshot.sh --sysfs --parameters (For sysfs)
-s, --statistics This option displays the statistical information for specified host. Statistics option is only supported in a sysfs-based scan. For example:
# ./ql-hba-snapshot.sh --sysfs --statistics <Host number/--all>
-sys, --sysfs This option forces the utility to scan sysfs-base information, instead of the default proc. For example:
$ ./ql-hba-snapshot.sh --sysfs [other valid option]
-v, --verbose This enables verbose display. Using this option displays the detailed LUN information, in addition to standard one. This option is only supported in sysfs. For example:
# ./ql-hba-snapshot.sh --sysfs --verbose <Host number/-a>

5.2 Usage Examples

The following examples show how to apply the command line options in PROC-based and SYSFS-based file systems.

5.2.1 PROC-based File Systems

  • To display default HBA information, enter the following command:
    # ./ql-hba-snapshot.sh
  • To display detailed information of host 7, enter the following command:
    # ./ql-hba-snapshot.sh 7
  • To display detailed information of all hosts, enter the following command:
    # ./ql-hba-snapshot.sh --all
  • To display QLogic HBAs driver parameters, enter one of the following commands:
    # ./ql-hba-snapshot.sh -p
    # ./ql-hba-snapshot.sh --parameters
  • To display QLogic HBAs, enter one of the following commands:
    # ./ql-hba-snapshot.sh -hl
    # ./ql-hba-snapshot.sh --hostlist
  • To view help, enter one of the following commands:
    # ./ql-hba-snapshot.sh -h
    # ./ql-hba-snapshot.sh --help

5.2.2 SYSFS-based File Systems

  • To display default HBA information, enter one of the following commands:
    # ./ql-hba-snapshot.sh -sys
    # ./ql-hba-snapshot.sh --sysfs
  • To display detailed information of host 7, enter one of the following commands:
    # ./ql-hba-snapshot.sh -sys 7
    # ./ql-hba-snapshot.sh --sysfs 7
  • To display detailed information of all hosts, enter one of the following commands:
    # ./ql-hba-snapshot.sh -sys -a
    # ./ql-hba-snapshot.sh --sysfs --all

    NOTE: The above two options both support -v/--verbose parameter.
    # ./ql-hba-snapshot.sh -sys -v 7
    # ./ql-hba-snapshot.sh --sysfs --verbose --all
  • To display QLogic HBA driver command line parameters, enter one of the following commands:
    # ./ql-hba-snapshot.sh -sys -p
    # ./ql-hba-snapshot.sh --sysfs --parameters
  • To display statistics of host 8, enter one of the following commands:
    # ./ql-hba-snapshot.sh -sys -s 8
    # ./ql-hba-snapshot.sh --sysfs --statistics 8
  • To display statistics of all hosts, enter one of the following commands:
    # ./ql-hba-snapshot.sh -sys -s -a
    # ./ql-hba-snapshot.sh --sysfs --statistics --all

  • To display QLogic HBAs, enter one of the following commands:
    # ./ql-hba-snapshot.sh -sys -hl
    # ./ql-hba-snapshot.sh --sysfs --hostlist
  • To view help, enter one of the following commands:
    # ./ql-hba-snapshot.sh -h
    # ./ql-hba-snapshot.sh --help

6. Application Notes

None

7. Known Issues and Workarounds

None

8. Contacting Support

Please feel free to contact your QLogic approved reseller or QLogic Technical Support at any phase of integration for assistance. QLogic Technical Support can be reached by the following methods:

Web: http://support.qlogic.com

North America Contact Information
Email: support@qlogic.com
Phone: (952) 932-4040

Support contact information for other regions of the world is available at the QLogic website:
http://support.qlogic.com

Go to Top

 

 

 
Hosted by uCoz