Samstag, 21. Dezember 2013

ESXI

Thanks to HP drivers, ILO can be configured directly inside ESXi without the need for a server reboot: going into the command line (locally or via ssh) you can move to /opt/hp/tools, and there you will find the commandhponcfg. This tool can be used to configure ILO:
first, write down the actual configuration of ILO. The easiest way to do it is by saving in an XML file:

1

/opt/hp/tools# ./hponcfg -w ilo.xml

2

HP Lights-Out Online Configuration utility

3

Version 4.0-10 (c) Hewlett-Packard Company, 2011

4

Firmware Revision = 1.81 Device type= iLO 2 Driver name = hpilo

5

Management Processor configuration is successfully written to file"ilo.xml"

then, edit the XML file and configure your desired parameters:

01

<!-- HPONCFG VERSION = "4.0-10.0" -->

02

<!-- Generated 8/6/2012 11:11:4 -->

03

<RIBCLVERSION="2.1">

04

<LOGINUSER_LOGIN="Administrator"PASSWORD="password">

05

<RIB_INFOMODE="write">

06

<MOD_NETWORK_SETTINGS>

07

<SPEED_AUTOSELECTVALUE= "Y"/>

08

<IP_ADDRESSVALUE= "10.123.183.197"/>

09

<SUBNET_MASKVALUE= "255.255.255.0"/>

10

<DNS_NAMEVALUE= "esx-ilo"/>

11

<DHCP_ENABLEVALUE= "N"/>

12

<DOMAIN_NAMEVALUE= "domain.local"/>

13

</MOD_NETWORK_SETTINGS>

14

</RIB_INFO>

15

</LOGIN>

16

</RIBCL>

Note: you will not need to edit everytime all the parameters, it will be enough to add the lines you want to change. But, you will always have to add the username and password line to authenticate the changes you are doing.load the new configuration into the ILO, it will take some time to complete:

1

/opt/hp/tools# ./hponcfg -f ilo.xml

2

HP Lights-Out Online Configuration utility

3

Version 4.0-10 (c) Hewlett-Packard Company, 2011

4

Firmware Revision = 1.81 Device type= iLO 2 Driver name = hpilo

5

<INFORM>Integrated Lights-Out will reset at the end of the script.</INFORM>

6

7

Please wait whilethe firmware is reset. This might take a minute

8

Script succeeded

Finally, ILO will automatically reset to load the new parameters, and you will be able to reach the ILO via web interface and login into it. Also, ESXi will show you the new ILO configuration:

6. Using notepad, I opened up the sample file and modified it slightly. Initially, I just removed the LOGIN and ran the file but HPONCFG gave me a syntax error. I then added it back and gave the Administrator a bogus password. Apparently, the LOGIN line is required for syntax reasons but it is not actually processed.
7. Next, I opened a command line and changed directories to C:\hp\ilo and typed the following:
HPONCFG.exe /f Administrator_reset_pw.xml /l log.txt > output.txt

8. I opened up Firefox, navigated to my iLO machine and voila! I was able to login as Administrator.

If changing Administrator's password seems too scary, you can also add another user with administrator privileges. You can then login as that user and change the Administrator password via the web console. Use the following code, suited to your liking: