HP Management Command Line Interface hpasmcli provides several useful and easily scriptable commands for HP ProLiant Servers running Linux operating system.

Installation process

Configure The Linux Management Component Pack repository.

$ echo "deb http://downloads.linux.hpe.com/SDR/downloads/MCP/Debian/ wheezy/current non-free" | sudo tee /etc/apt/sources.list.d/hp.list

Install the HPE public GPG key.

$ wget -qO- http://downloads.linux.hpe.com/SDR/downloads/MCP/GPG-KEY-mcp | sudo apt-key add -

Alternatively you can download official bootstrap shell script to setup access to the HP Software Delivery Repository.

$ wget http://downloads.linux.hpe.com/SDR/add_repo.sh
--2017-02-02 19:02:06--  http://downloads.linux.hpe.com/SDR/add_repo.sh
Resolving downloads.linux.hpe.com (downloads.linux.hpe.com)... 16.254.64.52
Connecting to downloads.linux.hpe.com (downloads.linux.hpe.com)|16.254.64.52|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 22183 (22K) [application/x-sh]
Saving to: `add_repo.sh'
100%[=================================================>] 22,183      --.-K/s   in 0.1s
2017-02-02 19:02:06 (167 KB/s) - `add_repo.sh' saved [22183/22183]
$ chmod +x add_repo.sh
$ sudo ./add_repo.sh mcp
note : You must read and accept the License Agreement to continue.
Press enter to display it ...
 END USER LICENSE AGREEMENT
 PLEASE READ CAREFULLY: THE USE OF THE SOFTWARE IS SUBJECT TO THE TERMS AND CONDITIONS THAT FOLLOW (_AGREEMENT_), UNLESS THE SOFTWARE IS SUBJECT TO A SEPARATE LICENSE AGREEMENT BETWEEN YOU AND HP OR ITS SUPPLIERS.  BY DOWNLOADING, INSTALLING, COPYING, ACCESSING, OR USING THE SOFTWARE, OR BY CHOOSING THE _I ACCEPT_ OPTION LOCATED ON OR ADJACENT TO THE SCREEN WHERE THIS AGREEMENT MAY BE DISPLAYED, YOU AGREE TO THE TERMS OF THIS AGREEMENT, ANY APPLICABLE WARRANTY STATEMENT AND THE TERMS AND CONDITIONS CONTAINED IN THE _ANCILLARY SOFTWARE_  (as defined below). IF YOU ARE ACCEPTING THESE TERMS ON BEHALF OF ANOTHER PERSON OR A COMPANY OR OTHER LEGAL ENTITY, YOU REPRESENT AND WARRANT THAT YOU HAVE FULL AUTHORITY TO BIND THAT PERSON, COMPANY, OR LEGAL ENTITY TO THESE TERMS.  IF YOU DO NOT AGREE TO THESE TERMS, DO NOT DOWNLOAD, INSTALL, COPY, ACCESS, OR USE THE SOFTWARE, AND PROMPTLY RETURN THE SOFTWARE WITH PROOF OF PURCHASE TO THE PARTY FROM WHOM YOU ACQUIRED IT AND OBTAIN A REFUND OF THE AMOUNT YOU PAID, IF ANY.  IF YOU DOWNLOADED THE SOFTWARE, CONTACT THE PARTY FROM WHOM YOU ACQUIRED IT.
 QUANTITY OF DEVICES:
 1.   GENERAL TERMS
