SmartSetup Scripting Toolkit Administrator's Guide

Table Of Contents
-d Outputs the PCI ID for the device in the
vendor:device:subvendor:subdevice format.
-l Displays the disk LUN.
-s Displays the size of the disk, in bytes.
-n | -no_showdisk Do not use the Altiris showdisk command to sort the disk list.
-v | --version Outputs the hpshowdisk utility version.
-w Displays the disk WWID in 16-digit hexadecimal format.
-h | --help Prints this help.
NOTE: The -w and -c do not run correctly if the hbaapi.dll file is not present in the utilities
directory under the SSTK repository tree. In order to obtain that DLL, see the following issue in
section 7 of the readme file:
"HPshowdisk utility and SetHBABootDevice action do not work properly
if hbaapi.dll is not present"
Examples
The following figure shows an example of hpshowdisk output in a system with 19 disks:
5 smart array disks (disks 15 to 19)
3 SAN disks through QLogic HBA cards (disks 9 to 11)
6 SAN disks through Emulex HBA cards (disks 3 to 8)
5 LSI disks through Emulex HBA cards (disks 1, 2, 12, 13 and 14)
>hpshowdisk.exe
LSI
SAS 1068 - sas1068
Disk ID 1: LUN 0 - 67.99 GB
Disk ID 2: LUN 0 - 67.99 GB
>hpshowdisk.exe -i 1 -d
1000:0054:103c:132c
>hpshowdisk.exe -i 2 -s
72999360000
>hpshowdisk.exe -n
LSI
SAS 1068 - sas1068
Disk ID 0: LUN 0 - 67.99 GB
Disk ID 1: LUN 0 - 67.99 GB
Return Codes
Table 5 hpshowdisk return codes
MeaningName
Return
Code
Success.SUCCESS0
Invalid options or invalid values were specified.ERROR_USAGE1
The specified disks are not in the machine.ERROR_NO_DISKS2
The utility cannot connect to WMI.ERROR_WMI_CONNECTION3
An error occurred while converting a string to a number.ERROR_STRING_CONVERSION4
No controller is listed by WMI.ERROR_NO_CONTROLLER5
No relationship between disks and controllers is listed by WMI.ERROR_NO_RELATION6
44 Utilities reference