Sunteți pe pagina 1din 15

5/22/2019 HP iLO4 command line interface (CLI) guide and cheatsheet with examples - GoLinuxHub

Home | About Me | Contact Me | Adver se With Us | Join Us

HOME CONTENT LINUX BASICS LINUX VMWARE DATABASE INTERVIEW QUESTIONS QUIZ PROGRAMMING SOLARIS

CONTACT ME

VMware Linux Database


Learn about VMware virtualization for its Step by step configuration tutorials for many of Learn installation and configuration of
products like vsphere ESX and ESXi, vCenter the Linux services like DNS, DHCP, FTP, databases like Oracle, My SQL, Postgresql, etc
Server, VMware View, VMware P2V and many Samba4 etc including many tips and tricks in including many other related tutorials in Linux.
more Red Hat Linux.

3 13 48 57

Home / cheatsheet / HP / ilo / HP iLO4 command line interface (CLI) guide and cheatsheet with examples
ENTER THE TEXT TO SEARCH..

HP iLO4 command line interface (CLI) guide and cheatsheet with Search
examples

 admin  Friday, February 23, 2018  cheatsheet, HP, ilo   

Linux Course Online a

Learn Linux Commands a

Linux Training Videos a

Beginner Linux Commands a

File Storage Systems a

GET ARTICLES DELIVERED TO YOUR MAIL


Sign Up for Email Updates
In my last ar cle I had shared the steps to set up SNTP server on the iLO so that your blade is always in sync
with your NTP server and it always reflects correct date and me as during troubleshoo ng with incorrect
date and me it becomes impossible to analyse the problem.

Here you can find HPE Virtual Connect based commands and cheat sheet with examples to configure a
shared uplink set. Take appetising shots
with Scene Optimiser
LEARN MORE


Enter your email...

With below ar cle I will share some of the important commands which can be used to configure and Sign up

https://www.golinuxhub.com/2018/02/hp-ilo4--cli-guide-cheatsheet-example.html 1/15
5/22/2019 HP iLO4 command line interface (CLI) guide and cheatsheet with examples - GoLinuxHub
manage HPE based integrated Lights Out Manager (iLO4)

Assuming your iLO is only configured via OA and it doesnot has any other ac ve user account then you will
not be able to do a direct ssh to your iLO
CONNECT US ON SOCIAL PLATFORM

Login to your Onboard Administrator using any CLI based ssh client
Once connected execute below command  735 Subscribe us on Google Plus

BlrSiteA1-01-01> CONNECT SERVER 01

Connecting to bay 1 ...  7.1k Follow us on Facebook