a.     You and Your refer either to an individual person or to a single legal entity.
b.     HP means Hewlett-Packard Company or one of its subsidiaries.
c.     HP Branded means Software products bearing a trademark or service mark of Hewlett-Packard Company or any Hewlett-Packard Company Affiliate, and embedded HP selected third party Software that is not offered under a third party license agreement.
d.     Software means machine-readable instructions and data (and copies thereof) including middleware and related updates and upgrades You may be separately authorized to receive, licensed materials, user documentation, user manuals, and operating procedures. _Ancillary Software_ means all or any portion of Software provided under public, open source, or third party license terms.
e.     Specification means technical information about Software products published in HP product manuals, user documentation, and technical data sheets in effect on the date HP delivers Software products to You.
f.     Transaction Document(s) means an accepted customer order (excluding pre-printed terms) and in relation to that order, valid HP quotations, license to use certificates or invoices.
2.   LICENSE TERMS AND RESTRICTIONS
a.     Subject to the terms and conditions of this Agreement and the payment of any applicable license fee, HP grants You a non-exclusive, non-transferable license to Use (as defined below) in object code form one copy of the Software on one device at a time for Your i
nternal business purposes, unless otherwise indicated above or in applicable Transaction Document(s).   _Use_ means to install, store, load, execute and display the Software in accordance with the Specifications.  Your Use of the Software is subject to these license terms and to the other restrictions specified by HP in any other tangible or electronic documentation delivered or otherwise made available to You with or at the time of purchase of the Software, including license terms, warranty statements, Specifications, and _readme_
or other informational files included in the Software itself.  Such restrictions are hereby incorporated in this Agreement by reference.  Some Software may require license keys or contain other technical protection measures. You acknowledge that HP may monitor your com
pliance with Use restrictions remotely or otherwise.  If HP makes a license management program available which records and reports license usage information, You agree to appropriately install, configure and execute such license management program beginning no later than one hundred and eighty (180) days from the date it is made available to You and continuing for the period that the Software is Used.
b.     This Agreement confers no title or ownership and is not a sale of any rights in the Software. Third-party suppliers are intended beneficiaries under this Agreement and independently may protect their rights in the Software in the event of any infringement.  All rights not expressly granted to You are reserved solely to HP or its suppliers.  Nothing herein should be construed as granting You, by implication, estoppel or otherwise, a license relating to Software other than as expressly stated above in this section 2.
c.     Unless otherwise permitted by HP, You (a) may only make copies or adaptations of the Software for archival purposes or when copying or adaptation is an essential step in the authorized Use of the Software on a backup device, provided that copies and adaptations are used in no other manner and provided further that the Use on the backup device is discontinued when the original or replacement device becomes operable, and (b) may not copy the Software onto or otherwise Use or make it available on, to, or through any public or external distributed network.
d.     To Use Software identified as an update or upgrade, You must first be licensed for the original Software identified by HP as eligible for the update or upgrade. If the update or upgrade is intended to substantially replace the original Software, after updating or upgrading, You may no longer Use the original Software that formed the basis for Your update or upgrade eligibility unless otherwise provided by HP in writing. Nothing in this Agreement grants You any right to purchase or receive Software updates, upgrades, or support, and HP is under no obligation to make such support available to you. Updates, upgrades, enhancements, or other Support may only be available under separate HP support agreements.  You may contact HP to learn more about any support offerings HP may make available.  HP reserves the right to require additional licenses and fees for Software upgrades or other enhancements, or for Use of the Software on upgraded devices.
e.     You must reproduce all copyright notices that appear in or on the Software (including documentation) on all permitted copies or adaptations. Copies of documentation are limited to internal use.
f.      Notwithstanding anything to the contrary herein, if the Transaction Document(s) identifies that the Software may be utilized on another Designated System(s) (as defined below), Your license to Use the Software may be transferred to another Designated System(s).  A _Designated System_ means a computer system owned, controlled, or operated by or solely on behalf of You and may be further identified by HP by the combination of a unique number and a specific system type.  Such license will terminate in the event of a change in either the system number or system type, an unauthorized relocation, or if the Designated System ceases to be within Your possession or control.
g.     Operating system Software may only be Used when operating the associated hardware in configurations as approved, sold, or subsequently upgraded by HP or an HP authorized reseller.
h.     Software is not specifically designed, manufactured, or intended for use as parts, components, or assemblies for the planning, construction, maintenance, or direct operation of a nuclear facility. You are solely liable if Software is Used for these applications and will indemnify and hold HP harmless from all loss, damage, expense, or liability in connection with such Use.
i      You will not modify, reverse engineer, disassemble, decrypt, decompile, or make derivative works of the Software. Where You have other rights mandated under statute, You will provide HP with reasonably detailed information regarding any intended modifications, reverse engineering, disassembly, decryption, or decompilation and the purposes therefore.
j.      Extending the Use of Software to any person or entity other than You as a function of providing services, (i.e.; making the Software   available through a commercial   timesharing or service bureau) must be authorized in writing by HP prior to such Use and may require additional licenses and fees.  You may not distribute, resell, or sublicense the Software.
 k.     Notwithstanding anything in this Agreement to the contrary, all or any portion of the Software which constitutes Ancillary Software is licensed to You subject to the terms and conditions of the Software license agreement accompanying such  Ancillary Software, whether in the form of a separate agreement, shrink wrap license or electronic license terms accepted at time of download.  Use of the Ancillary Software by You shall be governed entirely by the terms and conditions of such license and, with respect to HP, by the limitations and disclaimers of sections 3 and 5 hereof. HP has identified any Ancillary Software by either noting the Ancillary Software provider's ownership within each Ancillary Software program file and/or by providing information in the "ancillary.txt_ or _readme_ file that is provided as part of the installation of the Software.  The Ancillary Software licenses are also set forth in the "ancillary.txt" or _readme_ file.  By accepting the terms and conditions of this Agreement, You are also accepting the terms and conditions of each Ancillary Software license in the ancillary.txt or _readme_ file.  If the Software includes Ancillary Software licensed under the GNU General Public License and/or under the GNU Lesser General Pubic License ("GPL Software"), a complete machine-readable copy of the GPL Software Source Code ("GPL Source Code") is either:  (i) included with the Software that is delivered to You; or (ii) upon your written request, HP will provide to You, for a fee covering the cost of distribution, a complete machine-readable copy of the GPL Source Code, by mail, or (iii) if You obtained the Software by downloading it from a HP website and neither of the preceding options are available, you may download the GPL Source Code from the same website.  Information about how to make a written request for GPL Source Code may be found in the ancillary.txt file or, if an address is not listed in that file, at the following website: www.hp.com.
