HPE iLO Commands
HPE iLOrest and SSCLI commands for server management.
Server Startup Procedure
Step 1: Connect to iLOLogin to iLO via iLOrest
ilorest login <ilo_ip> -u <username> -p <password>Login to iLO
Step 2: Check current power stateVerify server is off before powering on
ilorest select ComputerSystem. && ilorest get PowerStateGet current power state
Step 3: Power on serverPower on the server
ilorest reboot OnPower on the server
Step 4: Monitor boot progressCheck server boot progress
ilorest serverlogs --selectlog=IMLMonitor Integrated Management Log
Step 5: Verify server is upConfirm server powered on successfully
ilorest select ComputerSystem. && ilorest get PowerStateVerify power state is On
ilorest serverinfoDisplay server hardware information
Server Shutdown Procedure
Step 1: Connect to iLOLogin to iLO via iLOrest
ilorest login <ilo_ip> -u <username> -p <password>Login to iLO
Step 2: Check current power stateVerify server is on
ilorest select ComputerSystem. && ilorest get PowerStateGet current power state
Step 3: Graceful shutdown (OS)Initiate graceful OS shutdown
ilorest reboot GracefulShutdownGraceful shutdown via OS (ACPI)
Step 4: Alternative - Force power offForce power off if graceful fails
ilorest reboot ForceOffForce power off immediately
Step 5: Verify server is offConfirm server powered off
ilorest select ComputerSystem. && ilorest get PowerStateVerify power state is Off
ilorest logoutLogout from iLO session
iLOrest Basic Operations
ilorest login <ilo_ip> -u <username> -p <password>Login to iLO via network
ilorest loginLogin to local iLO (when running on server)
ilorest logoutLogout from current session
ilorest statusShow current session status
ilorest listList available resource types
ilorest typesDisplay all available schema types
ilorest select <type>Select a resource type for operations
ilorest getGet properties of selected type
ilorest get <property>Get specific property value
ilorest set <property>=<value>Set a property value
ilorest commitCommit pending changes
ilorest save --filename config.jsonSave current configuration to file
ilorest load --filename config.jsonLoad configuration from file
System Information
ilorest serverinfoDisplay server hardware information
ilorest serverlogs --selectlog=IMLDisplay Integrated Management Log
ilorest serverlogs --selectlog=IELDisplay iLO Event Log
ilorest serverlogs --clearlog=IMLClear Integrated Management Log
ilorest firmwareDisplay firmware versions
ilorest select ComputerSystem. && ilorest getGet system information
ilorest select Bios. && ilorest getGet BIOS settings
ilorest select Memory. && ilorest getGet memory information
ilorest select Processor. && ilorest getGet processor information
Power Management
ilorest rebootReboot the server
ilorest reboot ForceRestartForce restart the server
ilorest reboot OnPower on the server
ilorest reboot ForceOffForce power off the server
ilorest reboot NmiGenerate NMI (Non-Maskable Interrupt)
ilorest select ComputerSystem. && ilorest get PowerStateGet current power state
User Management
ilorest iloaccountsList 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 getDisplay all account details
Network Configuration
ilorest select EthernetInterface. && ilorest getGet network configuration
ilorest ethernet --proxy <url>Configure proxy settings
ilorest select Manager. && ilorest get NetworkProtocolsGet 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=TrueEnable DHCP
Virtual Media
ilorest virtualmediaList virtual media status
ilorest virtualmedia <id> --url <http_url>Mount ISO from HTTP URL
ilorest virtualmedia <id> --removeUnmount virtual media
ilorest virtualmedia --bootnextresetBoot from virtual media on next reset
ilorest select VirtualMedia. && ilorest getGet virtual media details
Boot Order
ilorest bootorderDisplay current boot order
ilorest bootorder --commitCommit boot order changes
ilorest bootorder --disablebootflagDisable 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 listList all BIOS settings
ilorest biodefaultsReset BIOS to defaults
ilorest set BootMode=UefiSet boot mode to UEFI
ilorest set BootMode=LegacyBiosSet boot mode to Legacy
ilorest set SecureBootStatus=EnabledEnable Secure Boot
ilorest set IntelHyperThreading=EnabledEnable Hyper-Threading
ilorest set VirtualizationTechnology=EnabledEnable VT-x/AMD-V
Firmware Update
ilorest firmwareupdate <filepath>Upload and flash firmware
ilorest firmwareupdate <filepath> --tpmoverOverride 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.xmlGet global settings
hponcfg -w set_global.xmlSet configuration from XML
hponcfg -iDisplay iLO information
hponcfg -f add_user.xmlAdd user from XML file
hponcfg -gGet host information
hponcfg -a -w server.xmlCapture complete server config
hponcfg -l ilo4_270.binUpdate iLO firmware
Advanced Operations
ilorest iloclone save --filename clone.jsonClone iLO configuration
ilorest iloclone load --filename clone.jsonRestore cloned configuration
ilorest certificate csrGenerate 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 factorydefaultsReset iLO to factory defaults