HPE iLO Commands

HPE iLOrest and SSCLI commands for server management.

Server Startup Procedure

Step 1: Connect to iLO

Login to iLO via iLOrest

ilorest login <ilo_ip> -u <username> -p <password>

Login to iLO

Step 2: Check current power state

Verify server is off before powering on

ilorest select ComputerSystem. && ilorest get PowerState

Get current power state

Step 3: Power on server

Power on the server

ilorest reboot On

Power on the server

Step 4: Monitor boot progress

Check server boot progress

ilorest serverlogs --selectlog=IML

Monitor Integrated Management Log

Step 5: Verify server is up

Confirm server powered on successfully

ilorest select ComputerSystem. && ilorest get PowerState

Verify power state is On

ilorest serverinfo

Display server hardware information

Server Shutdown Procedure

Step 1: Connect to iLO

Login to iLO via iLOrest

ilorest login <ilo_ip> -u <username> -p <password>

Login to iLO

Step 2: Check current power state

Verify server is on

ilorest select ComputerSystem. && ilorest get PowerState

Get current power state

Step 3: Graceful shutdown (OS)

Initiate graceful OS shutdown

ilorest reboot GracefulShutdown

Graceful shutdown via OS (ACPI)

Step 4: Alternative - Force power off

Force power off if graceful fails

ilorest reboot ForceOff

Force power off immediately

Step 5: Verify server is off

Confirm server powered off

ilorest select ComputerSystem. && ilorest get PowerState

Verify power state is Off

ilorest logout

Logout from iLO session

iLOrest Basic Operations

ilorest login <ilo_ip> -u <username> -p <password>

Login to iLO via network

ilorest login

Login to local iLO (when running on server)

ilorest logout

Logout from current session

ilorest status

Show current session status

ilorest list

List available resource types

ilorest types

Display all available schema types

ilorest select <type>

Select a resource type for operations

ilorest get

Get properties of selected type

ilorest get <property>

Get specific property value

ilorest set <property>=<value>

Set a property value

ilorest commit

Commit pending changes

ilorest save --filename config.json

Save current configuration to file

ilorest load --filename config.json

Load configuration from file

System Information

ilorest serverinfo

Display server hardware information

ilorest serverlogs --selectlog=IML

Display Integrated Management Log

ilorest serverlogs --selectlog=IEL

Display iLO Event Log

ilorest serverlogs --clearlog=IML

Clear Integrated Management Log

ilorest firmware

Display firmware versions

ilorest select ComputerSystem. && ilorest get

Get system information

ilorest select Bios. && ilorest get

Get BIOS settings

ilorest select Memory. && ilorest get

Get memory information

ilorest select Processor. && ilorest get

Get processor information

Power Management

ilorest reboot

Reboot the server

ilorest reboot ForceRestart

Force restart the server

ilorest reboot On

Power on the server

ilorest reboot ForceOff

Force power off the server

ilorest reboot Nmi

Generate NMI (Non-Maskable Interrupt)

ilorest select ComputerSystem. && ilorest get PowerState

Get current power state

User Management

ilorest iloaccounts

List all iLO user accounts

ilorest iloaccounts add <username> <loginname> <password>

Add new iLO user

ilorest iloaccounts modify <username> --password <newpassword>

Change user password

ilorest iloaccounts delete <username>

Delete iLO user account

ilorest iloaccounts changepass <username>

Interactively change password

ilorest select ManagerAccount. && ilorest get

Display all account details

Network Configuration

ilorest select EthernetInterface. && ilorest get

Get network configuration

ilorest ethernet --proxy <url>

Configure proxy settings

ilorest select Manager. && ilorest get NetworkProtocols

Get network protocols

ilorest set IPv4Addresses/0/Address=<ip>

Set IPv4 address

ilorest set IPv4Addresses/0/SubnetMask=<mask>

Set subnet mask

ilorest set IPv4Addresses/0/Gateway=<gateway>

Set default gateway

ilorest set HostName=<hostname>

Set iLO hostname

ilorest set DHCPv4/DHCPEnabled=True

Enable DHCP

Virtual Media

ilorest virtualmedia

List virtual media status

ilorest virtualmedia <id> --url <http_url>

Mount ISO from HTTP URL

ilorest virtualmedia <id> --remove

Unmount virtual media

ilorest virtualmedia --bootnextreset

Boot from virtual media on next reset

ilorest select VirtualMedia. && ilorest get

Get virtual media details

Boot Order

ilorest bootorder

Display current boot order

ilorest bootorder --commit

Commit boot order changes

ilorest bootorder --disablebootflag

Disable continuous boot flag

ilorest bootorder --onetimeboot=<target>

Set one-time boot target

ilorest bootorder --continuousboot=<target>

Set continuous boot target

BIOS Configuration

ilorest select Bios. && ilorest list

List all BIOS settings

ilorest biodefaults

Reset BIOS to defaults

ilorest set BootMode=Uefi

Set boot mode to UEFI

ilorest set BootMode=LegacyBios

Set boot mode to Legacy

ilorest set SecureBootStatus=Enabled

Enable Secure Boot

ilorest set IntelHyperThreading=Enabled

Enable Hyper-Threading

ilorest set VirtualizationTechnology=Enabled

Enable VT-x/AMD-V

Firmware Update

ilorest firmwareupdate <filepath>

Upload and flash firmware

ilorest firmwareupdate <filepath> --tpmover

Override TPM check

ilorest uploadcomp --component <filepath>

Upload component without flashing

ilorest flashfwpkg --filename <filename>

Flash uploaded firmware package

ilorest maintenancewindow add <name> --expire <datetime>

Add maintenance window

SSCLI Commands (Legacy)

hponcfg -r -f get_global.xml

Get global settings

hponcfg -w set_global.xml

Set configuration from XML

hponcfg -i

Display iLO information

hponcfg -f add_user.xml

Add user from XML file

hponcfg -g

Get host information

hponcfg -a -w server.xml

Capture complete server config

hponcfg -l ilo4_270.bin

Update iLO firmware

Advanced Operations

ilorest iloclone save --filename clone.json

Clone iLO configuration

ilorest iloclone load --filename clone.json

Restore cloned configuration

ilorest certificate csr

Generate certificate signing request

ilorest certificate tls <certfile>

Import TLS certificate

ilorest certificate ca <cafile>

Import CA certificate

ilorest rawget /redfish/v1/

Raw GET request to Redfish API

ilorest rawpost /redfish/v1/path --data <json>

Raw POST to Redfish API

ilorest ilolicense <key>

Install iLO Advanced license

ilorest factorydefaults

Reset iLO to factory defaults