3.   WARRANTY
Do you accept? (yes/no) yes
info : Repo added to /etc/apt/sources.list.d/HP-mcp.list.

Update package index files.

$ sudo apt-get update

Install hp-health package.

$ sudo apt-get install hp-health

Usage

Use hpasmcli command to start HP Management Command Line Interface.

$ sudo hpasmcli

Display basic help.

hpasmcli> help
CLEAR  DISABLE  ENABLE  EXIT  HELP  NOTE  QUIT  REPAIR  SET  SHOW
hpasmcli> help show fans
USAGE: SHOW FANS: Shows info on installed fans.

Exit HP Management Command Line Interface.

hpasmcli> exit
hpasmcli> quit

Basic system information

Display an set server name.

hpasmcli> show name
Server name is: Not Set
hpasmcli> set name server09

Show server information.

hpasmcli> show server
System        : ProLiant DL380p Gen8
Serial No.    : CZ3420DT1T
ROM version   : P70 03/01/2013
iLo present   : Yes
Embedded NICs : 4
	NIC1 MAC: d8:9d:67:34:11:a8
	NIC2 MAC: d8:9d:67:34:11:a9
	NIC3 MAC: d8:9d:67:34:11:aa
	NIC4 MAC: d8:9d:67:34:11:ab
Processor: 0
	Name         : Intel Xeon
	Stepping     : 7
	Speed        : 2000 MHz
	Bus          : 100 MHz
	Core         : 6
	Thread       : 12
	Socket       : 1
	Level1 Cache : 192 KBytes
	Level2 Cache : 1536 KBytes
	Level3 Cache : 15360 KBytes
	Status       : Ok
Processor: 1
	Name         : Intel Xeon
	Stepping     : 7
	Speed        : 2000 MHz
	Bus          : 100 MHz
	Core         : 6
	Thread       : 12
	Socket       : 2
	Level1 Cache : 192 KBytes
	Level2 Cache : 1536 KBytes
	Level3 Cache : 15360 KBytes
	Status       : Ok
