cmdref.net - Cheat Sheet and Example

cmdref.net is command references/cheat sheets/examples for system engineers.

User Tools

Site Tools


Sidebar








Etc


Reference














.

hardware:proliant:hpasmcli.html



HPE ProLiant Server CLI Commands

HP Proliant Server:hpasmcli

Refalence

Commands

show

Commands Note
hpasmcli -s "show dimm" Display Memory .
hpasmcli -s "show server" Displays various information about the system. CPU, System, Serial No, MAC
hpasmcli -s "show asr" Displays the Automatic System Recovery status and timeout.
hpasmcli -s "show ht" Displays the status of Processor Hyper-Threading.
hpasmcli -s "show iml" Displays the Integrated Management Log.

enable

Commands Note
hpasmcli -s "enable asr" Enables Automatic Server Recovery.
hpasmcli -s "enable ht" Enables Processor Hyper-Threading.
hpasmcli -s "enable pxe nic2" Enables PXE BOOT on specified NIC.

disable

Commands Note
hpasmcli -s "disable asr" Disables Automatic Server Recovery.
hpasmcli -s "disable ht" Disables Processor Hyper-Threading.

set


Explanation

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 be used to display hardware status, such	as  fans,  power  sup-
       plies, etc.  It also can show, repair, and clear the IML.

       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 sta-
       tus 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 argu-
       ments in the order written. At least one command must be specified.


