Linux Notes: iLO (DL380, DL385)

  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: 2024-03-03
back to: my Linux Notes (index)

Introduction

HP/HPE technical trivia

Regarding the DL380 and DL385

iLO (integrated Lights Out)

Example (with 'delete' FUBAR)

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

==========================================================================
[neil@kawc4n ~]$ ssh 192.168.255.42
[email protected]'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:[email protected]/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. (hmm...) </map1/log1>hpiLO-> show record394 (is 394 still here?) status=2 status_tag=COMMAND PROCESSING FAILED (nope; all log entries 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.