0% found this document useful (0 votes)
89 views2 pages

Centro de Soporte de Hpe: Hpe Proliant Servers - Hpasmcli Commands

The hpasmcli command provides a scriptable interface for configuring settings on HPE ProLiant servers running Linux, including BIOS settings, hardware status, boot options, and more. It requires the HPASM management daemon to be installed. Common hpasmcli commands are SHOW to display current settings, SET to change settings, ENABLE and DISABLE to turn features on/off. Examples show how to view fan status and turn on the server UID light.

Uploaded by

RAUL MORON
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
89 views2 pages

Centro de Soporte de Hpe: Hpe Proliant Servers - Hpasmcli Commands

The hpasmcli command provides a scriptable interface for configuring settings on HPE ProLiant servers running Linux, including BIOS settings, hardware status, boot options, and more. It requires the HPASM management daemon to be installed. Common hpasmcli commands are SHOW to display current settings, SET to change settings, ENABLE and DISABLE to turn features on/off. Examples show how to view fan status and turn on the server UID light.

Uploaded by

RAUL MORON
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

 Centro de soporte de HPE

HPE ProLiant Servers - HPASMCLI Commands


Information
Useful HPASMCLI commands for ProLiant Servers running Linux operating system (Red Hat, SUSE, VMware).

Details
The HPASMCLI is included in the HP ProLiant Support Pack (PSP), and is available once PSP is installed on the Linux operating system.
The user must be at root to invoke the command. By typing hpasmcli, the prompt is changed to hpasmcli.
Name:
hpasmcli : HP management CLI
Synopsis:
 hpasmcli [:s "<command1>;<command2>;...<commandN>"]      
Description:
hpasmcli is a scriptable command line interface for interacting with the hpasmd or hpasmxld management daemons. It is used to
view/set/mod ify BIOS settings such as hyperthreading, boot control, and UID LEDs.
It can also be used to display hardware status, such as fans, power supplies, etc. The CLI supports TAB completion of command names
and has a history buffer that can be accessed using the up/down arrows.
In addition to the command line interface, hpasmcli also supports a mode that is usable for incorporating into basic shell scripts.
The return value of hpasmcli in script mode can be used to verify a command executed successfully. If multiple commands are executed,
only the status of the last command is returned to the shell. As an example, the following first executes the SHOW SERVER command to
retrieve basic system information, and next reads the status of the UID:
 hpasmcli :s "show server; show uid"  
OPTIONS :s "<command1>;<command2;...<commandN>"
Enables script mode. hpasmcli will execute the commands listed as arguments in the order written. At least one command must be
specified.
Commands:
[ CLEAR | DISABLE | ENABLE | EXIT | HELP | QUIT | SET | SHOW ]   

        CLEAR [ IML ]   

Clears the specified feature.


       DISABLE [ ASR | HT | PXE [ NIC1 | NIC2 | NIC3 | NIC4 | NIC5 ] | WOL ]                  

Disables the specified feature.


ASR: Disables Automatic Server Recovery.
HT: Disables Processor Hyper:Threading.
PXE: Disables PXE BOOT on specified NIC.
WOL: Disables Wake:On:Lan feature.
       ENABLE [ ASR | HT | PXE [ NIC1 | NIC2 | NIC3 | NIC4 | NIC5|WOL ]
Enables the specified feature.
ASR: Enables Automatic Server Recovery.
HT: Enables Processor Hyper:Threading.
PXE: Enables PXE BOOT on specified NIC.
WOL: Enables Wake:On:Lan feature.
EXIT: Quit the program.
HELP: Provides assistance on the available commands.
QUIT: Exit the program.
SET  [  ASR  <timeout>  |  BOOT            [ FIRST [ CDROM | FLOPPY | HDD | PXE
       |USBKEY ] | ONCE [ CDROM | FLOPPY | HDD | PXE | RBSU ] ] | F1 
      [ ENABLED         |  DELAYED  |  DISABLED     ] | NAME <string> | SERIAL
      [ BIOS | EMBEDDED |         VIRTUAL ] | UID [ ON | OFF ]   

Sets or configured the feature as specified.


ASR <timeout: Sets the timeout value of ASR.
BOOT: Sets the first boot device or the onetime boot option.
FIRST: Sets the first boot device.
ONCE: Sets the next boot device.
F1: Sets the desired POST F1 prompt behavior.
ENABLED: Means to enable POST F1 prompt.
DELAYED: Means to enable F1 prompt but timeout and continue booting if no input.
DISABLED: Means don?t stop POST at F1.
NAME <string>: Set the system name.
  SET  SERIAL  BIOS  [  COM1 BAUD | COM2 BAUD | DISABLED ] 

Set the BIOS serial COM port baud rate. Baud rate must be either 9600, 19200, 57600 or 115200.
  SET         SERIAL      EMBEDDED [ PORTA | PORTB ]

Set the embedded serial port to COM1, COM2, COM3, COM4, or DISABLED.
 SET SERIAL VIRTUAL [ COM1 | COM2 | DISABLED ]

Set virtual COM port to COM1, COM2, or DISABLED.


  UID [ ON | OFF ]

Turn the UID on/off.


SHOW  [ ASR | BOOT | DIMM | F1 | FANS | HT | IML | IPL | NAME | PORTMAP | 
        POWERSUPPLY | PXE | SERIAL [ BIOS | EMBEDDED | VIRTUAL ] |  SERVER   
        |TEMP | UID | WOL ]  

Show the current status or configuration of the selected feature.


ASR: Displays the Automatic System Recovery status and timeout.
BOOT: Displays the current first boot device and one time boot option.
DIMM: Displays the current memory dimm configuration.
F1: Displays the configuration of the POST F1 prompt.
FANS: Displays the current status and fan configuration.
HT: Displays the status of Processor Hyper:Threading.
IML: Displays the Integrated Management Log.
IPL: Displays the current boot order.
NAME: Displays the System Name.
PORTMAP: Displays the NIC port Mapping information.
POWERSUPPLY: Displays current Powersupply status and configuration.
PXE: Displays the PXE configuration of each embedded NIC.
SERIAL BIOS: Displays the current BIOS console redirection port setting.
SERIAL EMBEDDED: Displays the current embedded serial port setting.
SERIAL VIRTUAL: Displays the current virtual serial port setting.
SERVER: Displays various information about the system.
TEMP: Displays the current status of the temperature sensors.
UID: Displays the current status of the UID LED.
WOL: Displays the current Wake:On:Lan configuration.
Examples:
Show the system fan and temp status.
hpasmcli -s 'SHOW FAN; SHOW TEMP'
Turn the UID on.
hpasmcli -s 'SET UID ON'
Limitations:
This utility requires the health driver (hpasmd, hpasmxld or hpasm:listed) to be loaded. Some commands may not be supported on all
servers.
This includes commands that use features only available on servers with an iLO chip. Other commands may only make sense on certain
specific ProLiant servers. User can refer to the README file for a list of supported servers.
Click here to access the README file .

You might also like