HPE - c04083434 - HP Scripting Toolkit 9.60 For Linux User Guide
HPE - c04083434 - HP Scripting Toolkit 9.60 For Linux User Guide
60 User
Guide
Abstract
This document provides information about the Scripting Toolkit for Linux utilities and how best to use the Scripting Toolkit for
Linux to configure HP ProLiant servers and BladeSystem infrastructure in a Linux environment. This document is intended for IT
experts with experience in scripting operating system installations and configuring HP ProLiant servers and BladeSystem
infrastructure.
The information contained herein is subject to change without notice. The only warranties for HP products and services are set forth in the express
warranty statements accompanying such products and services. Nothing herein should be construed as constituting an additional warranty. HP shall
not be liable for technical or editorial errors or omissions contained herein.
Confidential computer software. Valid license from HP required for possession, use or copying. Consistent with FAR 12.211 and 12.212, Commercial
Computer Software, Computer Software Documentation, and Technical Data for Commercial Items are licensed to the U.S. Government under
vendor’s standard commercial license.
Microsoft, Windows, and Windows Server are U.S. registered trademarks of Microsoft Corporation. Intel is a trademark of Intel Corporation in the
U.S. and other countries.
Contents
1 Introduction...............................................................................................7
Scripting Toolkit........................................................................................................................7
Minimum requirements..............................................................................................................7
2 Deployment using the Scripting Toolkit..........................................................8
Deployment overview................................................................................................................8
Sample deployment procedure...................................................................................................8
Creating a network share......................................................................................................9
Capturing a reference configuration from the source server........................................................9
Creating an ISO image to be written to media.......................................................................10
Configuring the target server...............................................................................................11
Installing the operating system.............................................................................................11
3 Booting and OS installation.......................................................................12
SYSLINUX..............................................................................................................................12
Booting using PXE...................................................................................................................12
Setting up a TFTP server......................................................................................................13
Populating the TFTP directory share......................................................................................14
Setting up a DHCP server...................................................................................................14
Booting from a USB drive key...................................................................................................15
Performing an unattended operating system installation...............................................................15
System hardware configuration............................................................................................15
Microsoft Windows install_win.sh sample script.....................................................................19
Red Hat Linux anaconda-ks.cfg sample file............................................................................19
4 Scripting Toolkit utilities.............................................................................22
Native package formats..........................................................................................................22
Syntax conventions.................................................................................................................22
Utility online help...................................................................................................................22
Using Scripting Toolkit utilities..................................................................................................23
Using REBOOT.......................................................................................................................23
REBOOT command-line syntax.............................................................................................23
REBOOT command-line arguments.......................................................................................23
REBOOT return codes.........................................................................................................23
REBOOT command-line examples........................................................................................24
Using SETBOOTORDER...........................................................................................................24
SETBOOTORDER command-line syntax.................................................................................24
SETBOOTORDER command-line arguments...........................................................................24
SETBOOTORDER return codes.............................................................................................24
SETBOOTORDER command-line examples.............................................................................24
Using STATEMGR...................................................................................................................25
STATEMGR command-line syntax.........................................................................................25
STATEMGR command-line arguments....................................................................................25
STATEMGR return codes.....................................................................................................25
STATEMGR command-line examples.....................................................................................25
Using RBSURESET...................................................................................................................25
RBSURESET command-line syntax.........................................................................................26
RBSURESET command-line arguments...................................................................................26
RBSURESET return codes.....................................................................................................26
Using BOOTEXTRACT ............................................................................................................26
BOOTEXTRACT command-line syntax...................................................................................26
BOOTEXTRACT command-line arguments..............................................................................26
BOOTEXTRACT return codes...............................................................................................26
Contents 3
Using HPDISCOVERY..............................................................................................................27
HPDISCOVERY command-line syntax....................................................................................27
HPDISCOVERY command-line arguments..............................................................................27
HPDISCOVERY return codes................................................................................................27
HPDISCOVERY command-line examples................................................................................27
Using IFHW...........................................................................................................................28
IFHW command-line syntax.................................................................................................28
IFHW command-line arguments...........................................................................................28
IFHW return codes.............................................................................................................28
IFHW command-line examples............................................................................................28
Expression operators and terms...........................................................................................28
Expression examples..........................................................................................................29
Using HWQUERY...................................................................................................................29
HWQUERY command-line syntax.........................................................................................29
HWQUERY command-line arguments...................................................................................29
HWQUERY return codes.....................................................................................................30
HWQUERY command-line examples....................................................................................30
Using CONREP......................................................................................................................30
CONREP command-line syntax............................................................................................31
CONREP command-line arguments......................................................................................31
CONREP return codes........................................................................................................32
CONREP screen output.......................................................................................................32
CONREP -s (Store to Data file) ............................................................................................32
CONREP –l (Load from Data File).........................................................................................33
CONREP Data File Sample Contents for HP ProLiant servers not using the Oxx ROM family.........33
CONREP command file contents for HP ProLiant servers not using the Oxx ROM family...............34
Using HPRCU.........................................................................................................................35
HPRCU command-line syntax...............................................................................................35
HPRCU command line arguments.........................................................................................35
HPRCU return codes...........................................................................................................36
HPRCU sample XML format.................................................................................................36
Using HPSSASCRIPTING..........................................................................................................36
Capturing a configuration...................................................................................................37
Using an Input script...........................................................................................................37
Creating an HP SSA script file.............................................................................................38
Sample custom input script.............................................................................................38
Script file options...............................................................................................................39
Control category...........................................................................................................40
Action mode............................................................................................................41
Method mode..........................................................................................................41
Controller category.......................................................................................................41
Controller................................................................................................................41
ChassisName..........................................................................................................42
ClearConfigurationWithDataLoss................................................................................42
LicenseKey, DeleteLicenseKey.....................................................................................42
PreferredPathMode...................................................................................................42
ReadCache, WriteCache...........................................................................................42
RebuildPriority, ExpandPriority....................................................................................43
SSPState..................................................................................................................43
SurfaceScanDelay....................................................................................................43
Video performance options........................................................................................43
Array category.............................................................................................................44
Array......................................................................................................................44
Drive.......................................................................................................................44
DriveType................................................................................................................44
4 Contents
OnlineSpare............................................................................................................45
Logical Drive category...................................................................................................45
ArrayAccelerator......................................................................................................45
LogicalDrive.............................................................................................................45
LogicalDriveSSPState.................................................................................................45
ParityGroups............................................................................................................46
PreferredPath...........................................................................................................46
RAID.......................................................................................................................46
Sectors....................................................................................................................46
Size........................................................................................................................46
SSPAdaptersWithAccess............................................................................................47
StripeSize................................................................................................................47
HBA category...............................................................................................................47
ConnectionName.....................................................................................................47
HBA_WW_ID..........................................................................................................48
HostMode...............................................................................................................48
HP SSA scripting error messages..........................................................................................48
Using HPLPCFG......................................................................................................................52
HPLPCFG command-line syntax............................................................................................52
HPLPCFG command-line arguments......................................................................................52
HPLPCFG return codes........................................................................................................52
HPLPCFG command-line examples.......................................................................................53
Using LO100CFG...................................................................................................................53
LO100CFG command-line syntax.........................................................................................53
LO100CFG command-line arguments...................................................................................54
LO100CFG return codes.....................................................................................................54
LO100CFG command-file contents.......................................................................................54
Using HPQLAREP...................................................................................................................55
HPQLAREP command-line syntax.........................................................................................55
HPQLAREP command-line arguments....................................................................................55
HPQLAREP return codes......................................................................................................56
HPQLAREP command-line examples.....................................................................................56
Using HPONCFG...................................................................................................................57
HPONCFG command-line syntax.........................................................................................57
HPONCFG command-line arguments...................................................................................57
HPONCFG return codes.....................................................................................................58
HPONCFG command file contents.......................................................................................58
Obtaining an entire configuration....................................................................................58
Obtaining a specific configuration...................................................................................59
Setting a configuration...................................................................................................60
HPONCFG command-line examples.....................................................................................60
5 Troubleshooting........................................................................................61
Troubleshooting table..............................................................................................................61
6 Support and other resources......................................................................62
Information to collect before contacting HP.................................................................................62
How to contact HP..................................................................................................................62
Subscription service................................................................................................................62
Related information.................................................................................................................62
Scripting Toolkit support..........................................................................................................63
Typographic conventions.........................................................................................................63
HP Insight Remote Support software..........................................................................................63
HP Insight Online...................................................................................................................64
Contents 5
7 Documentation feedback...........................................................................65
Acronyms and abbreviations.........................................................................66
Index.........................................................................................................68
6 Contents
1 Introduction
Scripting Toolkit
The Scripting Toolkit is a server deployment product for IT experts that delivers an unattended
automated installation for high-volume server and BladeSystem infrastructure deployments. This
document describes how to best use the Scripting Toolkit to configure HP ProLiant servers and
BladeSystem infrastructure. It also contains information about the Scripting Toolkit utilities and how
to use them in an unattended environment. This document does not include information about
installing the operating system.
CAUTION: Improper use of the Scripting Toolkit utilities can result in loss of critical data. Because
of the potential data-loss risk, only individuals experienced in scripting operating system installations
and configuring HP ProLiant server hardware should use the Scripting Toolkit utilities. Before using
the Scripting Toolkit, all necessary precautions must be taken to ensure that mission-critical systems
remain online if a failure occurs.
NOTE: This release of the Scripting Toolkit uses HP Smart Storage Administrator (HP SSA), instead
of the Array Configuration Utility (ACU). HP SSA includes all of the functions previously contained
in ACU and the Array Configuration Utility Command Linux Interface (ACUCLI).
Minimum requirements
Before beginning the deployment process, be sure to have the following items available:
• Scripting Toolkit for Linux
• HP Scripting Toolkit for Linux User Guide
• A Linux workstation (any Linux distribution)
Scripting Toolkit 7
2 Deployment using the Scripting Toolkit
Deployment overview
The Scripting Toolkit includes a set of utilities for configuring and deploying servers in a customized,
predictable, and unattended manner. These utilities enable you to duplicate the configuration of
a source server on target servers with minimal user interaction.
IMPORTANT: HP ProLiant 100 series servers previous to Gen8 do not support all Scripting Toolkit
commands. See the following descriptions for utility usage. Commands that are supported might
not work as expected. For a better understanding, read each section of the documentation carefully.
You can perform server deployments in many different ways using the Scripting Toolkit, but every
deployment must include the following basic steps:
1. Create a network share.
2. Prepare the bootable media (CD/DVD, USB drive key, or PXE).
3. Configure the system and storage hardware on the target server.
4. Perform the operating system installation.
HP also recommends installing the latest version of the HP SPP. To obtain the most current SPP, see
the SPP website at http://www.hp.com/go/spp.
IMPORTANT: Not all options can be configured using Scripting Toolkit utilities. Some options
must be configured manually or with other configuration utilities, which are available online, before
they can be used with the Scripting Toolkit. For more information on configuration, see the option
documentation.
Argument Description
-o linuxbootCD.iso This argument is the output of the mkisofs command, the ISO file.
./linuxbootCD This argument specifies the target directory that will be the root of
the CD.
To create the ISO image, execute the following command at the shell prompt:
mkisofs -J -iso-level 3 -R -L -o linuxbootCD.iso \
-b isolinux/isolinux.bin -c isolinux/boot.cat \
-V LinuxBootCD \
-no-emul-boot -boot-load-size 4 \
-boot-info-table \
./linuxbootCD
Now, the ISO file can be written to a CD.
Option Description
sstk_mount_type=<mount type> This command specifies the file system type of the device;
for example, nfs, vfat, or iso9660
sstk_mount_options=<mount options> This command specifies the options for mounting the device;
for example, ro, or ro,nolock for NFS
The bootstrap script included with the Toolkit performs the following commands:
mount -t $sstk_mount_type $sstk_mount /mnt/main -o $sstk_mount_options
exec /mnt/main/$sstk_script
For more information about SYSLINUX usage, see the SYSLINUX web page at http://
syslinux.zytor.com/index.php
NOTE: Booting from a USB drive key is supported only on certain HP ProLiant servers. For more
information, see the HP SPP website at http://www.hp.com/go/spp.
To set up a USB drive key to boot the Scripting Toolkit environment:
1. Download hp-scripting-toolkit-linux-9.xx.tar.gz (where XX is the minor version
number) from http://www.hp.com.
Extract the file to a directory of your choice. (The following example uses /Toolkit).
2. Make a directory, extract the files, and then change the directory to the extracted toolkit
directory.
mkdir -p /Toolkit
tar xfz hp-scripting-toolkit-linux-9.xx.tar.gz -C /Toolkit
cd /Toolkit/hp-scripting-toolkit-linux-9.xx
3. Enter the following command on the BASH command-line prompt:
./mkusbkey.sh /dev/XXX
where XXX is the device node of your USB drive key.
If you do not know the device node associated with your USB drive key, run the fdisk –l
command to view the devices available to the operating system.
If the script creates the key successfully, the following message appears:
USB Key created successfully on device /dev/XXX
if [ $? = 0 ] ; then
echo "Plain SATA found"
# Plain SATA, set BOOTDEVNODE manually since hardware discovery won't find IDE devices
export BOOTDEVNODE=/dev/hda
fi
## ADD EXTRA ProLiant ML310 G2 Configuration Steps HERE
;;
## ADD MORE SERVERS HERE
ProLiant* )
echo "No configuration process defined for this ProLiant server"
echo "Update $0 with steps for this ProLiant server"
exec /bin/bash
;;
* )
echo "Unrecognized Server"
exec /bin/bash
;;
esac
## CONTINUE COMMON INSTALL PROCESS
cd ${TOOLKIT}
echo "Pausing to allow drivers to catch up"
sleep 5
Syntax conventions
Syntax refers to the way a command and parameters must be entered. Unless specified otherwise,
enter commands, parameters, and switches in all uppercase or all lowercase letters.
Sample syntax line:
SAMPLE[-R][PATH]FILENAME[...]
PATH Specifies the route the operating system must follow through the directory structure to locate
a directory or file. A path and file name must be specified only if the file is not in the current
directory.
FILENAME Specifies a file name. This document uses uppercase file names. A device name or a drive
letter cannot be specified for a file name.
... Indicates that the previous parameter or switch can be repeated several times in a command.
Enter only the information, not the ellipsis (…).
In this document, the length of an example command or syntax might require it to continue on
another line. When this happens, the second line and any additional lines are indented under the
first line.
Placeholder items used in the syntax lines in this chapter include:
• Source—Specifies the location of the data to be transferred to a specified destination or used
as input to a command. The source can consist of a drive letter and colon, a directory name,
a file name, or a combination of these items.
• Destination—Specifies the destination to which the source transfers the data. The destination
can consist of a drive letter and colon, a directory name, a file name, or a combination of
these items.
• String—Specifies a group of characters to be treated as a unit. A string can include letters,
numbers, spaces, or any other character and is usually enclosed in double quotation marks.
Using REBOOT
REBOOT, together with other utilities, is used from a batch file to control server reboots. This utility
enables the user to reboot the server with control over which device is the boot device. If no boot
drive argument is passed on to REBOOT, then the utility reboots the server using the drive specified
as the default drive.
[DRIVE:] Valid arguments that can be passed to REBOOT are A:, C:, CD, RBSU, or PXE. By
specifying an argument, the drive indicated is set to boot on the next reboot, and the
system is restarted. If no argument is provided, then the system is set to boot using
the defined boot order.
Value Meaning
0 Success
REBOOT PXE This command reboots the system by itself to the PXE NIC.
Using SETBOOTORDER
SETBOOTORDER enables you to set the order in which devices are booted, including diskette
drives, CD-ROM drives, hard drives, PXE, and USB devices. This utility sets the boot order only for
devices that exist for a server. The devices can be set to boot in any order.
SETBOOTORDER cannot be used to set the storage controller order. You must use the CONREP
utility. For more information about setting the controller order, see “Using CONREP” (page 30).
NOTE: Any changes made to the SETBOOTORDER take affect at the next reboot. For HP ProLiant
servers with Oxx ROM Family (most 100 series servers), only one device can be set as the boot
device and others cannot be re-ordered. These Oxx servers do not support the default or usb
parameters.
NOTE: UEFI-based servers no longer support “floppy” as a boot option in any mode, including
Legacy mode.
floppy cdrom pxe hd usb The order of these arguments sets the boot order for the
system devices. Each term can be used only once in any
order. It is not necessary to use all terms. HP ProLiant 100
series servers can only pass in one option.
default This argument resets the boot order to the factory default.
Value Meaning
SETBOOTORDER cdrom hd pxe usb This command sets the system devices to boot in this order:
CD-ROM drive, hard drive, PXE, USB.
SETBOOTORDER default This command sets the boot order to the factory default.
Value Meaning
Using RBSURESET
RBSURESET resets the BIOS settings for a server by reapplying the default factory setting at the
next reboot. RBSURESET does not erase array configurations or logical storage volumes.
Using STATEMGR 25
NOTE: This command is not yet supported on HP ProLiant 100 series servers, but will be in
futures releases.
Value Meaning
Using BOOTEXTRACT
BOOTEXTRACT is used to extract the boot sector files from Windows Server 2008. These files can
be used later in the installation of Windows Server 2008.
ufat.dll Full path to the ufat.dll (from Windows 2008) file to extract
the boot sector
ntldr.bss Full path to the output file to save the first part of the boot
sector
ntldr2.bss Full path to the output file to save the second part of the
boot sector
Value Meaning
n Any non-0 return code is an error. For details, see the error
message.
Value Meaning
Using HPDISCOVERY 27
Using IFHW
IFHW is used from a script file, in conjunction with other utilities, to control the deployment. The
IFHW utility enables you to make intelligent queries against the hardware discovery file. Queries
take the form of a logical expression, and the result of the expression is returned as the return code
of the tool, which the hosting script can use to conditionally perform actions.
Value Meaning
ifhw hpdiscovery.xml allboards.xml This command returns the following error levels:
"PCI:Smart Array 5i"
• ERRORLEVEL 0 (True) if the Smart Array 5i is present
• ERRORLEVEL 1 (False) if the device is not present
• ERRORLEVEL 2 (Error) if the expression could not be
understood
gte True if the first operand is greater than or equal to the second
lte True if the first operand is less than or equal to the second
PCI:<string> True if a PCI device whose name includes <string> is found in the hardware discovery file.
<string> is case-sensitive.
HWQ:<string> The hardware discovery file is searched for <string>, and the corresponding value is the value
of this term. <string> is case-sensitive.
Expression examples
"PCI:Smart Array 5i" True if the Smart Array 5i Controller is found in the system
HWQ:TotalRAM gte 512 True if the amount of RAM in the hardware discovery file
is at least 512
HWQ:ROMDate neq True if the ROM date in the hardware discovery file is not
"11/12/2004" 11/12/2004
"PCI:Smart Array 5i" or "PCI:Smart Array True if the system contains a Smart Array 5i Controller or
6i" a Smart Array 6i Controller
Using HWQUERY
HWQUERY is used from a script, in conjunction with other utilities, to control the deployment. The
HWQUERY utility enables you to use data from the hardware discovery file in your own scripts.
HWQUERY cannot alter environment variables directly. To set the variable, the output of HWQUERY
must be used by the hosting script. The most common way to use it is to write the output to an
intermediate script that is subsequently called by the hosting script.
Using HWQUERY 29
Command-line argument Description
Value Meaning
hwquery hpdiscovery.xml allboards.xml For a hpdiscovery.xml file that indicates a Smart Array
"TEST=Smart Array" 5i Controller is present, HWQUERY produces the following:
TEST=Smart Array 5i Controller
Using CONREP
The CONREP utility generates a system configuration XML file used to duplicate the hardware
configuration of one HP ProLiant server onto another. The CONREP utility uses the hardware
configuration XML file to identify and configure the system, which defaults to conrep.xml. You
CAUTION: Improper modification of the CONREP data files can result in the loss of critical data.
Only experienced users of the Scripting Toolkit should attempt to modify the data files. Because
of the potential risk of data loss, take all necessary precautions to ensure that mission-critical systems
remain online if a failure occurs.
The CONREP utility reads the state of the system environment settings to determine the server
configuration and writes the results to a file that you can edit. The CONREP utility uses the data in
the generated file to configure the target server hardware.
The CONREP utility uses an XML definition file to determine what information to retrieve from and
restore to the server. You can modify this file to update new features or restrict features when
capturing configurations. The default conrep.xml file contains common hardware configuration
settings for most HP ProLiant series servers other than HP ProLiant 100 series servers using the Oxx
ROM family. Some platforms require special settings that are contained in other XML files. These
files are included in the Scripting Toolkit and are available from the HP website at http://
www.hp.com on the support page for each platform. You can use these files with the -x option to
configure systems that are not supported by the default hardware configuration file.
Many fields in the conrep.xml file contain help text that enables you to configure the field
meanings. This information is also added to the conrep.dat file. Hardware features that are not
supported by the existing platform or ROM version appear in the conrep.dat file.
IMPORTANT: The file format for the DOS version of CONREP and the current version of CONREP
are not compatible.
NOTE: Asset Tag Protection - Lock/Unlock cannot be read or changed on the HP ProLiant DL580
Gen8 server using CONREP. To change this feature, use the UEFI System Utilities. For more
information, see the HP UEFI System Utilities User Guide.
-x filename This argument defines the name and location of the XML
hardware definition file. The default file is conrep.xml.
-f filename This argument defines the name and location of the system
configuration data file. The default file is conrep.dat.
Using CONREP 31
CONREP return codes
Value Meaning
6 No XML tag.
NOTE: The file names after the -x and -f options must be specified, otherwise, the default file
names conrep.xml and conrep.dat are used, respectively.
NOTE: A platform specific XML file needs to be used for HP ProLiant 100-series servers. If you
use the default name this may cause an error while running the CONREP utility.
CONREP Data File Sample Contents for HP ProLiant servers not using the Oxx ROM
family
A typical data file generated by CONREP is similar to the following:
<Conrep_data>
<Section name="Controller_Order">
<Id0>0e 11 40 80 </Id0>
<Slot0>00 </Slot0>
<BusDev0>00 08 </BusDev0>
<Rest0>01 </Rest0>
<Id1>0e 11 ff ff </Id1>
<Slot1>00 </Slot1>
<BusDev1>00 78 </BusDev1>
<Rest1>c1 </Rest1>
</Section>
<Section name="Language">ENGUSAus </Section>
<Section name="System_WOL">Disabled</Section>
<Section name="System_APIC">Auto Set</Section>
<Section name="System_COMA">COM1</Section>
<Section name="System_COMA_IRQ">IRQ4</Section>
<Section name="System_COMB">Disabled</Section>
<Section name="System_COMB_IRQ">Undefined</Section>
<Section name="System_LPT">LPT1</Section>
<Section name="System_LPT_IRQ">IRQ7</Section>
Using CONREP 33
<Section name="Diskette_Write_Control">Writes_Enabled</Section>
<Section name="NMI_Debug_Button">Disabled</Section>
<Section name="ACPI_Power_Button">Disabled</Section>
<Section name="ASR">Disabled</Section>
<Section name="ASR_Timeout">10 Minutes</Section>
<Section name="Thermal_Shutdown">Enabled</Section>
<Section name="RBSU_Language">01</Section>
<Section name="PXE_NIC1">Disabled</Section>
<Section name="PXE_NIC2">Disabled</Section>
<Section name="BIOS_Console">Disabled</Section>
<Section name="EMS_Console">Disabled</Section>
<Section name="Diskette_Boot">Enabled</Section>
<Section name="NumLock">On</Section>
<Section name="POST_Speed_Up">Enabled</Section>
<Section name="Integrated_Diskette_Controller">Enabled</Section>
<Section name="PCI_Bus_Reset">Enabled</Section>
<Section name="Hot_Plug_Reservation">Auto Set</Section>
<Section name="Memory_Protection">Standard ECC Protection</Section>
</Conrep_data>
CONREP command file contents for HP ProLiant servers not using the Oxx ROM
family
A typical data file generated by the CONREP command is similar to the following:
<?xml version="1.0" encoding="UTF-8"?>
<!--generated by conrep version 3.10-->
<Conrep version="3.00"
originating_platform=
"ProLiant DL360 G4"
originating_family=
"P52"
originating_romdate=
"08/16/2005">
<Section name="IPL_Order"
helptext=
"Current Initial Program Load device boot order">
<Index0>00 </Index0>
<Index1>01 </Index1>
<Index2>03 </Index2>
<Index3>02 </Index3>
<Index4>04 </Index4>
<Index5>ff </Index5>
<Index6>ff </Index6>
<Index7>ff </Index7>
</Section>
<Section name="PCI_Devices"
helptext=
"Lists of PCI devices and their interrupts-not displayed if default" >EMPTY_DELETE</Section>
<Section name="Controller_Order"
Using HPRCU
HPRCU is an RBSU configuration utility similar to CONREP. This utility is supported on all HP
ProLiant Gen8 servers except the HP ProLiant DL580 Gen8 server. This utility does not use a
definition XML file like the CONREP utility, but directly reads the same table that RBSU uses for
feature names and settings. All features and options are number based. Each feature and option
has a unique number.
Using HPRCU has the following features:
• All system ROM settings and the current selections are listed together in one output/input XML
file.
• No updated binary or XML file is needed when BIOS adds or changes features. HPRCU now
reads the same tables that RBSU does, which are located in the memory at system boot. When
the BIOS changes or adds a new setting, no update to HPRCU is needed.
• The HPRCU XML file shows the default settings for each RBSU option.
HPRCU is not supported on UEFI-based ProLiant servers. Instead, use CONREP.
-f {file.xml} Name of the input or output file. If not specified, the XML
configuration defaults to hprcu.xml.
-t Outputs the help and warning text for each feature. Only
valid with the -s option.
Using HPRCU 35
HPRCU return codes
Using HPSSASCRIPTING
Starting with version 8.28.13.0, HP SSA Scripting is now a standalone application that is distributed
with the HP SSA CLI application. In HP SSA versions prior to 8.28.13.0, the scripting executable
was provided with the HP SSA GUI component.
For more information, see the Configuring Arrays on HP Smart Array Controllers Reference Guide
on the HP website at http://www.hp.com/support/CASAC_RG_en.
Users familiar with the previous versions of HP SSA Scripting must now install the HP SSA CLI
application to obtain the scripting executable. The new HP SSA scripting executable
(hpssascripting) replaces the former executable (cpqssaxe) in all scripts.
NOTE: For a complete list of all command-line parameters, execute the /h utility.
Capturing a configuration
To capture the configuration of a system, enter the following command at the system command
line prompt:
hpssascripting -c [drive:][path] OUTPUTFILENAME.ext [-internal |
-external] -e [drive:][path]ERRORFILENAME.ext
OUTPUTFILENAME is the name of the capture file, and ext. is the file extension. If you do not
specify a name and location for this file, HP SSA uses the default name HPSSAOUTPUT.ini and
places the file in the HP SSA working directory.
The -internal and -external switches limit capture to internal or external controllers.
The -e switch information is used only if HP SSA must generate an error file. By default, HP SSA
names the error file ERROR.ini and places it in the HP SSA working directory.
Using HPSSASCRIPTING 37
Creating an HP SSA script file
To create a valid HP SSA script file, use one of the following methods:
• Modify the sample custom input script (page 38).
• Create a Capture file for capturing a configuration (page 37).
You can create a capture file from any server that has HP SSA loaded, and then modify the
values of options in the file as necessary for the target system. This method is useful for applying
a standard configuration to several servers that have similar storage resources.
• Write an original script.
Each line of text in an HP SSA script file is in the format option = value and can be written
in uppercase or lowercase letters. For information about possible option values and the
minimum configuration information that a valid script must have, see “Sample custom input
script” (page 38).
You can add blank lines and comments to any script to make it easier to read and understand. To
create a comment, enter a semicolon, and then enter the comment text. HP SSA ignores all text on
the same line after a semicolon.
Using HPSSASCRIPTING 39
The options for each category are listed in the following table and described in more detail in the
remainder of this section.
Control Action Use these options to define the overall behavior of HP SSA when it
Method processes scripts and creates configurations. Control options can occur
only once in a script file and must be listed first.
Controller Controller Use these options to specify the controller you are configuring (or the
ChassisName controller that had its configuration captured). Although the Controller
option must begin this section of the script, you can script other options in
ClearConfigurationWithDataLoss this category in any order.
DeleteLicenseKey You can use one script file to configure all controllers in a system, and you
DPOEnable can configure the controllers identically or individually. If you define each
controller configuration individually, enter the option values for one
ElevatorSortEnable
controller and its arrays and logical drives before specifying the option
ExpandPriority values for another controller.
IRPEnable
LicenseKey
MNPDelay
PreferredPathMode
QueueDepth
ReadCache
RebuildPriority
SSPState
SurfaceScanDelay
WriteCache
Array Array Use these options to describe an array you are configuring on the controller
Drive previously specified in the script. (If no controller was previously specified,
HP SSA stops processing the script and creates an error file.) Although the
DriveType Array option must begin this section of the script, you can script the other
OnlineSpare options in this category in any order.
Logical ArrayAccelerator Use these options to describe a logical drive you are configuring on an
Drive LogicalDrive array previously specified in the script. (If no array was previously
specified, HP SSA stops processing the script and creates an error file.)
LogicalDriveSSPState Although the LogicalDrive option must begin this section of the script, you
ParityGroups can script the other options in this category in any order.
PreferredPath
RAID
Sectors
Size
SSPAdaptersWithAccess
StripeSize
HBA ConnectionName Use these options to specify an HBA you are configuring.
HBA_WW_ID
HostMode
Control category
The Control category has the following options:
• “Action mode” (page 41)
• “Method mode” (page 41)
Method mode
The default value for Method mode is Auto. If you want to use Custom mode, you must specify it.
In Auto mode, HP SSA can perform an expansion, extension, or migration without user intervention
if the values that you set for other options imply that such an operation is necessary.
Controller category
The Controller category has the following options:
• Controller (page 41)
• ChassisName (page 42)
• ClearConfigurationWithDataLoss (page 42)
• DeleteLicenseKey (page 42)
• DPOEnable (page 43)
• ElevatorSortEnable (page 43)
• ExpandPriority (page 43)
• IRPEnable (page 43)
• LicenseKey (page 42)
• MNPDelay (page 43)
• PreferredPathMode (page 42)
• QueueDepth (page 43)
• ReadCache (page 42)
• RebuildPriority (page 43)
• SSPState (page 43)
• SurfaceScanDelay (page 43)
• WriteCache (page 42)
Controller
You must enter a value for this option because it identifies the controller that you want to configure:
• All—Configure all detected controllers in the system.
• Slot [N][:M]—Configure the internal controller in slot number N, or the external controller
at port M in slot N.
• WWN [N]—Configure the external controller that has the World Wide Name N.
• SerialNumber [N]—Configure the shared storage controller that has serial number N.
• IOCabinet[N],IOBay[N],IOChassis[N],Slot[N],Cabinet[N],Cell[N]—Configure
the controller in the Integrity server that has the slot path information defined by this sequence
of identifiers.
Using HPSSASCRIPTING 41
ChassisName
Enter the user-defined character string that identifies the controller. You can use any of the following
characters in the string:
a–z, A–Z, 0–9, !, @, #, *, (, ), ,, -, _, +, :, ., /, [space]
You do not need to use quotation marks around the string, but doing so allows the string to begin
with a space character. However, the string cannot end with a space character.
Currently, only shared-storage controllers such as the RA4x00, MSA1000, and Smart Array Cluster
Storage support the ChassisName option. The RA4x00 controller uses a 24-character string, while
other applicable controllers use a 20-character string.
ClearConfigurationWithDataLoss
This command is now deprecated.
The default value for this option is No. Clearing the configuration causes data loss because it
deletes all logical volumes and arrays on the controller. If you clear a configuration, you can write
commands later in the script file to create a new configuration from the liberated drive capacity.
LicenseKey, DeleteLicenseKey
These options enable you to enter a 25-character license key to activate or uninstall some controller
features. Hyphens can be entered, but are not required.
PreferredPathMode
The setting that you select for this option determines how the preferred I/O path to a particular
logical drive is set for a redundant array controller that is in an active/active configuration.
Not all controllers support this feature, and controllers in an active/standby configuration disregard
this option.
• Auto is the default setting for new configurations. In this case, the storage system automatically
selects the I/O path from the redundant controller to the logical drive and dynamically load
balances all paths.
• Manual enables you to assign the logical drive to a specific redundant controller. If you select
this setting, use the PreferredPath command to specify the path.
If you are reconfiguring a controller and do not specify a setting for this option, the existing setting
remains the same.
ReadCache, WriteCache
Enter a number between 0 and 100 to specify the percentage of cache to be allocated to drive
reads or writes. The default value for both options is 50.
The allowable cache ratios depend on the controller model and whether it has battery-backed
write cache, as described in the following table.
A "+" indicates that the specified cache ratio is allowed for that type of controller, while a "–"
indicates that the ratio is not allowed.
Read:write ratio RA4x00 with 16MB RA4x00 with 48MB All other controllers All other controllers
cache cache with battery-backed without
write cache battery-backed write
cache
100:0 + + + +
90:10 + + – –
80:20 + + – –
75:25 – – + –
70:30 + + – –
60:40 + + – –
50:50 + + + –
40:60 – + – –
30:70 – + – –
25:75 – + + –
0:50* + – – –
0:75* – + – –
0:100 – – + –
* The cache ratio percentages do not total 100 in these cases because the additional 16-MB or
48-MB cache modules are not used. Only the battery-backed write cache is used.
RebuildPriority, ExpandPriority
These options have three possible values: Low, Medium, and High.
SSPState
There are two settings for this option: Enable and Disable. If you do not specify a value for the
SSP State, the existing setting remains the same.
NOTE: The SSPState option is valid only for controllers that enable SSP on a controller basis,
such as the MSA1000 or the Smart Array Cluster Storage controllers. RA4x00 controllers support
SSP that is enabled on a logical drive basis, and use the LogicalDriveSSPState option (page 45)
instead.
If you enable SSP, you must also specify an adapter for one or more logical drives by using the
SSPAdaptersWithAccess option (page 47). Otherwise, SSP is automatically disabled.
SurfaceScanDelay
Enter a number between 1 and 30 to specify the duration of the surface scan delay in seconds.
Using HPSSASCRIPTING 43
Array category
The Array category has the following options:
• “Array” (page 44)
• “Drive” (page 44)
• “DriveType” (page 44)
• “OnlineSpare” (page 45)
Array
Enter a letter or pair of letters to identify the array you are creating or reconfiguring, and observe
these additional limitations:
• In Configure mode, HP SSA creates a new array. The value that you specify for the array
option must be the next available letter or pair of letters in the sequence, according to the
number of existing arrays on the controller. AA follows Z, and BA follows AZ.
• In Reconfigure mode, HP SSA can either create a new array or reconfigure an existing array.
In this case, the value that you specify can identify an existing array, or it can correspond to
the next available array letter or pair of letters in the existing configuration.
Drive
You can use this option to add a drive to an existing array (to expand an array) or to build a new
array. If you are expanding an array, each drive that you add must have a capacity no less than
that of the smallest drive already in the array. The added and existing drives in the array must all
be the same type (for example, SAS or SATA).
If the value of the ClearConfigurationWithDataLoss option is Yes, you can use the Drive
option to remove drives from an array. However, the ClearConfigurationWithDataLoss
option is now deprecated.
If you use Auto method mode, HP SSA configures all the available drives on the controller into one
array. If the drives are of different capacities, HP SSA determines the capacity of the smallest drive
and uses the same amount of space on all other available drives.
If you use Custom method mode, choose one of the following methods to specify the drives to be
used in the array. Different arrays on the same controller can use different methods.
• To specify individual drives, use the applicable convention (port:ID, box:bay, or port:box:bay).
• To specify only the number of drives to use (not which specific drive IDs to use), enter that
number as the value for this option. For example, if you enter drive=3, HP SSA uses the
first three available drives to build or expand the array that you define in the remainder of
the script. HP SSA automatically determines which drives are suitable to use.
• To use all available drives, enter an asterisk as the value for this option. An array that is
configured using this method cannot have a spare.
DriveType
The value that you enter for this option specifies the type of drive (SAS, SATA, or parallel SCSI)
that HP SSA must use to build the array.
Custom To specify exactly which drives to use as spares, In Configure action mode: None.
use the applicable convention (port:ID, box:bay, In Reconfigure action mode, HP SSA ignores any
or port:box:bay). value entered for this option and keeps any spares
To specify only the number of spares (not the that are already present in the configuration.
exact IDs), enter that number as the value for this
option. HP SSA automatically selects only those
drives that are suitable for the array.
To specify that the array should not have spares,
enter None.
Auto Yes (indicating one spare) In Configure action mode: Yes (indicating one
No spare).
In Reconfigure action mode, HP SSA ignores any
value entered for this option and keeps any spares
that are already present in the configuration.
ArrayAccelerator
This option specifies whether the array accelerator is enabled or disabled for the specified logical
drive. The default value is Enabled.
LogicalDrive
The value that you enter for this option specifies the ID number of the logical drive that is to be
created or modified. The first logical drive on an array must have an ID of 1 (not 0), and logical
drive numbering must be contiguous.
• In Configure action mode, HP SSA accepts only the ID number of the next possible logical
drive.
• In Reconfigure action mode, HP SSA also accepts the ID number of any existing logical drive.
LogicalDriveSSPState
This option is valid only for controllers that enable SSP on a logical drive basis. Other controllers
that support SSP use the SSPState option (page 43).
Using HPSSASCRIPTING 45
The following defaults apply:
• For new logical drives, the default value is Disabled.
• For existing logical drives, the default value is the current logical drive setting.
ParityGroups
When you create a RAID 50 or RAID 60 configuration, you must also set the number of parity
groups.
You can use any integer value greater than 1 for this setting, with the restriction that the total
number of physical drives in the array must be exactly divisible by the number of parity groups.
The maximum number of parity groups possible for a particular number of physical drives is the
total number of drives divided by the minimum number of drives necessary for that RAID level (three
for RAID 50, four for RAID 60).
PreferredPath
If you select the Manual setting for PreferredPathMode, use the PreferredPath command
to specify the path for I/O to the logical drive on a redundant controller in active/active mode.
The default setting for this option is 1. With this setting, the controller in chassis slot 1 is the preferred
controller for I/O to the logical drive. If you select 2, the controller in chassis slot 2 becomes the
preferred controller for the logical drive.
To determine the chassis slot numbers, use the show command on a controller that supports
redundant controllers.
RAID
The value that you enter for this option specifies the RAID level of the logical drive.
• When the Action mode is Configure, and the Method mode is Auto, HP SSA automatically
selects the highest RAID level that the controller and drive configuration can support except
RAID 50 or RAID 60. To specify RAID 50 or 60 for a controller that supports either of these
RAID levels, use the Custom setting. In this case, you must also specify the number of parity
groups (page 46).
• When the Action mode is Reconfigure, the default value is the existing RAID level for that
logical drive. If you specify a different RAID setting, then HP SSA either ignores the new setting
(when Method mode is Auto), or attempts to migrate the logical drive to the specified RAID
level (when Method mode is Custom).
Sectors
This option specifies the number of sectors that are to comprise each track. Enter 32 to disable
MaxBoot or 63 to enable it.
• For new logical drives, the default setting is 63 if the logical drive is larger than 502 GB.
Otherwise, the default setting is 32.
• For an existing logical drive, the default setting is the existing setting.
Logical drive performance is likely to decrease with MaxBoot enabled.
Size
Enter the capacity that you want the logical drive to have, in megabytes. The default size setting
for new logical drives is MAX. In this case, HP SSA creates a logical drive of the maximum possible
size from the physical drives that you assigned to the array.
In Reconfigure mode, the default setting is the existing size of the logical drive. If you enter a larger
value, HP SSA extends the logical drive to the new size if there is unused drive capacity on the
SSPAdaptersWithAccess
Enter values here to identify the SSP adapters that you want to have access to a logical drive. The
values are processed only if either SSPState or LogicalDriveSSPState is set to Enable. Otherwise,
the values are ignored.
NOTE: Be sure that every HBA in the system has access to the logical drives for which multi-path
will be used.
StripeSize
You can enter a numerical value for this option to specify the size of the data stripes (in kilobytes),
or you can leave this option blank and allow HP SSA to use a default value.
The valid stripe size values depend on the RAID level.
• For RAID 0, RAID 1, or RAID 1+0 arrays, you can enter any of the stripe size values listed in
the sample script.
• For RAID 5 arrays, the maximum stripe size in most cases is 256 KB, but old controller models
are often limited to 64 KB.
• For RAID 6 arrays, the maximum stripe size is either 64 KB or 256 KB, depending on the
controller.
The default stripe size value depends on the action mode.
• In Configure action mode, the default value is determined by the RAID level that you specified
earlier in the script. In some cases, it also depends on the HP SSA version, the controller model,
and the controller firmware version.
◦ For RAID 0, RAID 1, or RAID 1+0, the default value is 128 KB.
◦ For RAID 5, the default value is usually 64 KB, but on some controller models it is 16 KB
or 128 KB.
◦ For RAID 6, the default value is usually 16 KB, but on some controller models it is 64 KB
or 128 KB.
• In Reconfigure action mode, the default value for this option is the stripe size that is already
configured for the logical drive. If you enter a value that is different from the existing stripe
size, HP SSA attempts to migrate the logical drive to the stripe size that you specify. (If you
intend to migrate the logical drive, back up all data before starting the migration procedure.)
HBA category
The HBA category has the following options:
• “ConnectionName” (page 47)
• “HBA_WW_ID” (page 48)
• “HostMode” (page 48)
ConnectionName
This option is a user-defined string used as the connection name for the specified HBA.
Using HPSSASCRIPTING 47
The string can consist of the following:
• A maximum of 16 characters
• Embedded space characters but cannot end with a space character
• Any of the following characters: a–z, A–Z, 0–9, !, @, #, *, (, ), -, _, +, :, ., /, and [space]
HBA_WW_ID
This option specifies which HBA, based on its assigned WWN, is modified by the configuration
changes.
HostMode
This option specifies the HostMode for a selected HBA. Setting the Host Mode optimizes the storage
array for the selected operating system. The available host modes for an HBA are device-specific.
Not all modes are available on all devices. Not all HBAs support a HostMode.
The following operating system options might be available:
• Default
• Microsoft Windows
• OpenVMS
• Tru64
• Linux
• Solaris
• Netware
• HP-UX
1 General error. The HP SSA process cannot be initiated. You might see this
error message if you are not authenticated to use HP SSA or
if HP SSA is already running.
268 Error saving controller. HP SSA cannot save one or more controller configurations.
516 Internal error. An error occurred during the configuration process, but HP
SSA cannot identify the error because there is an internal HP
SSA error.
1052 Array requires an odd number of drives. This error message occurs if you attempt to add an odd
number of drives to an array that has RAID 1 logical drives,
and the controller does not support RAID-level migration.
1053 Cannot remove physical drives from This error message occurs if a script that is running in
existing array. Reconfigure action mode lists fewer physical drives than
already exist in the array. HP SSA interprets this script as a
request to remove physical drives from an existing array, but
satisfying this request causes data loss, so HP SSA prevents
the script from running.
1065-1066 Too many coinciding expansion, migration, HP SSA does not support multiple simultaneous expansions,
or extension operations. migrations, or extensions without saving the configuration
1102 Slot information is not available. You cannot run a script in Input mode on internal controllers
that do not have slot information online. Systems running
Microsoft Windows must have the System Management Driver
loaded.
2819 Invalid Controller. The scripted controller does not match any existing controllers.
2821 No controllers detected. This error applies to Input mode only. If no controllers are
detected in Capture mode, the capture file is empty.
2822 Invalid read cache/write cache ratio. The specified cache ratio is not supported by either the
controller or the current controller configuration.
2824 Invalid expand priority. This error message appears if the expand priority value
specified in the script is not supported. This message also
appears if expansion is not possible because the Expand
Priority feature is then not supported. Expansion might be
temporarily unavailable on a controller that normally supports
expansion if, for example, the cache battery has low charge,
another expansion or migration is already in progress, or the
array has the maximum supported number of physical drives.
2826 Array not specified. The script file has commands that require an array, but no
array is specified.
2827 New array ID does not match the next The scripted array ID is not the next ID in sequence, based
available array ID. on the IDs of the existing arrays. For example, only array A
exists and the script file specifies creation of array C (omitting
array B).
2828 New array ID already exists. This error occurs in Configure mode when the array ID
specified in the script file already exists in the configuration.
In Configure mode, you can create only new arrays.
2829 Cannot create array. The controller has no unassigned physical drives, or it already
has the maximum number of arrays or logical drives.
2830 Cannot expand array. The controller does not support expansion, or the current
controller configuration is not expandable.
Using HPSSASCRIPTING 49
Error code Error message Comment or clarification
2831 Cannot change array spare. This error message appears if you try to change the number
of spares in an array when the configuration does not support
the addition or subtraction of spares.
2832 Invalid physical drive. A specified physical drive is not a valid physical drive, or it
cannot be placed in the array.
2833 Invalid spare. A specified spare is not a valid spare drive, or it cannot be
placed in the array as a spare.
2835 Logical drive not specified. The script file has commands that require a logical drive, but
no logical drive is specified.
2836 New logical drive ID does not match the The script file specifies a logical drive ID that is not the first
next available logical drive ID. unused ID in the sequence. For example, this message
appears if the controller has only logical drive 1 and the
script file specifies creation of logical drive 3 (omitting logical
drive 2). A common cause of this error is that the input file
specifies non-sequential logical drive numbers. In this case,
change the logical drive numbers in the input file so that they
are sequential.
2837 New logical drive ID already exists. This error occurs in Configure mode when the logical drive
ID specified in the script file already exists in the
configuration. In Configure mode, you can create only new
logical drives.
2838 Cannot create logical drive. The array has no free space, or the maximum number of
logical drives has already been reached.
2839 Cannot migrate logical drive RAID. The controller does not support RAID migration, or migration
is not possible with the current controller configuration.
2840 Cannot migrate logical drive stripe size. The controller does not support stripe size migration, or
migration is not possible with the current controller
configuration.
2841 Cannot extend logical drive. The controller does not support extension, or the current
controller configuration cannot be extended. For example,
extension is not possible if the array has no free space.
2842 Invalid RAID. The specified RAID level is invalid or is not possible with the
current configuration.
2843 Invalid size. The specified size is invalid or is not possible with the current
configuration.
2844 Invalid stripe size. The specified stripe size is invalid, or not supported by the
current RAID level, or not possible with the current
configuration.
2845 Invalid sectors. The specified MaxBoot setting is invalid or is not possible
with the current configuration.
2846 Cannot change logical drive sectors. You cannot change the MaxBoot setting on a configured
logical drive because doing so causes data loss.
2847 Invalid array accelerator setting. The specified array accelerator setting is invalid or is not
supported by the current configuration.
2848 Cannot change logical drive array You cannot change the array accelerator setting for the
accelerator setting. current controller configuration.
2851 Invalid RAID Array ID. The scripted RAID Array ID is invalid. Use characters from
the set a–z, A–Z, 0–9, !, @, #, *, (, ), ,, -, _, +, :, ., /, and
[space]. The ID cannot end with a space character or exceed
the maximum number of characters allowed by the controller.
2861 Controller does not support redundancy The controller is not redundant or does not support
settings. redundancy settings.
2864 Invalid preferred path mode. The specified value for the preferred path mode is not valid,
or the controller is not available.
2865 Invalid preferred path. The specified preferred path is not a valid chassis slot for an
available active controller, or the controller is not available.
2869 <text> command expected. The <text> command is missing or in the wrong place in the
script file.
2871 <text> is not a Controller command. The <text> command does not belong in the Controller section
of the script file.
2872 <text> is not an Array command. The <text> command does not belong in the Array section
of the script file.
2873 <text> is not a Logical Drive command. The <text> command does not belong in the Logical Drive
section of the script file.
2874 <text> is not an HBA command. The <text> command does not belong in the HBA section of
the script file.
2876 Invalid physical drive count. The script specifies more drives than are available of the
specified drive type.
2877 No spares available. No drives were found that could be used as spares for the
specified array.
2878 Spare request for RAID 0 is invalid. RAID 0 does not support spares.
2879 Reset and reconfigure combined error. A controller reset with data loss was specified while in
Reconfigure mode.
Using HPSSASCRIPTING 51
Error code Error message Comment or clarification
Using HPLPCFG
You must edit the text file to insert the WWID of the boot volume and the LUN number that the
WWID boots from. The HPLPCFG utility discovers the WWID of the HBA in the server blade and
writes the information in the text file. The text file presents the options in human readable format.
The HPLPCFG utility updates the hardware with the boot volume WWID and boot LUN read from
the text file.
hplpcfg —s filename This argument saves the HBA configuration to the filename.
hplpcfg —l filename This argument loads the HBA configuration to the filename.
BootDeviceLUN[0]=1111 Your input, default LUN, or current value when read from
HBA
Value Meaning
0x10 Invalid value; for enable/disable value is not 0 or 1 (for /l option only)
Using LO100CFG
NOTE: This section applies only to HP ProLiant servers not using the Oxx ROM family.
The LO100CFG utility enables you to configure the Lights Out 100 device that is available on the
HP ProLiant 100 series servers.
Under Linux, LO100CFG uses the OpenIPMI library to communicate with the system firmware.
Using LO100CFG 53
LO100CFG command-line arguments
-i "file.xml" This argument loads and runs the given XML configuration
file.
Value Meaning
102 Field in the XML file has invalid values. Valid fields still
applied.
103 The Lights Out 100 returned a code the application did
not expect. See console output for code returned from the
LO100 processor.
NOTE: Return codes of 100 or higher are returned from the LO100 processor.
Using HPQLAREP
You must edit the text file to insert the WWID of the boot volume and the LUN number that they
will boot from. The hpqlarep utility discovers the WWID of the HBA in the server blade and
writes the information in the text file. The text file presents the options in human readable format.
The hpqlarep utility updates the hardware with the boot volume WWID and boot LUN read from
the text file.
hpqlarep —s filename This argument saves the HBA configuration to the filename.
hpqlarep —l filename This argument loads the HBA configuration to the filename.
Using HPQLAREP 55
HPQLAREP return codes
Value Meaning
Using HPONCFG
HP offers support for the iLO features available on HP ProLiant servers with the HPONCFG utility.
HPONCFG is an online configuration tool used to set up and reconfigure iLO without requiring a
reboot of the server operating system. The utility runs in a command-line mode and must be executed
from an operating system command line.
HPONCFG enables you to initially configure features exposed through the RBSU or iLO. This utility
is not intended for continued administration. CPQLOCFG should be used for ongoing administration
of user rights and network functionality on the server.
Before using HPONCFG, the iLO Management Interface Driver must be loaded on the server.
HPONCFG displays a warning if the driver is not installed.
For more information, see the HP iLO website at http://www.hp.com/go/ilo.
Also, see the HP iLO 4 Scripting and Command Line Guide (for Gen8 servers) on the HP website
at http://www.hp.com/go/proliantgen8/docs or the HP ProLiant Integrated Lights-Out 3 v1.20
Scripting and Command Line Guide (for G7 servers) on the HP website at www.hp.com/go/ilo.
IMPORTANT: Because the -w argument does not capture certain types of information, such as
the administrator password, data files created with HPONCFG using the -w argument cannot then
be used as input files for HPONCFG, unless they are modified first.
-get_hostinfo This argument returns the host server name and serial
number.
NOTE: For a complete list of all command-line parameters, execute the /h utility.
Using HPONCFG 57
HPONCFG return codes
Value Meaning
If the script itself fails, errors are reported in the log file created by HPONCFG.
Using HPONCFG 59
<F8_PROMPT_ENABLED VALUE="Y"/>
<REMOTE_CONSOLE_PORT_STATUS VALUE="3"/>
<REMOTE_CONSOLE_ENCRYPTION VALUE="N"/>
<PREFER_TERMINAL_SERVICES VALUE="N"/>
<HTTPS_PORT VALUE="443"/>
<HTTP_PORT VALUE="80"/>
<REMOTE_CONSOLE_PORT VALUE="23"/>
<TERMINAL_SERVICES_PORT VALUE="3389"/>
<VIRTUAL_MEDIA_PORT VALUE="17988"/>
<MIN_PASSWORD VALUE="4"/>
</GET_GLOBAL_SETTINGS>
Setting a configuration
A specific configuration can be sent to the iLO by using the command format:
HPONCFG /f add_user.xml /l log.txt
In this example, the input file has the following contents:
<!-- Add user with minimal privileges to test default setting of
assigned privileges to 'N' -->
<RIBCL version="1.2">
<LOGIN USER_LOGIN="x" PASSWORD="x">
<USER_INFO MODE="write">
<ADD_USER USER_NAME="Landy9" USER_LOGIN="mandy9"
PASSWORD="floppyshoes">
<RESET_SERVER_PRIV value="Y" />
<ADMIN_PRIV value="Y" />
</ADD_USER>
</USER_INFO>
</LOGIN>
</RIBCL>
The specified user will be added to the device.
Data loss in Toolkit Improper use of the Toolkit utilities and modification of the
CONREP data files can result in loss of critical data.
Because of the potential data-loss risk, only experienced
individuals should use the Toolkit utilities. Before using the
Toolkit, all necessary precautions must be taken to ensure
that mission-critical systems remain online if a failure occurs.
Setting up a PXE boot environment A basic understanding of DHCP, PXE, and TFTP is required
to perform the procedure. The examples in this guide might
not be specific to your operating system environment. For
more information about your particular environment, see
the Linux system administrator's guide
Configuring options using Toolkit utilities Not all options can be configured using Toolkit utilities.
Some options must be configured manually or with other
configuration utilities, which are available online, before
they can be used with the Toolkit. For more information on
configuration, see the option documentation
Input files for HPONCFG Because the -w argument does not capture certain types
of information, such as the administrator password, data
files created with HPONCFG using the -w argument cannot
be used as input files for HPONCFG, unless they are
modified first.
CONREP version compatibility The file format for the DOS version of CONREP and the
current version of CONREP are not compatible.
Booting from a USB drive key Booting from a USB drive key is supported only on certain
HP ProLiant servers. For more information, see the HP SPP
website at http://www.hp.com/go/spp.
CONREP data file editor Only the fields that are present in the CONREP file being
edited will be shown. The CONREP data file editor cannot
add or remove fields. Some fields, such as the server OS
selection, cannot be edited.
SETBOOTORDER changes Any changes you make to the SETBOOTORDER will take
effect at the next reboot.
Troubleshooting table 61
6 Support and other resources
Information to collect before contacting HP
Be sure to have the following information available before you contact HP:
• Software product name
• Hardware product model number
• Operating system type and version
• Applicable error message
• Third-party hardware or software
• Technical support registration number (if applicable)
How to contact HP
Use the following methods to contact HP technical support:
• See the Contact HP worldwide website:
http://www.hp.com/go/assistance
• Use the Contact hp link on the HP Support Center website:
http://www.hp.com/go/hpsc
• In the United States, call +1 800 334 5144 to contact HP by telephone. This service is available
24 hours a day, 7 days a week. For continuous quality improvement, conversations might be
recorded or monitored.
Subscription service
HP recommends that you register your product at the Subscriber's Choice website at http://
www.hp.com/country/us/en/contact_us.html. After registering, you will receive email notification
of product enhancements, new driver versions, firmware updates, and other product resources.
Related information
For support software and drivers, see the HP software and drivers website at http://www.hp.com/
go/hpsc. HP also recommends installing the latest version of the HP SPP or using the Linux Software
Delivery Repository (SDR). To obtain the most current SPP, see the SPP website at http://
www.hp.com/go/spp. To obtain drivers from the SDR, see the Linux website at http://
downloads.linux.hp.com/SDR/.
For information on the latest Scripting Toolkit, see the additional documentation found on the
Scripting Toolkit website at http://www.hp.com/go/ProLiantSTK.
For information on the previous SmartStart Scripting Toolkit, which was used for HP ProLiant G7
and earlier servers and BladeSystems, see the documentation found on the HP website at http://
www.hp.com/go/foundation.
For more information on unattended installation, see the following resources:
• Operating system documentation
• Windows Server Technical Reference at http://technet.microsoft.com/en-us/library/
bb625087.aspx
Typographic conventions
Table 1 Document conventions
Convention Element
Blue text: Table 1 (page 63) Cross-reference links and e-mail addresses
CAUTION: Indicates that failure to follow directions could result in damage to equipment or data.
65
Acronyms and abbreviations
ACU Array Configuration Utility
BIOS Basic Input/Output System
CLI Command Linux Interface
CONREP Configuration Replication utility
CPQLOCFG Lights-Out Configuration Utility
CPQSSAXE Smart Storage Administrator XE
DHCP Dynamic Host Configuration Protocol
DOS disk operating system
FAT file allocation table
GUI graphical user interface
HBA host bus adapter
HPDISCOVERY HP Discovery Utility
HPONCFG HP Lights-Out Online Configuration utility
HPQLAREP HP QLogic FC HBA BIOS configuration utility
HPRCU HP ROM Configuration Utility
HWQUERY Hardware Query Utility
I/O input/output
IFHW IF Hardware Utility
iLO Integrated Lights-Out
IP Internet Protocol
IPL initial program load
IPMI Intelligent Platform Management Interface
ISO International Organization for Standardization
LO100CFG Lights-Out (100 series) Online Configuration utility
LUN logical unit number
MBR master boot record
NFS network file system
NIC network interface controller
NVRAM non-volatile memory
OS operating system
PCI peripheral component interface
PXE Preboot Execution Environment
RAID redundant array of inexpensive (or independent) disks
RAM random access memory
RBSU ROM-Based Setup Utility
RIBCL Remote Insight Board Command Language
ROM read-only memory
SAS serial attached SCSI
SATA serial ATA
SCSI small computer system interface
SPP HP Service Pack for ProLiant
SSA Smart Storage Administrator
67
Index
HP Insight Online, 64
A HP SSA script file, 38
acronyms and abbreviations, 66 HPDISCOVERY, 27
anaconda-ks.cfg arguments, 27
sample file, 19 command-line examples, 27
command-line syntax, 27
B return codes, 27
BOOTEXTRACT, 26 HPLPCFG, 52
arguments, 26 arguments, 52
command-line syntax, 26 command-line examples, 53
return codes, 26 command-line syntax, 52
return codes, 52
C HPONCFG, 57
clearing a configuration, 42 arguments, 57
configuration command file, 58
capturing, 37 entire configuration, 58
hardware, 15 setting a specific configuration, 60
target server, 11 specific configuration, 59
configurations command-line examples, 60
capturing, 9 command-line syntax, 57
CONREP, 30 return codes, 58
command file contents HPQLAREP, 55
HP ProLiant 300/500/700 series, 34 arguments, 55
command-line arguments, 31 command-line examples, 56
command-line syntax, 31 command-line syntax, 55
data file sample return codes, 56
HP ProLiant 100 series, 33 HPRCU, 35
Load from Data file example arguments, 35
HP ProLiant 100 series, 33 command-line syntax, 35
return codes, 32 return codes, 36
screen output, 32 sample XML format, 36
Store to Data file example HPSSASCRIPTING, 36
HP ProLiant 100 series, 32 configuration, 37
conventions HP SSA script file, 38
document, 63 HP SSA scripting errors, 48
input script, 37
D sample input script, 38
deployment overview, 8 script file options, 39
deployment procedure, 8 array category, 44
DHCP server setup control category, 40
PXE boot, 14 controller category, 41
document HBA category, 47
conventions, 63 logical drive category, 45
documentation HWQUERY, 29
providing feedback on, 65 arguments, 29
command-line examples, 30
E command-line syntax, 29
expression examples, 29 return codes, 30
expression operators and terms, 28
I
F IFHW, 28
features, 7 arguments, 28
command-line examples, 28
H command-line syntax, 28
hardware return codes, 28
configuration, 15 iLO, 57
68 Index
install_win.sh arguments, 24
sample script, 19 command-line examples, 24
installation command-line syntax, 24
operating system, 11 return codes, 24
unattended operating system, 15 STATEMGR, 25
ISO image arguments, 25
arguments, 10 command-line examples, 25
command-line syntax, 25
L return codes, 25
LO100CFG, 53 support, 62
arguments, 54 syntax conventions, 22
command file, 54 SYSLINUX, 12
command-line syntax, 53
return codes, 54 T
logical drive capacity extension, 46 target server
configuring, 11
M technical support, 62
MaxBoot setting, 46 TFTP directory share
mkisofs command, 10 PXE boot, 14
TFTP server setup
N PXE boot, 13
native package, 22 troubleshooting, 61
network share typographic conventions, 63
creating, 9
NFS Server Configuration Tool, 9 U
USB drive key boot, 15
O utilities
online help, 22 Scripting Toolkit, 22
operating system
installation, 11 V
unattended installation, 15 video performance optimization, 43
operators and terms, 28
W
P websites, 62
PXE boot, 12
illustration, 12
R
RBSURESET, 25
arguments, 26
command-line syntax, 26
return codes, 26
REBOOT, 23
arguments, 23
command-line examples, 24
command-line syntax, 23
return codes, 23
Red Hat Linux anaconda-ks.cfg
sample file, 19
requirements, 7
S
sample file
anaconda-ks.cfg, 19
Red Hat Linux anaconda-ks.cfg, 19
sample script
install_win.sh, 19
Scripting Toolkit utilities, 22, 23
SETBOOTORDER, 24
69