Processor total  : 2
Memory installed : 65536 MBytes
ECC supported    : Yes

Display UID LED status and turn it on or off.

hpasmcli> show uid
UID is currently off.
hpasmcli> set uid on
hpasmcli> set uid off

Hardware information

Show current temperatures.

hpasmcli> show temp
Sensor   Location              Temp       Threshold
------   --------              ----       ---------
#1        AMBIENT              23C/73F    50C/122F
#2        CPU#1                40C/104F   70C/158F
#3        CPU#2                40C/104F   70C/158F
#4        MEMORY_BD             -         87C/188F
#5        MEMORY_BD            35C/95F    87C/188F
#6        MEMORY_BD            32C/89F    87C/188F
#7        MEMORY_BD             -         87C/188F
#8        MEMORY_BD             -         87C/188F
#9        MEMORY_BD            38C/100F   87C/188F
#10       MEMORY_BD            34C/93F    87C/188F
#11       MEMORY_BD             -         87C/188F
#12       SYSTEM_BD            35C/95F    60C/140F
#13       SYSTEM_BD            48C/118F   105C/221F
#14       POWER_SUPPLY_BAY     37C/98F     -
#15       POWER_SUPPLY_BAY      -          -
#16       POWER_SUPPLY_BAY     37C/98F    75C/167F
#17       SYSTEM_BD            43C/109F   115C/239F
#18       SYSTEM_BD            46C/114F   115C/239F
#19       SYSTEM_BD            45C/113F   115C/239F
#20       SYSTEM_BD            41C/105F   115C/239F
#21       SYSTEM_BD            43C/109F   115C/239F
#22       SYSTEM_BD            46C/114F   115C/239F
#23       SYSTEM_BD            37C/98F    90C/194F
#24       SYSTEM_BD            39C/102F   90C/194F
#25       SYSTEM_BD            74C/165F   100C/212F
#26       SYSTEM_BD            40C/104F   90C/194F
#27       I/O_ZONE              -         100C/212F
#28       I/O_ZONE              -         100C/212F
#29       I/O_ZONE              -         100C/212F
#30       I/O_ZONE              -         100C/212F
#31       I/O_ZONE              -         100C/212F
#32       I/O_ZONE              -         100C/212F
#33       I/O_ZONE              -         100C/212F
#34       I/O_ZONE             34C/93F    70C/158F
#35       I/O_ZONE             35C/95F    70C/158F
#36       I/O_ZONE             36C/96F    70C/158F
#37       I/O_ZONE              -         70C/158F
#38       I/O_ZONE              -         70C/158F
#39       I/O_ZONE              -         70C/158F
#40       I/O_ZONE             38C/100F   75C/167F
#41       I/O_ZONE              -         75C/167F
#42       SYSTEM_BD            35C/95F    95C/203F
#43       SYSTEM_BD            46C/114F   90C/194F
#44       SYSTEM_BD            37C/98F    80C/176F
#45       SYSTEM_BD            30C/86F    65C/149F
#46       SYSTEM_BD            40C/104F   75C/167F
#47       SYSTEM_BD            38C/100F   75C/167F
#48       SYSTEM_BD            39C/102F   75C/167F
#49       CHASSIS_ZONE         37C/98F    75C/167F
#50       CHASSIS_ZONE         39C/102F   75C/167F

Show current status of the installed fans.

hpasmcli> show fans
Fan  Location        Present Speed  of max  Redundant  Partner  Hot-pluggable
---  --------        ------- -----  ------  ---------  -------  -------------
#1   SYSTEM          Yes     NORMAL  13%     Yes        0        Yes
#2   SYSTEM          Yes     NORMAL  13%     Yes        0        Yes
#3   SYSTEM          Yes     NORMAL  13%     Yes        0        Yes
#4   SYSTEM          Yes     NORMAL  21%     Yes        0        Yes
#5   SYSTEM          Yes     NORMAL  35%     Yes        0        Yes
#6   SYSTEM          Yes     NORMAL  35%     Yes        0        Yes

