Linux Notes: iLO (DL380, DL395)

  1. The information presented here is intended for educational use by qualified computer technologists.
  2. The information presented here is provided free of charge, as-is, with no warranty of any kind.
Edit: 2022-11-05
back to: my Linux Notes (index)

Introduction

  • all modern servers built for "data center use" provide a port for remote maintenance
  • on HP/HPE systems this port will be labeled iLO (integrated Lights Out)
    • the iLO subsystem and associated management processor will be powered up whenever at least one power supply is connected (but not necessarily powered up). Therefore, it is possible to power-up (and power-down) a chassis over the iLO port
    • x86 machines manufactured before 2012 usually:
      • allow iLO access via a DB-9 serial port (so you will need a data center survival kit)
      • allow ssh access via a password protected network interface (10-base-T or 100-base-T)
    • x86 machines manufactured after 2012 usually:
      • will not have a DB-9 serial port
      • allow ssh access via a password protected network interface which can now handle any speed up to 1-Gb/s
        •  the iLO port on these machines can only be programmed from firmware (BIOS or EFI/UTEF) during boot
          -or-
        •  from the HP/HPE provided maintenance program, named hponcfg, which is only available on Windows or Linux
    • Itanium2 machines employ both a DB-9 serial port as well as an network interface
      (this was still true with a new rx2800-i2 I worked on which was manufactured in 2015 so you will need a data center survival kit for DB-9 access)
  • network access
    • all modern 86x systems only support ssh connections to the iLO
    • all Itanium2 systems support both telnet and ssh connections to the iLO. Telnet remains because ssh access requires that the connecting ssh client implement a handshake patch which no longer exists in Linux + Windows but is still present in all OpenVMS stacks

Example (with 'delete' FUBAR)

Note: my commands are in BLUE but comments are found in (RED)

==========================================================================
[neil@kawc4n ~]$ ssh 192.168.255.42
neil@192.168.255.42's password: 
User:neil logged-in to kawc4m-iLO.(192.168.255.42 / FE80::82C1:6EFF:FE7E:D906)

iLO Standard 2.70 at  May 07 2019
Server Name: kawc4m
Server Power: On

</>hpiLO-> help

status=0
status_tag=COMMAND COMPLETED
Sat Nov  5 13:59:25 2022

DMTF SMASH CLP Commands:

help    : Used to get context sensitive help.
show    : Used to display values of a property or contents of a collection target.
show  -a  : Recursively show all targets within the current target.
show  -l <level>  : Recursively show targets within the current target based on 'level' specified.
         Valid values for 'level' is from 1 to 9.
create  : Used to create new instances in the name space of the MAP.
Example: create /map1/accounts1 username=<lname1> password=<pwd12345> name= 
 <dname1> group=<admin,config,oemhp_vm,oemhp_rc,oemhp_power>

delete  : Used to destroy instances in the name space of the MAP.
Example: delete /map1/accounts1/<lname1> 

load    : Used to move a binary image from an URL to the MAP.
Example: load /map1/firmware1 -source http://192.168.1.1/images/fw/iLO4_100.bin

reset   : Causes a target to cycle from enabled to disabled and back to enabled.

set     : Used to set a property or set of properties to a specific value.
start   : Used to cause a target to change state to a higher run level.
stop    : Used to cause a target to change state to a lower run level.
cd      : Used to set the current default target.
   Example: cd targetname
date    : Used to get the current date.
time    : Used to get the current time.
exit    : Used to terminate the CLP session.
version : Used to query the version of the CLP implementation or other CLP elements.

oemhp_ping    : Used to determine if an IP address is reachable.
Example : oemhp_ping 192.168.1.1

oemhp_loadSSHKey    : Used to authorize a SSH Key File from an URL.
Example : oemhp_loadSSHKey -source http://user:pwd@192.168.1.1/images/SSHkey1.pub
oemhp_deleteSSHKey    : Used to remove a SSH Key associated with a user
Example : oemhp_deleteSSHKey 

HPE CLI Commands:

POWER    : Control server power.
UID      : Control Unit-ID light.
ONETIMEBOOT: Access One-Time Boot setting.
NMI      : Generate an NMI.
VM       : Virtual media commands.
LANGUAGE : Command to set or get default language
VSP      : Invoke virtual serial port.
TEXTCONS : Invoke Remote Text Console.
TESTTRAP : Sends a test SNMP trap to the configured alert destinations.

</>hpiLO-> show

status=0
status_tag=COMMAND COMPLETED
Sat Nov  5 13:59:29 2022

/
  Targets
    system1			(BIOS settings found here)
    map1			(event logs found here)
  Properties
  Verbs
    cd version exit show


</>hpiLO-> cd map1

status=0
status_tag=COMMAND COMPLETED
Sat Nov  5 13:59:35 2022

/map1

</map1>hpiLO-> show

status=0
status_tag=COMMAND COMPLETED
Sat Nov  5 13:59:37 2022

/map1
  Targets
    firmware1
    accounts1
    log1
    enetport1
    dhcpendpt1
    dnsendpt1
    gateway1
    dnsserver1
    dnsserver2
    dnsserver3
    settings1
    config1
    snmp1
    oemhp_dircfg1
    oemhp_vm1
    vlan1
    oemhp_ssocfg1
    oemhp_syslog1
    oemhp_alertmail1
    oemhp_ahs1
    oemhp_license1
  Properties
    name=iLO 4
    license=0
    oemhp_licensetype=iLO Standard
    manual_iLO_reset=no
  Verbs
    cd version exit show reset set oemhp_ping oemhp_clearRESTAPIstate


</map1>hpiLO-> cd log1

status=0
status_tag=COMMAND COMPLETED
Sat Nov  5 13:59:44 2022

/map1/log1

</map1/log1>hpiLO-> show

status=0
status_tag=COMMAND COMPLETED
Sat Nov  5 13:59:46 2022

/map1/log1
  Targets
    record1
    record2
    record3
(...snip...) record405 record406 record407 Properties Verbs cd version exit show delete #########################################################

</map1/log1>hpiLO-> show record394 status=0 status_tag=COMMAND COMPLETED Sat Nov 5 14:00:37 2022 (current time) /map1/log1/record394 Targets Properties number=394 severity=Caution date=08/30/2022 (event time) time=12:52 description=Server reset. Verbs cd version exit show </map1/log1>hpiLO-> show record395 status=0 status_tag=COMMAND COMPLETED Sat Nov 5 14:00:43 2022 /map1/log1/record395 Targets Properties number=395 severity=Informational date=08/30/2022 time=12:52 description=Server power restored. Verbs cd version exit show </map1/log1>hpiLO-> help delete status=0 status_tag=COMMAND COMPLETED Sat Nov 5 14:02:48 2022 delete : Used to destroy instances in the name space of the MAP. Example: </map1/accounts1>> delete /map1/accounts1/clp_test Example: </map1/oemhp_ssocfg1>> delete 1 </map1/log1>hpiLO-> delete /map1/log1/record395 (just trying to delete record 395) status=0 status_tag=COMMAND COMPLETED Sat Nov 5 14:03:29 2022 iLO 4 event log cleared. (hmmmmm...) </map1/log1>hpiLO-> show record394 (is 394 still here?) status=2 status_tag=COMMAND PROCESSING FAILED (nope; all log entryies zapped) error_tag=INVALID OPTION Sat Nov 5 14:03:40 2022 </map1/log1>hpiLO-> exit status=0 status_tag=COMMAND COMPLETED Sat Nov 5 14:03:44 2022 CLI session stopped Received disconnect from 192.168.255.42 port 22:11: Client Disconnect Disconnected from 192.168.255.42 port 22 [neil@kawc4n ~]$

 Back to Home
Neil Rieck
Waterloo, Ontario, Canada.