SmartSetup Scripting Toolkit Deployment Guide for HP Integrity Servers with Windows Server 2003 and Windows Server 2008 for Itanium-based Systems
hpshowdisk
Synopsis
hpshowdisk [[[-i index { -d | -s }]] | -n | -V | -h]
Description
The hpshowdisk utility outputs a list of disks grouped by controllers along with their sizes,
LUN, and disk identifiers.
Options
-i index
Selects a device using its index.
-d
Outputs the PCI ID for the device in the
vendor:device:subvendor:subdevice format.
-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.
-h | --help
Prints this help.
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 6-5 hpshowdisk return codes
MeaningName
Return
Code
Success.[SUCCESS]0
Invalid options or invalid values were specified.[ERROR_USAGE]1
The specified disks are not in the machine.[ERROR_NO_DISKS]2
The utility cannot connect to WMI.[ERROR_WMI_CONNECTION]3
An error occurred while converting a string to a number.[ERROR_STRING_CONVERSION]4
hpshowdisk 61