HiperLogic

Virtualization, High Performance Computing, Healthcare IT, Enterprise Computing

Automatically configuring HP ILO on HPC Server 2008

ILO is a management port on HP servers that allow you to power nodes on and off, obtain sensor information, and other useful management tasks. You can save a lot of time when trying to configure the ILO management port on HP cluster nodes by scripting the ILO configuration with HP tools.

At a high level, to automatically configure ILO you feed the HP hponcfg.exe tool XML fragments which automatically configure ILO to your specifications.

I typically like the ILO management port to be configured to use DHCP, set the ILO hostname to be -ilo, and have SSH enabled. I normally set the username and password to be the same on each cluster blade.
First, download the hponcfg.exe tool from the HP website and put it on a share accessible to the compute nodes.

The first item it to set all compute nodes to have the same ILO name and password. In this example, I will just set them to Administrator/Administrator ( obviously you will want to change that!)

To reset the password create a file named reset_pass.xml on a share accessible from the compute nodes with the following contents:

<RIBCL VERSION="2.0">
 <LOGIN USER_LOGIN="Administrator" PASSWORD="Administrator">
  <USER_INFO MODE="write">
   <MOD_USER USER_LOGIN="Administrator">
    <PASSWORD value="Administrator"/>
   </MOD_USER>
  </USER_INFO>
 </LOGIN>
</RIBCL>

Then run this command to execute the password reset on all nodes, via clusrun or other mechanism ( psexec if you are not on HPC Server 2008):

hponcfg /f reset_pass.xml

Next, lets reset the ILO hostname to -ilo and enable DHCP. Create a batch file with the following contents, copy it to the temp directory on each node, and execute it on each node via clusrun.

for /f "delims=" %%a in ('hostname') do @set HOSTNAME=%%a
echo ^<RIBCL VERSION="2.1"^> >> network.xml > network.xml
echo ^<LOGIN USER_LOGIN="Administrator" PASSWORD="Administrator"^> >> network.xml
echo   ^<DIR_INFO MODE="write"^> >> network.xml
echo   ^<MOD_DIR_CONFIG^> >> network.xml
echo     ^<DIR_AUTHENTICATION_ENABLED VALUE = "N"/^> >> network.xml
echo     ^<DIR_LOCAL_USER_ACCT VALUE = "Y"/^> >> network.xml
echo     ^<DIR_SERVER_ADDRESS VALUE = ""/^> >> network.xml
echo     ^<DIR_SERVER_PORT VALUE = "636"/^> >> network.xml
echo     ^<DIR_OBJECT_DN VALUE = ""/^> >> network.xml
echo     ^<DIR_OBJECT_PASSWORD VALUE = ""/^> >> network.xml
echo     ^<DIR_USER_CONTEXT_1 VALUE = ""/^> >> network.xml
echo     ^<DIR_USER_CONTEXT_2 VALUE = ""/^> >> network.xml
echo     ^<DIR_USER_CONTEXT_3 VALUE = ""/^> >> network.xml
echo   ^</MOD_DIR_CONFIG^> >> network.xml
echo   ^</DIR_INFO^> >> network.xml
echo   ^<RIB_INFO MODE="write"^> >> network.xml
echo   ^<MOD_NETWORK_SETTINGS^> >> network.xml
echo     ^<SPEED_AUTOSELECT VALUE = "Y"/^> >> network.xml
echo     ^<NIC_SPEED VALUE = "10"/^> >> network.xml
echo     ^<FULL_DUPLEX VALUE = "N"/^> >> network.xml
echo     ^<DHCP_ENABLE VALUE = "Y"/^> >> network.xml
echo     ^<DHCP_GATEWAY VALUE = "Y"/^> >> network.xml
echo     ^<DHCP_DNS_SERVER VALUE = "Y"/^> >> network.xml
echo     ^<DHCP_STATIC_ROUTE VALUE = "Y"/^> >> network.xml
echo     ^<DHCP_WINS_SERVER VALUE = "Y"/^> >> network.xml
echo     ^<REG_WINS_SERVER VALUE = "Y"/^> >> network.xml
echo     ^<DNS_NAME VALUE = "%HOSTNAME%"/^> >> network.xml
echo     ^<DOMAIN_NAME VALUE = "mydomainname.com"/^> >> network.xml
echo     ^<SEC_WINS_SERVER value = "0.0.0.0"/^> >> network.xml
echo     ^<STATIC_ROUTE_1 DEST = "0.0.0.0" GATEWAY = "0.0.0.0"/^> >> network.xml
echo     ^<STATIC_ROUTE_2 DEST = "0.0.0.0" GATEWAY = "0.0.0.0"/^> >> network.xml
echo     ^<STATIC_ROUTE_3 DEST = "0.0.0.0" GATEWAY = "0.0.0.0"/^> >> network.xml
echo   ^</MOD_NETWORK_SETTINGS^> >> network.xml
echo   ^</RIB_INFO^> >> network.xml
echo  ^</LOGIN^> >> network.xml
echo ^</RIBCL^> >> network.xml

hponcfg /f network.xml

Finally, lets enable SSH for ILO. Put the following contents in a file called ssh.xml, copy it to a share and run hponcfg /f ssh.xml via clusrun

<RIBCL VERSION="2.0">
  <LOGIN USER_LOGIN="Administrator" PASSWORD="Password">
  <RIB_INFO MODE="write">
    <MOD_GLOBAL_SETTINGS>
      <SSH_PORT value="22"/>
      <SSH_STATUS value="Yes"/>
    </MOD_GLOBAL_SETTINGS>
  </RIB_INFO>
  </LOGIN>
</RIBCL>

For more information, read the extensive HP documentation and examples.

Tags:

© 2006-2010 HiperLogic, LLC.  |  Serving the Ann Arbor, Southeast Michigan, and Ohio region  |  (888)-268-3930  |