Advertisements

Category Archives: HP iLO

Resetting HP iLO through command line

From my Linux server, I ssh to the iLO IP address

emerson@linux:~ $ ssh Administrator@172.22.4.251
Warning: Permanently added ‘172.22.4.251’ (RSA) to the list of known hosts.
Administrator@172.22.4.251’s password:
User:Administrator logged-in to ILOBRC6087BS6.(172.22.4.251 / FE80::9657:A5FF:FE4E:3852)

iLO Advanced 2.40 at Dec 02 2015
Server Name: linux.setaoffice.com
Server Power: On

Type cd /Map1

</>hpiLO-> cd /Map1

status=0
status_tag=COMMAND COMPLETED
Mon Aug 28 16:37:16 2017

/Map1

Type reset

hpiLO-> reset

status=0
status_tag=COMMAND COMPLETED
Mon Aug 28 16:37:27 2017

Resetting iLO.

CLI session stopped
Received disconnect from 172.22.4.251: 11: Client Disconnect

Advertisements

Error when updating iLO2 in HP Proliant

Tried to update iLO2 but when I ran the scexe file it gave me an error message

root@suse10:/tmp # ./CP025666.scexe

FLASH_iLO2 v1.12 for Linux (Aug 31 2009)
Copyright 2009 Hewlett-Packard Development Company, L.P.
Firmware image: ilo2_227.bin

ERROR: Make sure hp Lights-Out driver is installed and loaded. Also, execute the utility as ‘root’. []

Component XML file: CP025666.xml
CP025666.xml reports firmware version 2.27

***Flash firmware using channel interface has failed. Try direct flash next…

***Note: This operation will flash the firmware on the
iLO 2 in this server with version “2.27”.
This operation requires following condition(s) be met:
1. iLO 2 Security Override Switch must be set.
Continue (y/N)? y
Trying to reset V850E
Trying to reset V850E
Trying to reset V850E
Trying to reset V850E

The solution was to extract the .bin file and then update iLO 2 through the web interface with the .bin file

root@suse10:/tmp # ./CP025666.scexe –unpack=/tmp
CP025666.xml
flash_ilo2
ilo2_227.bin
README.TXT

Receiving the message Error code: ssl_error_bad_mac_alert when connecting to HP Proliant’s iLO 3

I was receiving the message Error code: ssl_error_bad_mac_alert while connecting to a HP Proliant BL680 G7 with iLO 3 version 1.16

Secure Connection Failed

An error occurred during a connection to 172.22.250.149. SSL peer reports incorrect Message Authentication Code. (Error code: ssl_error_bad_mac_alert)

CP014002.scexe – iLO 3 version 1.20
CP022551.scexe – iLO 3 version 1.80

To solve this problem, update iLO 3 first to version 1.20 and then to version 1.80

root@linux:/tmp # ./CP022551.scexe

FLASH_iLO3 v1.09 for Linux (Jan 23 2013)
(C) Copyright 2002-2013 Hewlett-Packard Development Company, L.P.
Firmware image: ilo3_180.bin
Current iLO 3 firmware version 1.20; Serial number ILOBRC0411JYB

Component XML file: CP022551.xml
CP022551.xml reports firmware version 1.80
This operation will update the firmware on the
iLO 3 in this server with version 1.80.
Continue (y/N)?y
Current firmware is 1.20 (Mar 14 2011 )
Firmware image is 0x801664(8394340) bytes
Committing to flash part…
******** DO NOT INTERRUPT! ********
Flashing completed.
Attempting to reset device.
Succeeded.
***** iLO 3 reboot in progress (may take up to 60 seconds.)
***** Please ignore console messages, if any.

iLO 3 reboot completed.
root@linux:/tmp #

HP iLO 2 ClassNotFoundException com.hp.ilo2.remcons.remcons.class

You must have seen the dialog box with the error message when using the Remote Console applet that uses Java.
ClassNotFoundException

There is no definite solution. Use the Integrated Remote Console with Internet Explorer.

If you want to try some solutions:

First you verify if you are running an old Java version. Download Java SE 7 Update 10 at Oracle Java Archive. This method is not advisable since you will be runnning an outdated Java version.

