Skip to content
logo logoSelf Service
Sign In Sign Up
  • Home
  • Knowledgebase
Back

LUNStat

Updated 09/04/2024 06:57:15 AM by mtgriesinger
  • PDF
  • Print
  • Share
    • Facebook
  • Copy To Clipboard
  • Collapse All Expand All

Content

LUNStat

LUNStat is a command-line utility that gathers data from the host operating system, SCSI inquiries, and the SNIA HBA API to report the type of storage attached to a host. Supported host operating systems include Microsoft Windows 2000/XP, IBM AIX, Hewlett Packard HPUX, and Sun Solaris. Host storage information is presented in XML format or plain text format. You can sort plain text reports according to one of the following sets of criteria:

 

  • Ascending OS Bus Number, OS Target ID, and OS LUN
  • Ascending Array Serial Number, LDEV, and Port Number
  • Ascending Array Serial Number, Port Number, and LDEV
  • Ascending Array Serial Number, Parity Group, and LDEV
  • Ascending HBA Number, HBA Port Number, and SCSI ID


Reported Information 

For all attached disks and logical units, LUNStat provides the following information collected from the host operating system:

 

  • OS Bus Number
  • OS Target ID
  • OS LU Number
  • File System Types
  • File System Names
  • Mount Points
  • Capacity


For all attached SCSI disks and logical units, LUNStat provides the following information collected from SCSI Inquiry commands:

 

  • Manufacturer
  • Product ID
  • SCSI Serial Number
  • Revision Level


For Hitachi RAID logical units, LUNStat provides the following information collected from SCSI Inquiry commands:

 

  • Emulation Type
  • RAID Model
  • RAID Serial Number
  • RAID Port ID
  • RAID Device ID
  • RAID Level
  • RAID Group
  • RAID Sub System ID
  • RAID CU Number
  • RAID TC CTID
  • TCA Role
  • SI Role M0
  • SI RoleM1?
  • SI RoleM2?
  • Host Group Number
  • HBA Node WWN
  • HBA Port WWN

For logical units attached through a host bus adapter, LUNStat provides the following information collected from the SNIA HBA API:

 

  • HBA Adapter Number
  • HBA Adapter Name
  • HBA Manufacturer
  • HBA Model
  • HBA Hardware Version
  • HBA Driver Version
  • HBA Firmware Version
  • HBA Node WWN
  • HBA Port Number
  • HBA Port WWN
  • HBA Port Type
  • HBA Port State
  • HBA Port FCID
  • HBA Port Supported COS
  • HBA Port Supported Speed
  • HBA Port Actual Speed
  • HBA Port Discovered Port Count
  • HBA Port Error Frames Per Minute
  • HBA Port Link Failures Per Minute

 

Usage

Correct usage is: LUNStat -x
or: LUNStat -t [-s] [-a] [-p] [-r] [-h]

where:
-x: indicates to write an XML format report to stdout.
-t: indicates to write a textual format report to stdout.
-s: request SCSI ID report. (-s is valid with -t).
-a: request Hitachi array report. (-a is valid with -t).
-p: request Hitachi array port report. (-p is valid with -t).
-r: request Hitachi array RAID group report. (-r is valid with -t).
-h: request HBA report. (-h is valid with -t).

example:

# lunstat -tsv 1>output.txt 2>log.txt


(where -v is verbose, this will create an output file and error file into the current directory)

 

Download LUNStat

 

  • LUNStat for AIX

 

  • LUNStat for HP-UX, Itanium

 

  • LUNStat for HP-UX, PA-RIS

 

  • LUNStat for Solaris

 

  • LUNStat for Windows 2000/XP

 

  • LUNStat Utility Reference Guide

Attachments

Attachment: 7374_20240807163232_240417200002942.pdf
Attachment: 7374_20240807163232_240417200002943.gz
Attachment: 7374_20240807163232_240417200002944.gz
Attachment: 7374_20240807163232_240417200002945.gz
Attachment: 7374_20240807163232_240417200002946.gz
Attachment: 7374_20240807163233_240417200002947.zip

CXone Metadata

Tags:

PageID: 11933

Keywords: https://knowledge.hitachivantara.com/Support_Information/Data_Collection/Servers/LUNStat

Related Solutions

  • How to Download Logs on DS120 DS220 G2
  • AIX ODM Updates
  • How to Download Logs on DS7000
  • How to Download Logs on CB500
  • How to Collect VSSB Logs from GUI
Solution ID
242403050011933
Last Modified Date
09/04/2024 06:57:15 AM
Attributes
Page Privacy and Permission Assignment
  • Page Privacy: Private
  • Page Level Permissions: Anonymous; Employee; Service Partner; Customer; Knowledge Author; Knowledge Editor; IT; eServices; Knowledge Draft
  • Article: qanda
  • Pagetype: knowledgearticle
Taxonomy
  • Support Information > Data Collection > Servers
Collections
  • Guest (Public)

Solution to Copy:

Copy to Clipboard

Failed to download PDF file.

Problem creating pdf file for the solution: 242403050011933
Close

Acknowledged.

Thank you for acknowledging that you have read and understood this solution.

Failure.

Unable to acknowlege. An error occurred.
Knowledge
  • Knowledgebase
Helpful Links
  • Community
  • Product Documentation
Upland RightAnswers | Self Service - 2024R2
© Fri Nov 07 00:11:38 EST 2025 Upland Software, Inc. All Rights Reserved