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:
Reported Information
For all attached disks and logical units, LUNStat provides the following information collected from the host operating system:
For all attached SCSI disks and logical units, LUNStat provides the following information collected from SCSI Inquiry commands:
For Hitachi RAID logical units, LUNStat provides the following information collected from SCSI Inquiry commands:
For logical units attached through a host bus adapter, LUNStat provides the following information collected from the SNIA HBA API:
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)
Tags:
PageID: 11933