Show power supply status.

hpasmcli> show powersupply
Power supply #1
	Present  : Yes
	Redundant: No
	Condition: Ok
	Hotplug  : Supported
	Power    : 115 Watts
Power supply #2
	Power Supply not present

Show memory configuration.

hpasmcli> show dimm
DIMM Configuration
------------------
Processor #:                  1
Module #:                     4
Present:                      Yes
Form Factor:                  9h
Memory Type:                  DDR3(18h)
Size:                         16384 MB
Speed:                        1333 MHz
Supports Lock Step:           No
Configured for Lock Step:     No
Status:                       Ok
Processor #:                  1
Module #:                     9
Present:                      Yes
Form Factor:                  9h
Memory Type:                  DDR3(18h)
Size:                         16384 MB
Speed:                        1333 MHz
Supports Lock Step:           No
Configured for Lock Step:     No
Status:                       Ok
Processor #:                  2
Module #:                     4
Present:                      Yes
Form Factor:                  9h
Memory Type:                  DDR3(18h)
Size:                         16384 MB
Speed:                        1333 MHz
Supports Lock Step:           No
Configured for Lock Step:     No
Status:                       Ok
Processor #:                  2
Module #:                     9
Present:                      Yes
Form Factor:                  9h
Memory Type:                  DDR3(18h)
Size:                         16384 MB
Speed:                        1333 MHz
Supports Lock Step:           No
Configured for Lock Step:     No
Status:                       Ok

Show memory configuration including SPD BYTES encoded information about each memory module.

hpasmcli> show dimm spd
DIMM Configuration
------------------
Processor #:                  1
Module #:                     4
Present:                      Yes
Form Factor:                  9h
Memory Type:                  DDR3(18h)
Size:                         16384 MB
Speed:                        1333 MHz
Supports Lock Step:           No
Configured for Lock Step:     No
Status:                       Ok
 SPD BYTES:
 _________
00: 92 13 0b 01 04 22 00 08 0b 11 01 08 0c 00 3c 00
10: 69 78 69 30 69 11 20 89 20 08 3c 3c 00 f0 83 01
20: 80 00 00 00 00 00 00 00 00 84 00 00 00 00 00 00
30: 00 00 00 00 00 00 00 00 00 00 00 00 0f 11 44 09
40: 00 04 b3 31 00 00 50 55 00 00 00 00 00 00 00 00
50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
70: 00 00 00 00 00 01 98 04 16 47 ae 2d 51 5b 1f 4d
80: 39 39 36 35 35 31 36 2d 34 37 38 2e 41 30 30 4c
90: 46 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 81
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 24 0e
c0: 11 03 ff ff ff ff ff ff ff ff ff ff ff ff ff ff
d0: ff ff ff 00 00 00 00 ff ff ff 00 00 00 00 ff ff
e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
f0: 00 00 00 00 ff ff ff ff ff ff ff ff ff ff 00 00
Processor #:                  1
Module #:                     9
Present:                      Yes
Form Factor:                  9h
Memory Type:                  DDR3(18h)
Size:                         16384 MB
Speed:                        1333 MHz
Supports Lock Step:           No
Configured for Lock Step:     No
Status:                       Ok
 SPD BYTES:
 _________
00: 92 13 0b 01 04 22 00 08 0b 11 01 08 0c 00 3c 00
10: 69 78 69 30 69 11 20 89 20 08 3c 3c 00 f0 83 01
20: 80 00 00 00 00 00 00 00 00 84 00 00 00 00 00 00
30: 00 00 00 00 00 00 00 00 00 00 00 00 0f 11 44 09
40: 00 04 b3 31 00 00 50 55 00 00 00 00 00 00 00 00
50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
70: 00 00 00 00 00 01 98 04 16 47 af 2d 4a 5b 1f 4d
80: 39 39 36 35 35 31 36 2d 34 37 38 2e 41 30 30 4c
90: 46 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 81
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 24 0e
c0: 11 03 ff ff ff ff ff ff ff ff ff ff ff ff ff ff
d0: ff ff ff 00 00 00 00 ff ff ff 00 00 00 00 ff ff
e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
f0: 00 00 00 00 ff ff ff ff ff ff ff ff ff ff 00 00
Processor #:                  2
Module #:                     4
Present:                      Yes
Form Factor:                  9h
Memory Type:                  DDR3(18h)
Size:                         16384 MB
Speed:                        1333 MHz
Supports Lock Step:           No
Configured for Lock Step:     No
Status:                       Ok
 SPD BYTES:
 _________