Check if the iLO 2 firmware isn’t too old. Upgrade to the latest version.
On the version 2.29 release notes is described that can fix the problem with Java IRC will not start when JRE versions 7 or 8 are installed and TLS 1.1/1.2 is enabled.
iLO 2 Firmware
Copy your configuration and then perform a factory reset to defaults in HP iLO 2 and then reconfigure it.

Nothing garantees that it will work but some people reported success with the steps shown above.

Discover HP iLO IP address in Linux

Here we have a Proliant DL785 G6

root@linux:~ # dmidecode | grep -i Proliant
Product Name: ProLiant DL785 G6
Family: ProLiant

To discover the iLO IP address, check it with ipmitool

root@linux:~ # ipmitool lan print
Set in Progress : Set Complete
Auth Type Support :
Auth Type Enable : Callback :
: User :
: Operator :
: Admin : MD2 PASSWORD OEM
: OEM : NONE MD2 PASSWORD
IP Address Source : Static Address
IP Address : 172.22.29.40
Subnet Mask : 255.255.255.0
MAC Address : 00:21:5a:de:db:02
BMC ARP Control : ARP Responses Enabled, Gratuitous ARP Disabled
Gratituous ARP Intrvl : 0.0 seconds
Default Gateway IP : 172.22.29.1
802.1q VLAN ID : Disabled
802.1q VLAN Priority : 0
Cipher Suite Priv Max : Not Available

Or you can view using hponcfg and outputting the configuration to a file

root@linux:~ # hponcfg -w iLO_ouput.out
root@linux:~ # cat ILO_ouput.out
<!– HPONCFG VERSION = “3.0” –>
<!– Generated 5/8/2014 12:6:50 –>
<DIR_INFO MODE=”write”>
<MOD_DIR_CONFIG>
<DIR_AUTHENTICATION_ENABLED VALUE = “N”/>
<DIR_LOCAL_USER_ACCT VALUE = “Y”/>
<DIR_SERVER_ADDRESS VALUE = “”/>
<DIR_SERVER_PORT VALUE = “636”/>
<DIR_OBJECT_DN VALUE = “”/>
<DIR_OBJECT_PASSWORD VALUE = “”/>
<DIR_USER_CONTEXT_1 VALUE = “”/>
<DIR_USER_CONTEXT_2 VALUE = “”/>
<DIR_USER_CONTEXT_3 VALUE = “”/>
<RIB_INFO MODE=”write”>
<MOD_NETWORK_SETTINGS>
<SPEED_AUTOSELECT VALUE = “Y”/>
<NIC_SPEED VALUE = “10”/>
<FULL_DUPLEX VALUE = “N”/>
<IP_ADDRESS VALUE = “0.0.0.0”/>
<SUBNET_MASK VALUE = “0.0.0.0”/>
<GATEWAY_IP_ADDRESS VALUE = “0.0.0.0”/>
<DNS_NAME VALUE = “ILO—z”/>
<PRIM_DNS_SERVER value = “0.0.0.0”/>
<DHCP_ENABLE VALUE = “Y”/>
<DOMAIN_NAME VALUE = “”/>
<DHCP_GATEWAY VALUE = “Y”/>
<DHCP_DNS_SERVER VALUE = “Y”/>
<DHCP_STATIC_ROUTE VALUE = “Y”/>
<DHCP_WINS_SERVER VALUE = “Y”/>
<REG_WINS_SERVER VALUE = “Y”/>
<PRIM_WINS_SERVER value = “0.0.0.0”/>
<STATIC_ROUTE_1 DEST = “0.0.0.0” GATEWAY = “0.0.0.0”/>
<STATIC_ROUTE_2 DEST = “0.0.0.0” GATEWAY = “0.0.0.0”/>
<STATIC_ROUTE_3 DEST = “0.0.0.0” GATEWAY = “0.0.0.0”/>
</MOD_NETWORK_SETTINGS>
</RIB_INFO>
<USER_INFO MODE=”write”>
</USER_INFO>
</LOGIN>
</RIBCL>

Related: Trying to run ipmitool and receive an error where it can’t find the ipmi device

Update HP iLO Firmware on HP Proliant