COMMANDS
       [  CLEAR | DISABLE | ENABLE | EXIT | HELP | NOTE | QUIT |REPAIR | 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.

       NOTE [ IML ]
	      IML - Add a maintenance note to the IML.

       QUIT - Exit the program.

       REPAIR [ IML ]
	      IML <entry> - Mark an IML entry as repaired.

       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 ind 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  configura-
	    tion.

	    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  set-
	    ting.

	    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’


Example

Script mode (-s)

# /sbin/hpasmcli -s "show server"

System        : ProLiant DL360 G6
Serial No.    : CN700XXXXX
ROM version   : P64 03/30/2010
iLo present   : Yes
Embedded NICs : 2
	        NIC1 MAC: d8:d3:85:XX:86:XX
        NIC2 MAC: d8:d3:85:XX:86:XX

Processor: 0
        Name         : Intel Xeon
        Stepping     : 5
        Speed        : 2400 MHz
        Bus          : 133 MHz
        Core         : 4
        Thread       : 8
        Socket       : 1
        Level2 Cache : 1024 KBytes
        Level3 Cache : 8192 KBytes
        Status       : Ok

Processor: 1
        Name         : Intel Xeon
        Stepping     : 5
        Speed        : 2400 MHz
        Bus          : 133 MHz
        Core         : 4
        Thread       : 8
        Socket       : 2
        Level2 Cache : 1024 KBytes
        Level3 Cache : 8192 KBytes
        Status       : Ok

Processor total  : 2

Memory installed : 10240 MBytes
ECC supported    : Yes

#
# hpasmcli -s "show dimm"

DIMM Configuration
------------------
Processor #:                     1
Module #:                     1
Present:                      Yes
Form Factor:                  9h
Memory Type:                  DDR3(18h)
Size:                         4096 MB
Speed:                        1600 MHz
Supports Lock Step:           No
Configured for Lock Step:     No
Status:                       Ok

Processor #:                     1
Module #:                     3
Present:                      Yes
Form Factor:                  9h
Memory Type:                  DDR3(18h)
Size:                         4096 MB
Speed:                        1600 MHz
Supports Lock Step:           No
Configured for Lock Step:     No
Status:                       Ok


scriptable command

http://h50146.www5.hp.com/products/software/oe/linux/mainstream/product/software/ima/hpasmcli.txt

#hpasmcli


HP management CLI for Linux (v1.0)
Copyright 2004 Hewlett-Packard Development Group, L.P.

--------------------------------------------------------------------------
NOTE: Some hpasmcli commands may not be supported on all Proliant servers.
      Type 'help' to get a list of all top level commands.
--------------------------------------------------------------------------



hpasmcli> help
CLEAR  DISABLE  ENABLE  EXIT  HELP  QUIT  SET SHOW



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



hpasmcli> show boot
First boot device is: CD-ROM.
One time boot device is: Not set.



hpasmcli> show dimm
DIMM Configuration
------------------
Cartridge #:   0
Module #:      3
Present:       Yes
Form Factor:   9h
Memory Type:   12h
Size:          512 MB
Speed:         400 MHz
Status:        Ok

Cartridge #:   0
Module #:      4
Present:       Yes
Form Factor:   9h
Memory Type:   12h
Size:          512 MB
Speed:         400 MHz
Status:        Ok



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



hpasmcli> show fans
Fan  Location        Present Speed  of max  Redundant  Partner  Hot-pluggable
---  --------        ------- -----  ------  ---------  -------  -------------
#1   PROCESSOR_ZONE  Yes     NORMAL 18%     Yes        2        Yes           
#2   PROCESSOR_ZONE  Yes     NORMAL 18%     Yes        1        Yes           
#3   I/O_ZONE        Yes     NORMAL 18%     Yes        1        Yes           
#4   I/O_ZONE        Yes     NORMAL 18%     Yes        1        Yes           
#5   PROCESSOR_ZONE  Yes     NORMAL 18%     Yes        1        Yes           
#6   PROCESSOR_ZONE  Yes     NORMAL 18%     Yes        1        Yes           
#7   POWERSUPPLY_BAY Yes     NORMAL 18%     Yes        1        Yes           
#8   POWERSUPPLY_BAY Yes     NORMAL 18%     Yes        1        Yes           



hpasmcli> show ht
Processor hyper-threading is currently disabled.



hpasmcli> show iml
The IML Log is empty.



hpasmcli> show ipl
IPL (Standard Boot Order)
-------------------------
#0	CDROM
#1	Floppy
#2	USBKEY
#3	HDD
#4	PXE



hpasmcli> show name
No Server name seems to have been set, or command failed.
Please use "SET NAME" to set a server name.



hpasmcli> show powersupply
Power supply #1
	Present  : Yes
	Redundant: No
	Condition: Ok
	Hotplug  : Supported

Power supply #2
	Power Supply not present



hpasmcli> show pxe
PXE boot status (2 Embedded NICs):
NIC1: PXE enabled
NIC2: PXE disabled



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



hpasmcli> show serial bios
Embedded serial port A: COM1
Embedded serial port B: Disabled



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



hpasmcli> show server
System        : ProLiant DL385 G1
Serial No.    : SGH532X0KK      
ROM version   : A05 06/14/2005
iLo present   : Yes
Embedded NICs : 2
	NIC1 MAC: 00:14:38:4c:62:3e
	NIC2 MAC: 00:14:38:4c:62:3d

Processor: 0
	Name         : AMD Opteron
	Stepping     : 2
	Speed        : 2200 MHz
	Bus          : 0 MHz
	Socket       : 2
	Level2 Cache : 1024 KBytes
	Status       : Ok

Processor: 1
	Name         : AMD Opteron
	Stepping     : 2
	Speed        : 2200 MHz
	Bus          : 0 MHz
	Socket       : 1
	Level2 Cache : 1024 KBytes
	Status       : Ok

Processor total  : 2

Memory installed : 1024 MBytes
ECC supported    : Yes



hpasmcli> show temp
Sensor   Location              Temp       Threshold
------   --------              ----       ---------
#0        SYSTEM_BD             -          -       
#1        CPU#1                51C/123F   80C/176F 
#2        I/O_ZONE             52C/125F   62C/143F 
#3        CPU#2                46C/114F   80C/176F 
#4        PROCESSOR_ZONE       41C/105F   60C/140F 
#5        POWER_SUPPLY_BAY     41C/105F   51C/123F 



hpasmcli> show uid
UID is currently off.



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



hpasmcli> show boot
First boot device is: CD-ROM.
One time boot device is: Not set.



hpasmcli> exit



hardware/proliant/hpasmcli.html.txt · Last modified: 2016/02/11 (external edit)

Page Tools