User:OAtmp-HPadmin-5A1FB897 logged-in to 17-inst01-a.BlrSiteA(192.168.1.10 / FE80::7210:6FFF:FEC0

iLO 4 Advanced for BladeSystem 2.55 at Aug 16 2017


 51 Subscribe us on YouTube
Server Name: enclosure1
Server Power: On

</>hpiLO->
YOU MIGHT ALSO LIKE

What is transparent hugepage (THP) and


Now since you have successfully connected to your iLO let us start configuring and managing our iLO how to check THP usage per process in
Linux (Explained)

Tutorial/Cheatsheet: Begineer's Guide to


Understanding Device Mapper Multipath
for Linux
1 LINUX COURSE ONLINE a

10 examples to customize or change the


2 LEARN LINUX COMMANDS a login prompt using PS1 variable of bash
shell in Linux
3 LINUX TRAINING VIDEOS a
Tutorial / Cheatsheet:12 practical
examples for different sudo access based
4 BEGINNER LINUX COMMANDS a
scenarios in RHEL 7 / CentOS 7

5 FILE STORAGE SYSTEMS a


Tutorial / Cheatsheet: 11 examples to use
systemctl to manage unit files and service
in RHEL 7 / CentOS 7

Create User 10 Basic examples of SED to perform per


line action (print/delete)
In the below command we are crea ng HPadmin user with password as Passw0rd
</>hpiLO-> create /map1/accounts1 username=HPadmin password=Passw0rd
15 practical examples of rpm command
usage in Linux
status=0
status_tag=COMMAND COMPLETED
Fri Feb 23 10:47:57 2018
Understanding UMASK value in Linux
User added successfully.

Show the list of users 10 Practical Examples for using FIND

</>hpiLO-> show /map1/accounts1


Command in Linux

status=0
status_tag=COMMAND COMPLETED Understanding Special Permission SGID in
Fri Feb 23 11:01:17 2018 Linux

/map1/accounts1
Targets
Administrator
HPadmin
emergency
Properties
Verbs
cd version exit show create delete set 

Changing password of a user

https://www.golinuxhub.com/2018/02/hp-ilo4--cli-guide-cheatsheet-example.html 2/15
5/22/2019 HP iLO4 command line interface (CLI) guide and cheatsheet with examples - GoLinuxHub

</>hpiLO-> set /map1/accounts1/emergency password=Passw0rd

status=0
status_tag=COMMAND COMPLETED
Fri Feb 23 11:06:25 2018

Firmware Commands
To view the firmware of the iLO
To check the firmware of your iLO4 use the below command
</>hpiLO-> show /map1/firmware1

status=0
status_tag=COMMAND COMPLETED
Fri Feb 23 11:07:42 2018

/map1/firmware1
Targets
Properties
version=2.55
date=Aug 16 2017
name=iLO 4
Verbs
cd version exit show load

Network Configuration

IMPORTANT NOTE: A er modifying network related configura on the iLO will RESET to ac vate the new
changes

To view the assigned network of the blade

</>hpiLO-> show /map1/enetport1/lanendpt1/ipendpt1



status=0
status_tag=COMMAND COMPLETED
Fri Feb 23 13:06:42 2018

/map1/enetport1/lanendpt1/ipendpt1
Targets
Properties
IPv4Address=10.10.10.100
SubnetMask=255.255.255.0
AddressOrigin=Static
Verbs
cd version exit show set


To assign management IP to the blade iLO page

https://www.golinuxhub.com/2018/02/hp-ilo4--cli-guide-cheatsheet-example.html 3/15
5/22/2019 HP iLO4 command line interface (CLI) guide and cheatsheet with examples - GoLinuxHub

</>hpiLO-> set /map1/enetport1/lanendpt1/ipendpt1 IPv4Address=10.10.10.100 SubnetMask=255.255.255

status=0
status_tag=COMMAND COMPLETED
Fri Feb 23 13:10:49 2018

Network settings change applied.

Settings change applied, iLO 4 will now be reset.


Logged Out: It may take several minutes before you can log back in.

CLI session stopped

Change or modify the gateway of the management IP


</>hpiLO-> set /map1/gateway1 AccessInfo=10.10.10.254

status=0
status_tag=COMMAND COMPLETED
Fri Feb 23 13:14:39 2018

Network settings change applied.

Settings change applied, iLO 4 will now be reset.


Logged Out: It may take several minutes before you can log back in.

CLI session stopped

Similarly you can also configure DNS server if you have any
NOTE: You can set upto 3 dnsserver for the blade

To add a dns server use the below command


</>hpiLO-> set /map1/dnsserver1 AccessInfo=1.2.3.4

status=0
status_tag=COMMAND COMPLETED
Fri Feb 23 13:18:03 2018

Network settings change applied.

Settings change applied, iLO 4 will now be reset.


Logged Out: It may take several minutes before you can log back in.

CLI session stopped

Enable or disable DHCP

To view the exis ng dhcpd status of the iLO

Ad

</>hpiLO-> show /map1/dhcpendpt1 

status=0
status_tag=COMMAND COMPLETED
Fri Feb 23 13:19:04 2018

https://www.golinuxhub.com/2018/02/hp-ilo4--cli-guide-cheatsheet-example.html 4/15
5/22/2019 HP iLO4 command line interface (CLI) guide and cheatsheet with examples - GoLinuxHub

/map1/dhcpendpt1
Targets
Properties
EnabledState=no
OtherTypeDescription=DHCP
Verbs
cd version exit show set

To enable ro disable this use below command


</>hpiLO-> set /map1/dhcpendpt1 EnabledState=no

status=0
status_tag=COMMAND COMPLETED
Fri Feb 23 13:19:48 2018

Network settings change applied.

Settings change applied, iLO 4 will now be reset.


Logged Out: It may take several minutes before you can log back in.

CLI session stopped

Configure SNMP

To view the exis ng SNMP configura on


</>hpiLO-> show /map1/snmp1

status=0
status_tag=COMMAND COMPLETED
Fri Feb 23 13:22:21 2018

/map1/snmp1
Targets
Properties
accessinfo1=0
readcom1=""
trapcom1=""
accessinfo2=0
readcom2=""
trapcom2=""
accessinfo3=0
readcom3=""
trapcom3=""
oemhp_iloalert=yes
oemhp_agentalert=yes
oemhp_snmppassthru=no
oemhp_agentlessenable=yes
oemhp_systemlocation=""


Sharjah Intl Ai… Sharjah Intl Ai… Queen Alia Int…
FROM £15 FROM £17 FROM £10

Sharjah Intl Ai… Sharjah Intl Ai… Orlando Airport


FROM £12 FROM £10 FROM £10

To configure new SNMP value

https://www.golinuxhub.com/2018/02/hp-ilo4--cli-guide-cheatsheet-example.html 5/15
5/22/2019 HP iLO4 command line interface (CLI) guide and cheatsheet with examples - GoLinuxHub

Sharjah...
Sharja…
Sharjah...
FROM £15
FROM £15
Sharja…

VIEW NOW
VIEW NOW
Lisbon...

</>hpiLO-> set /map1/snmp1 accessinfo1=1.2.3.4

status=0
status_tag=COMMAND COMPLETED
Fri Feb 23 13:26:30 2018

SNMP settings modified.

Set the system loca on


</>hpiLO-> set /map1/snmp1/ oemhp_systemlocation="Bangalore"

status=0
status_tag=COMMAND COMPLETED
Fri Feb 23 13:28:11 2018

SNMP settings modified.

Set system point of contact


</>hpiLO-> set /map1/snmp1/ oemhp_systemcontact="Deepak Prasad"

status=0
status_tag=COMMAND COMPLETED
Fri Feb 23 13:28:44 2018

SNMP settings modified.

Set the role of the engineer


</>hpiLO-> set /map1/snmp1/ oemhp_systemrole="Engineer"

status=0
status_tag=COMMAND COMPLETED
Fri Feb 23 13:29:01 2018

SNMP settings modified.

Finally view the modified changes


</>hpiLO-> show /map1/snmp1/

status=0
status_tag=COMMAND COMPLETED
Fri Feb 23 13:29:06 2018

/map1/snmp1
Targets
Properties
accessinfo1=1.2.3.4
readcom1=""
trapcom1=""
accessinfo2=0
readcom2="" 
trapcom2=""
accessinfo3=0
readcom3=""

https://www.golinuxhub.com/2018/02/hp-ilo4--cli-guide-cheatsheet-example.html 6/15
5/22/2019 HP iLO4 command line interface (CLI) guide and cheatsheet with examples - GoLinuxHub
trapcom3=""
oemhp_iloalert=yes
oemhp_agentalert=yes
oemhp_snmppassthru=no
oemhp_agentlessenable=yes
oemhp systemlocation="Bangalore"

Assign Name to the blade

IMPORTANT NOTE: The iLO will reset a er execu ng this command hence the connec on the iLO will be lost,
reconnect to the iLO4 in a couple of minutes

Sharjah I… Los Ang…


FROM £15 VIEW NOW FROM £12 VIEW NOW

Sharjah I… Sharjah I…
FROM £10 VIEW NOW FROM £12 VIEW NOW

</>hpiLO-> set /map1/enetport1 SystemName=server1

status=0
status_tag=COMMAND COMPLETED
Fri Feb 23 11:08:33 2018

Network settings change applied.

Settings change applied, iLO 4 will now be reset.


Logged Out: It may take several minutes before you can log back in.

CLI session stopped

Connec on terminated by server.


Re-connect to the iLO once it is UP again a er ac va ng the changes
BlrSiteA1-01-01> CONNECT SERVER 02

Connecting to bay 2 ...


User:OAtmp-HPadmin-5A2FB954 logged-in to server1.BlrSiteA(10.10.10.100 / FE80::7210:6FFF:FEC0:152

iLO 4 Advanced for BladeSystem 2.55 at Aug 16 2017


Server Name: server1
Server Power: On

</>hpiLO->

Validate your changes

https://www.golinuxhub.com/2018/02/hp-ilo4--cli-guide-cheatsheet-example.html 7/15
5/22/2019 HP iLO4 command line interface (CLI) guide and cheatsheet with examples - GoLinuxHub

</>hpiLO-> show /map1/enetport1/ SystemName

status=0
status_tag=COMMAND COMPLETED
Fri Feb 23 13:13:38 2018

/map1/enetport1
Properties
SystemName=server1
Verbs
cd version exit show set

Set and show power related values


Below table can be used to understand the meaning of different power values

Syntax
show /system1/oemhp_power1 <variable>
set /system1/oemhp_power1 <variable=value>


For example to view the power reading value from last 24h
</>hpiLO-> show /system1/oemhp_power1 oemhp_AvgPower

https://www.golinuxhub.com/2018/02/hp-ilo4--cli-guide-cheatsheet-example.html 8/15
5/22/2019 HP iLO4 command line interface (CLI) guide and cheatsheet with examples - GoLinuxHub
status=0
status_tag=COMMAND COMPLETED
Fri Feb 23 11:18:50 2018

/system1/oemhp_power1
Properties
oemhp_AvgPower=82 Watts
Verbs
cd version exit show set

To modify the power on delay value


</>hpiLO-> set /system1/oemhp_power1 oemhp_auto_pwr=15

status=0
status_tag=COMMAND COMPLETED
Fri Feb 23 11:53:16 2018

View and change boot order


To view all the available boot op on
</>hpiLO-> show /system1/bootconfig1

status=0
status_tag=COMMAND COMPLETED
Fri Feb 23 12:05:52 2018

/system1/bootconfig1
Targets
bootsource1
bootsource2
bootsource3
bootsource4
bootsource5
Properties
oemhp_bootmode=Legacy
oemhp_secureboot=Not Available
oemhp_pendingbootmode=Legacy
Verbs
cd version exit show set


You can view the individual bootsource to understand the media mapped to the respec ve bootsource

The boot source targets and matching boot source values do not change. The values for bootsource are:
• bootsource1: BootFmCd
• bootsource2: BootFmFloppy
• bootsource3: BootFmDrive
• bootsource4: BootFmUSBKey
• bootsource5: BootFmNetwork

To view the boot order of "individual boot source" 


</>hpiLO-> show /system1/bootconfig1/bootsource1

status=0

https://www.golinuxhub.com/2018/02/hp-ilo4--cli-guide-cheatsheet-example.html 9/15
5/22/2019 HP iLO4 command line interface (CLI) guide and cheatsheet with examples - GoLinuxHub
status_tag=COMMAND COMPLETED
Fri Feb 23 12:24:03 2018

/system1/bootconfig1/bootsource1
Targets
Properties
bootorder=2
bootdevice=BootFmCd
Verbs
cd version exit show set

To view the boot order of all the available boot source


</>hpiLO-> show -all /system1/bootconfig1

status=0
status_tag=COMMAND COMPLETED
Fri Feb 23 12:19:59 2018

/system1/bootconfig1
Targets
bootsource1
bootsource2
bootsource3
bootsource4
bootsource5
Properties
oemhp_bootmode=Legacy
oemhp_secureboot=Not Available
oemhp_pendingbootmode=Legacy
Verbs
cd version exit show set

/system1/bootconfig1/bootsource1
Targets
Properties

To change the boot order


Here I am changing my first boot device to HDD

Sharjah Intl Airport

FROM £15 VIEW NOW

</>hpiLO-> set /system1/bootconfig1/bootsource2 bootorder=1

status=0

status_tag=COMMAND COMPLETED
Fri Feb 23 12:22:25 2018

Bootorder being set.

bootsource2=BootFmDisk bootorder=1
bootsource1=BootFmCd bootorder=2
bootsource3=BootFmUSBKey bootorder=3
bootsource4=BootFmNetwork1 bootorder=4
bootsource5=BootFmNetwork2 bootorder=5

LED commands

https://www.golinuxhub.com/2018/02/hp-ilo4--cli-guide-cheatsheet-example.html 10/15
5/22/2019 HP iLO4 command line interface (CLI) guide and cheatsheet with examples - GoLinuxHub
To show the LED status
</>hpiLO-> show /system1/led1

status=0
status_tag=COMMAND COMPLETED
Fri Feb 23 12:25:56 2018

/system1/led1
Targets
Properties
enabledstate=disabled
Verbs
cd version exit show start stop

To start the LED


</>hpiLO-> start /system1/led1

status=0
status_tag=COMMAND COMPLETED
Fri Feb 23 12:26:51 2018

Virtual Media Commands


To mount a cd or dvd image you must have the loca on of the iso image
As you see currently there is no image mounted on my iLO
</>hpiLO-> show /map1/oemhp_vm1/cddr1

status=0
status_tag=COMMAND COMPLETED
Fri Feb 23 12:31:25 2018

/map1/oemhp_vm1/cddr1
Targets
Properties
oemhp_image=None
oemhp_connect=No
oemhp_boot=No_Boot
oemhp_wp=No
vm_applet=No
Verbs
cd version exit show set

To mount an iso available on h p server


The oemhp image value is a URL. The URL, which is limited to 80 characters, specifies the loca on of the
virtual media image file on an HTTP server and is in the same format as the scriptable virtual media image
loca on.


Sharjah Intl Airp… Sharjah Intl Airp… Trabzon Airport
FROM £15 FROM £17 FROM £17

Sharjah Intl Airport

FROM £15
Sharjah Intl Airp… Queen Alia Intl… Sabiha Gokcen…
FROM £12 VIEW
FROMNOW
£10 FROM £12

URL example: protocol://username:password@hostname:port/filename 

• protocol —Mandatory field that must be HTTP or HTTPS

https://www.golinuxhub.com/2018/02/hp-ilo4--cli-guide-cheatsheet-example.html 11/15
5/22/2019 HP iLO4 command line interface (CLI) guide and cheatsheet with examples - GoLinuxHub
• username:password —Op onal field
• hostname —Mandatory field
• port —Op onal field
• filename —Mandatory field

</>hpiLO-> cd /map1/oemhp_vm1/cddr1

</map1/oemhp_vm1/cddr1>hpiLO-> set oemhp_image=http://10.43.22.100/bp-server-sum-2017-10-v2.iso

status=0
status_tag=COMMAND COMPLETED
Fri Feb 23 12:36:14 2018

</>hpiLO-> set /map1/oemhp_vm1/cddr1 oemhp_boot=connect

status=0
status_tag=COMMAND COMPLETED
Fri Feb 23 12:39:07 2018

To view the changes


</map1/oemhp_vm1/cddr1>hpiLO-> show

status=0
status_tag=COMMAND COMPLETED
Fri Feb 23 12:39:28 2018

/map1/oemhp_vm1/cddr1
Targets
Properties
oemhp_image=http://10.43.22.100/bp-server-sum-2017-10-v2.iso
oemhp_connect=Yes
oemhp_boot=Always
oemhp_wp=Yes
vm_applet=No
Verbs
cd version exit show set

To disconnect the dvd/cd image


</>hpiLO-> set /map1/oemhp_vm1/cddr1 oemhp_boot=disconnect

status=0
status_tag=COMMAND COMPLETED
Fri Feb 23 12:39:58 2018

To set one me boot menu for the inserted DVD


</>hpiLO-> set /map1/oemhp_vm1/cddr1 oemhp_boot=once

status=0
status_tag=COMMAND COMPLETED
Fri Feb 23 12:54:33 2018


Blade commands
To view the blade details and blade slot in the rack
Here we know now that the connected blade is on bay 2 and the enclosure IP Address is 192.168.1.10

https://www.golinuxhub.com/2018/02/hp-ilo4--cli-guide-cheatsheet-example.html 12/15
5/22/2019 HP iLO4 command line interface (CLI) guide and cheatsheet with examples - GoLinuxHub

Sharjah Intl Airport

FROM £15 VIEW NOW

</>hpiLO-> show /map1/blade1

status=0
status_tag=COMMAND COMPLETED
Fri Feb 23 13:33:51 2018

/map1/blade1
Targets
rack
Properties
bay_number=2
auto_power=on
ip_address=192.168.1.10
mac_address=94:18:82:72:25:4b
sys_health=OK
Verbs
cd version exit show set

CPU Commands

To view the CPU informa on of the blade


</>hpiLO-> show /system1/cpu1

status=0
status_tag=COMMAND COMPLETED 
Fri Feb 23 13:36:21 2018

/system1/cpu1
Targets
Properties
name=Intel(R) Xeon(R) CPU E5-2640 v3 @ 2.60GHz
status=OK
number_cores=8
active_cores=8
threads=16
speed=2600MHz
memory_technology=64-bit Capable
cachememory1=512KB

cachememory2=2048KB
cachememory3=20480KB
Verbs
cd version exit show

https://www.golinuxhub.com/2018/02/hp-ilo4--cli-guide-cheatsheet-example.html 13/15
5/22/2019 HP iLO4 command line interface (CLI) guide and cheatsheet with examples - GoLinuxHub

</>hpiLO-> show /system1/cpu2

status=0
status_tag=COMMAND COMPLETED
Fri Feb 23 13:36:24 2018

/system1/cpu2
Targets
Properties
name=Intel(R) Xeon(R) CPU E5-2640 v3 @ 2.60GHz
status=OK
number_cores=8
active_cores=8
threads=16
speed=2600MHz
memory_technology=64-bit Capable
cachememory1=512KB
cachememory2=2048KB
cachememory3=20480KB
Verbs
cd version exit show

References:
iLO4 Scrip ng and Command Line Guide

I hope the ar cle was useful

PREVIOUS NEXT
How to configure Shared Uplink Set Network How to make bootable Pendrive (USB) to
 in HP Flex Virtual Connect using CLI install Windows, Linux, VMware from an ISO 
commands with example (cheatsheet)

SHARE THIS:  Facebook  Twi er  Google+  Pinterest  Linkedin

RELATED POSTS:

how to set date and time in ilo3 / how to reset ilo4 password how to configure shared uplink set
ilo4 using sntp and ribcl... remotely using onboard network in hp flex virtua...
administra...

how to perform disk replacement


(software raid 1) in linux (...

No Comments:

https://www.golinuxhub.com/2018/02/hp-ilo4--cli-guide-cheatsheet-example.html 14/15
5/22/2019 HP iLO4 command line interface (CLI) guide and cheatsheet with examples - GoLinuxHub

Enter your comment...

Comment as: Google Accoun

Publish Preview

RECENT POSTS ABOUT ME POPULAR POSTS


How to configure and Install kdump (crashkernel) in My name is Deepak Prasad Step by Step Linux Boot Process Explained In Deta
RHEL/CentOS 7
and I am very passionate
about my work which mostly Interview Questions on VMware ESXi with Answers
Step by step guide to implement/modify quota (soft
includes and revolves
and hard limit) for user, add/modify grace period …
around Linux/Unix platform,
How to check the lock status of any user account in
How to fix "NoValidHost: No valid host was found. virtualisation, openstack
Linux
There are not enough hosts available" during … cloud, hardware, firmware,
security, network, scripting,
6 commands to list the logged in users in Linux
Final Part 3: Openstack TripleO Architecture and automation and similar stuff.
Step By Step Guide for installation of undercloud …

If I look back it looks like it was just yesterday 10 practical examples to use USERADD command i
Part 2: Openstack TripleO Architecture and Step By when I started as a fresher in my first company as linux
Step Guide for installation of undercloud and …
a total noob (which still I am BTW) and now I am
here trying to run a tutorial site, I am not sure How to extend/resize Logical Volume and Volume
Part 1: Openstack TripleO Architecture and Step By
how good this is but at least I feel I learn Group in Linux
Step Guide for installation of undercloud and …
something new every time I open my blog to write
How to check memory usage of an individual a new post. This honestly was sort of a notebook How to preserve Symbolic links with tar command in
process or application/program in Linux for me later turned into a tutorial blog. Unix/Linux

How to enable or disable transparent (THP) and There is nothing much about me to write here so
How to create user without useradd command in
explicit (nr_hugepages) hugepage and check the … cheers!! Linux

Copyright © 2019 GoLinuxHub | Powered by Blogger


Disclaimer

https://www.golinuxhub.com/2018/02/hp-ilo4--cli-guide-cheatsheet-example.html 15/15

S-ar putea să vă placă și