To update the HP iLO, go to this page http://h18013.www1.hp.com/products/servers/management/iloadv3/index.html and under the section Products Firmware and Tools, click on the version that your server has and download the firmware.

Download the file according to your Operating System. My OS is a Red Hat Enterprise Linux 5, so I downloaded the file and then copied to the server.

iLO 1 v.1.96 – CP023365.scexe
iLO 2 v.2.29 – CP027871.scexe
iLO 3 v.1.20 – CP014002.scexe
You first need to have at least iLO 3 version 1.20 to update to later versions
iLO 3 v.1.85 – CP026424.scexe
iLO 4 v.2.30 – CP026236.scexe

To update, you run the file as shown below

root@linux:/tmp # bash ./CP018561.scexe

FLASH_iLO3 v1.09 for Linux (Jan 23 2013)
(C) Copyright 2002-2013 Hewlett-Packard Development Company, L.P.
Firmware image: ilo3_155.bin
Current iLO 3 firmware version 1.26; Serial number ILOBRC14004X5

Component XML file: CP018561.xml
CP018561.xml reports firmware version 1.55
This operation will update the firmware on the
iLO 3 in this server with version 1.55.
Continue (y/N)?y
Current firmware is 1.26 (Aug 26 2011 )
Firmware image is 0x801664(8394340) bytes
Committing to flash part…
******** DO NOT INTERRUPT! ********
Flashing is underway… 67 percent programmed. –

After the flashing finishes, wait a few minutes for iLO to restart

******** DO NOT INTERRUPT! ********
Flashing completed.
Attempting to reset device.
Succeeded.
***** iLO 3 reboot in progress (may take up to 60 seconds.)
***** Please ignore console messages, if any.
iLO 3 reboot completed.

If the update fails, follow the instructions on this page Error when updating iLO2 in HP Proliant to unpack the files in the self-executable and try to update the iLO using the web interface.

Connecting to HP iLO using the command line

Just ssh to the IP that you configured the iLO

emerson@shellcore:~ $ ssh emerson@192.168.50.118
emerson@192.168.50.118’s password:
User:Emerson Takahashi logged-in to ILO_TESTLABHP.(192.168.50.118)
iLO 2 Advanced Evaluation 1.81 at 11:05:47 Jan 15 2010
Server Name: proliant_g5
Server Power: On

hpiLO->

Since I will access through a text terminal, Linux is configured to use the serial port (configured through the file /boot/grub/grub.conf)

hpiLO-> help
status=0
status_tag=COMMAND COMPLETED

DMTF SMASH CLP Commands:

help : Used to get context sensitive help.
show : Used to show values of a property or contents of a collection target.
create : Used to create new user account in the name space of the MAP.
Example: create /map1/accounts1 username= password=
name=
group=

delete : Used to delete user account in the name space of the MAP.
Example: delete /map1/accounts1/

load : Used to move a binary image from an URL to the MAP. The URL is
limited to 80 characters
Example : load -source http://192.168.1.1/images/fw/iLO2_130.bin

reset : Used to cause 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

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 from this iLO 2.
Example : oemhp_ping 192.168.1.1 , where 192.168.1.1 is the IP address that you wish
to ping

oemhp_loadSSHKey : Used to authorize a SSH Key File from an URL The URL is
limited to 80 characters
Example : oemhp_loadSSHKey -source http://UserName:password@192.168.1.1/images/SSHkey1.ppk

HP CLI Commands:

POWER : Control server power.
UID : Control Unit-ID light.
NMI : Generate an NMI.
VM : Virtual media commands.
VSP : Invoke virtual serial port.

Type VSP and you’re in. To login as root you need to include the serial port (in this case ttyS1) on your /etc/securetty file or you will be given the error message that your user or password is wrong.

hpiLO-> VSP

Starting virtual serial port.
Press ‘ESC (‘ to return to the CLI Session.

hpiLO-> Virtual Serial Port active: IO=0x02F8 INT=3

login as:

To exit, press Esc and then ( – left parenthesis

Also Discover HP iLO IP address in Linux
Discover the IP address of ILO in a HP Integrity server

Contacting Onboard Administrator and accessing iLO for an HP Integrity through command line

%d bloggers like this: