Change ILO IP address via CLI on HP C7000 Blade Chassis

You need to change the ILO IP on an HP blade. You don’t have access to blade except via SSH to the HP C7000 Chassis.

Here is how:

1. Connect to the C7000 chassis:

HP BladeSystem Onboard Administrator
(C) Copyright 2006-2012 Hewlett-Packard Development Company, L.P.

Type ‘HELP’ to display a list of valid commands.
Type ‘HELP ‘ to display detailed information about a specific command.
Type ‘HELP HELP’ to display more detailed information about the help system.

2. Connect to the blade via the C7000 chassis CLI:
c7000-1> connect server 8

Connecting to bay 8 …
User:OAtmp-administrator logged-in to c7000-1(10.10.10.101)
iLO 2 Standard Blade Edition 1.80 at 10:12:14 Oct 30 2009
Server Name: host is unamed
Server Power: On

hpiLO->

3. Show the existing IP and Gateway:

hpiLO-> show /map1/enetport1/lanendpt1/ipendpt1
status=0
status_tag=COMMAND COMPLETED

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

hpiLO->show gateway1
status=0
status_tag=COMMAND COMPLETED

/map1/gateway1
Targets
Properties
AccessInfo=10.150.240.1
AccessContext=Default Gateway
Verbs
cd version exit show set

4. Change the IP (requires reboot):
hpiLO->set /map1/enetport1/lanendpt1/ipendpt1 IPv4Address=10.13.247.222 SubnetMask=255.255.240.0
status=0
status_tag=COMMAND COMPLETED
Network settings change applied, iLO needs to be reset.

CLI session stopped

Connection terminated by server.

5. After the reboot, follow steps 1-3, and now change the Gateway (requires reboot):
hpiLO->set /map1/gateway1 AccessInfo=10.13.240.1
status=0
status_tag=COMMAND COMPLETED
Network settings change applied, iLO needs to be reset.

CLI session stopped

Configure HP ILO via ESXi CLI – Reset ILO Password via ESXi CLI

The HP server must have been installed with the HP ESXi ISO -or- Updated via VMware Update Manager (VUM) with the latest vibs from vibsdepot.hp.com.

The process to configure the ILO is as follows:

1.  SSH to the ESXi host

2. cd /opt/hp/tools

3. Export the current config:   ./hponcfg -w /tmp/ilo_config.txt

4. Edit the above export config file (/tmp/ilo_config.txt) and change the following variables:

<IP_ADDRESS VALUE = “10.10.10.20”/>
<SUBNET_MASK VALUE = “255.255.255.0”/>
<GATEWAY_IP_ADDRESS VALUE = “10.10.10.1”/>
<DHCP_ENABLE VALUE = “N”/>

5. Flash the updated config to the ILO:   ./hponcfg -f /tmp/ilo_config.txt

[Let the ILO restart]

6. You must now reset the Administrator password.    Create the file:   reset_admin_pw.xml with the below info and add the new password in the password section:

<ribcl VERSION="2.0">
<login USER_LOGIN="Administrator" PASSWORD="YOUR-NEW-PASSWORD">
<user_INFO MODE="write">
<mod_USER USER_LOGIN="Administrator">
<password value="newpass"/>
</mod_USER>
</user_INFO>
</login>
</ribcl>

7. Flash “reset_admin_pw.xml” to the ILO:   ./hponcfg -f reset_admin_pw.xml

8.  Done.    You should be able to reach the ILO web management interface and login as Administrator.