00: 92 13 0b 01 04 22 00 08 0b 11 01 08 0c 00 3c 00
10: 69 78 69 30 69 11 20 89 20 08 3c 3c 00 f0 83 01
20: 80 00 00 00 00 00 00 00 00 84 00 00 00 00 00 00
30: 00 00 00 00 00 00 00 00 00 00 00 00 0f 11 44 09
40: 00 04 b3 31 00 00 50 55 00 00 00 00 00 00 00 00
50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d0: ff ff ff 00 00 00 00 ff ff ff 00 00 00 00 ff ff
e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
f0: 00 00 00 00 ff ff ff ff ff ff ff ff ff ff 00 00
Processor #:                  2
Module #:                     9
Present:                      Yes
Form Factor:                  9h
Memory Type:                  DDR3(18h)
Size:                         16384 MB
Speed:                        1333 MHz
Supports Lock Step:           No
Configured for Lock Step:     No
Status:                       Ok
 SPD BYTES:
 _________
00: 92 13 0b 01 04 22 00 08 0b 11 01 08 0c 00 3c 00
10: 69 78 69 30 69 11 20 89 20 08 3c 3c 00 f0 83 01
20: 80 00 00 00 00 00 00 00 00 84 00 00 00 00 00 00
30: 00 00 00 00 00 00 00 00 00 00 00 00 0f 11 44 09
40: 00 04 b3 31 00 00 50 55 00 00 00 00 00 00 00 00
50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
70: 00 00 00 00 00 01 98 04 16 47 ad 2d 50 5b 1f 4d
80: 39 39 36 35 35 31 36 2d 34 37 38 2e 41 30 30 4c
90: 46 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 81
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 24 0e
c0: 11 03 ff ff ff ff ff ff ff ff ff ff ff ff ff ff
d0: ff ff ff 00 00 00 00 ff ff ff 00 00 00 00 ff ff
e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
f0: 00 00 00 00 ff ff ff ff ff ff ff ff ff ff 00 00

Display Trusted-Platform-Module status.

hpasmcli> show tpm
Trusted-Platform-Module is absent.

Display PXE status and enable or disable it on specified network interface card.

hpasmcli> show pxe
PXE boot status (4 Embedded NICs):
NIC1: PXE enabled
NIC2: PXE disabled
NIC3: PXE disabled
NIC4: PXE disabled
hpasmcli> enable pxe nic1
hpasmcli> disable pxe nic2

Display processor hyper-threading status and enable or disable it.

hpasmcli> show ht
Processor hyper-threading is currently enabled.
hpasmcli> enable ht
hpasmcli> disable ht

Display wake-on-lan status and enable or disable it.

hpasmcli> show wol
Wake-On-Lan is currently enabled.
hpasmcli> enable wol
hpasmcli> disable wol

Display automatic server recovery status, set timeout and enable or disable it.

hpasmcli> show asr
ASR timeout is 10 minutes.
ASR is currently enabled.
hpasmcli> set asr 10
hpasmcli> enable asr
hpasmcli> disable asr

Display and set F1 prompt behavior during boot process to enabled (enable prompt), delayed (enable prompt, timeout and continue boot if no input is provided), disabled (disable prompt).

hpasmcli> show f1
The POST F1 prompt is currently delayed.
hpasmcli> set f1 enabled
hpasmcli> set f1 delayed
hpasmcli> set f1 disabled

Display first boot device, boot order and set it once for next boot or permanently set first device.
Possible values are HDD, CDROM, PXE and USBKEY.

hpasmcli> show boot
First boot device is: PXE.
One time boot device is: Not set.
hpasmcli> show ipl
IPL (Standard Boot Order)
-------------------------
#0	PXE
#1	CDROM
#2	Floppy
#3	USBKEY
#4	HDD
hpasmcli> set boot once USBKEY
hpasmcli> set boot first PXE

Display network interface card port mapping information.

hpasmcli> show portmap
WARNING: No rack information available from SMBIOS system data. This is probably NOT a blade system.

Integrated Management Log

Display integrated management log.

hpasmcli> show iml
Event: 21 Added: 12/27/2016 17:58
INFO: Maintenance Note - IML Cleared (iLO 4 user:admin).
Event: 22 Added: 12/27/2016 18:08
CRITICAL: Power Subsystem - System Power Supply: Input Power Loss or Unplugged Power Cord, Verify Power Supply Input (Power Supply 1).

Add a note to the integrated management log.

hpasmcli> note iml Performed system overview
Event: 30 Added: 01/15/2017 17:38 INFO: Maintenance Note - Maintenance note: Performed system overview.

Mark integrated management log entry as repaired (its status will change to REPAIRED).

hpasmcli> repair iml 25

Clear integrated management log.

hpasmcli> clear iml
IML Log successfully cleared.
Event: 0 Added: 01/15/2017 17:57 INFO: Maintenance Note - Maintenance note: IML cleared through hpasmcli.

Serial ports

Display and set BIOS console redirection settings (9600, 19200, 57600, 115200, DISABLED).

hpasmcli> show serial bios
BIOS console redirection port is currently set to COM1/9600.
hpasmcli> set serial bios COM1 9600

Display and set embedded serial port settings.

hpasmcli> show serial embedded
Embedded serial port A: COM1
Embedded serial port B: Disabled
hpasmcli> set serial bios embedded porta com1
hpasmcli> set serial bios embedded portb disabled

Display and set virtual serial port settings.

hpasmcli> show serial virtual
The virtual serial port is currently COM2.
hpasmcli> set serial virtual com2

Sample scripts

Display CPU temperatures.

$ sudo hpasmcli -s "show temp" | grep CPU
#2        CPU#1                40C/104F   70C/158F
#3        CPU#2                40C/104F   70C/158F

Display fans information.

$ sudo hpasmcli -s "show fan"
Fan  Location        Present Speed  of max  Redundant  Partner  Hot-pluggable
---  --------        ------- -----  ------  ---------  -------  -------------
#1   SYSTEM          Yes     NORMAL  13%     Yes        0        Yes
#2   SYSTEM          Yes     NORMAL  13%     Yes        0        Yes
#3   SYSTEM          Yes     NORMAL  13%     Yes        0        Yes
#4   SYSTEM          Yes     NORMAL  21%     Yes        0        Yes
#5   SYSTEM          Yes     NORMAL  35%     Yes        0        Yes
#6   SYSTEM          Yes     NORMAL  35%     Yes        0        Yes

Display fans running at least 20% of max.

$ sudo hpasmcli -s "show fan" | awk '0+$5 >= 20 {print}'
#4   SYSTEM          Yes     NORMAL  21%     Yes        0        Yes
#5   SYSTEM          Yes     NORMAL  35%     Yes        0        Yes
#6   SYSTEM          Yes     NORMAL  35%     Yes        0        Yes

Display temperature sensors readings ranging from at least 50'C.

$ sudo hpasmcli -s "show temp" | awk '0+$3 >= 50 {print}'
#13       SYSTEM_BD            50C/122F   105C/221F
#18       SYSTEM_BD            50C/122F   115C/239F
#25       SYSTEM_BD            75C/167F   100C/212F

Display temperature sensors readings exceeding threshold level.

$ sudo hpasmcli -s "show temp" | awk '$3~/^[0-9]/ && $4~/^[0-9]/ && 0+$3 > 0+$4 {print}'
#40       I/O_ZONE             77C/170F   75C/167F

Additional notes

Read manual page and help system as the usage is pretty straightforward.