Wednesday, March 21, 2012

iLO Configuration Procedure using hponcfg Utility in Redhat OS


1. INTRODUCTION
This document will serve as a guide to configure iLO using hponcfg utility from the command line of the Operating System without rebooting the server.
This document will cover the following key areas:
Get and Modify Network Settings
Add and Delete iLO User Account
Get and Modify Global Settings
iLO Console Redirection

2. PREREQUISITES
The Redhat Linux Operating System should have been installed with hponcfg utility. This utility can be installed from HP Proliant Support Pack. 
Super user account (root) and password for the OS
iLO administrator’s username and password (but it is not mandatory)
IP Address
Subnet Mask
Gateway
DHCP_ENABLE Yes or No
SSH Port Number
SSH_STATUS Yes or No
TTY Details to redirect the console of the iLO to SSH

3. GET AND MODIFY NETWORK SETTINGS
Step1: Get Network Settings
File Path: /tmp
File: Get-Network-Settings.xml (Optional File Name)
File Content:
<RIBCL VERSION="2.0">
  <LOGIN USER_LOGIN="adminname" PASSWORD="password">
    <RIB_INFO MODE="read">
<GET_NETWORK_SETTINGS/>
    </RIB_INFO>
  </LOGIN>
</RIBCL>
Command:
/sbin/hponcfg –f /tmp/Get-Network-Settings.xml -l /tmp/Get-Network-Settings.out 

Description:
This is to read only the networking settings from the iLO configuration and writing it to a file by specifying “l” which is /tmp/Get-Network-Settings.out in this case.

Step2: Modify Network Settings
File: Mod-Network-Settings.xml
File Content:
<RIBCL VERSION="2.0">
  <LOGIN USER_LOGIN="adminname" PASSWORD="password">
  <RIB_INFO MODE="write">
    <MOD_NETWORK_SETTINGS>    
      <DHCP_ENABLE value="No"/>
      <IP_ADDRESS value="172.16.17.18"/>
      <SUBNET_MASK value="255.255.255.0"/>
      <GATEWAY_IP_ADDRESS value="172.16.17.254"/>
   </MOD_NETWORK_SETTINGS>
  </RIB_INFO>
  </LOGIN>
</RIBCL>
Command:
/sbin/hponcfg -f /tmp/Mod-Network-Settings.xml -l /tmp/Mod-Network-Settings.out
Description:
This is to modify the Network Setting of the iLO Configuration with IP Address, Subnet Mask, Gateway and DHCP and writing the modified configuration to /tmp/Mod-Network-Settings.out file.

4. ADD AND DELETE ILO USER ACCOUNT AND PASSWORD
Step1: Add User Account and Password with Admin Privilege
File: Add-User.xml
File Content:
<RIBCL VERSION="2.0">
  <LOGIN USER_LOGIN="adminname" PASSWORD="password">
  <USER_INFO MODE="write">
    <ADD_USER 
      USER_NAME="user" 
      USER_LOGIN="user" 
      PASSWORD="12345678">
      <ADMIN_PRIV value ="Y"/>
      <REMOTE_CONS_PRIV value ="Y"/>
      <RESET_SERVER_PRIV value ="Y"/>
      <VIRTUAL_MEDIA_PRIV value ="Y"/>
      <CONFIG_ILO_PRIV value="Y"/>
    </ADD_USER>
  </USER_INFO>
  </LOGIN>
</RIBCL>
Command:
/sbin/hponcfg -f /tmp/Add-User.xml -l /tmp/Add-User.out
Description:
This is to Add New User Account (user) and Password (12345678) with Admin Privilege to the iLO Configuration and writing the configuration with the user account to /tmp/Add-User.out file.


Step2: Delete User Account
File: Del-User.xml
File Content:
<RIBCL VERSION="2.0">
  <LOGIN USER_LOGIN="adminname" PASSWORD="password">
  <USER_INFO MODE="write">
    <DELETE_USER USER_LOGIN="username"/>
  </USER_INFO>
  </LOGIN>
</RIBCL>
Command:
/sbin/hponcfg -f /tmp/Del-User.xml -l /tmp/Del-User.out
Description:
This is to Delete the specified User Account on the iLO Configuration and writing the configuration to the /tmp/Del-User.out file.


5. GET AND MODIFY GLOBAL SETTINGS
Step1: Get Global Settings
File: Get-Global-Settings.xml
File Content:
<RIBCL VERSION="2.0">
  <LOGIN USER_LOGIN="adminname" PASSWORD="password">
    <RIB_INFO MODE="read">
<GET_GLOBAL_SETTINGS/>
    </RIB_INFO>
  </LOGIN>
</RIBCL>
Command:
/sbin/hponcfg -f /tmp/Get-Global-Settings.xml -l /tmp/Get-Global-Settings.out
Description:
This is to read only the Global Settings from the iLO configuration and writing it to a file by specifying “l” which is /tmp/Get-Global-Settings.out in this case.

Step2: Modify Global Settings
File: Modify-Global-Settings.xml
File Content:
<RIBCL VERSION="2.0">
  <LOGIN USER_LOGIN="adminname" PASSWORD="password">
  <RIB_INFO MODE="write">
    <MOD_GLOBAL_SETTINGS>
   <SSH_PORT value="22"/>
     <SSH_STATUS value="Y"/>
    </MOD_GLOBAL_SETTINGS>
  </RIB_INFO>
  </LOGIN>
</RIBCL>
Command:
/sbin/hponcfg -f /tmp/Modify-Global-Settings.xml -l /tmp/Modify-Global-Settings.out

Description:
This is to Modify only the Global Settings of the iLO configuration and writing it to a file by specifying “l” which is /tmp/Modify-Global-Settings.out in this case.

6. ILO CONSOLE REDIRECTION
Step1: Configuring TTY
File: /etc/inittab
File Content to be added:
T0:23:respawn:/sbin/mingetty ttyS1 9600 vt100

Step2: Command to Re-Examine the /etc/inittab file
Command:
init q
7. TESTING ILO ACCESS
Method1: Command Line Access
Command:
ssh user@iLO-IP-Address
password: 12345678
You will get a prompt as below
</>hpiLO->
Type “VSP” and hit enter twice to get the Operating System Login Console:
</>hpiLO->VSP
server01 login:
Note: To exit from the Login Prompt, “ ESC + ( “ and to exit from hpiLO prompt, type exit. 


Method2: Browser Access
http://ilo-IP-Address/
Username: user
Password: 12345678


Labels: , ,

6 Comments:

At March 21, 2012 at 2:31 AM , Blogger Prabhu_T said...

My first document.

 
At June 27, 2012 at 8:12 AM , Blogger Tony said...

This article really helped me out with an iLO access issue that I was dealing with. Thank you very much for taking the time to write it!

 
At July 17, 2012 at 12:10 AM , Blogger Prabhu Thiyagarajan said...

You are welcome Tony

 
At August 19, 2015 at 8:19 AM , Blogger Maratha said...

Really help full...thanks

 
At August 29, 2015 at 4:32 PM , Blogger Prabhu Thiyagarajan said...

Thanks Maratha

 
At May 18, 2018 at 3:45 AM , Blogger Ganesh Ponna said...

Hey Brother,


Fully agree on We’re seeing a lot iLO Configuration of projects tackle big complex problems but few seem to have taken into consideration and in particular reasons to adopt.

For my Computing Controlled Assessment I am looking into some of the basic commands for the Linux OS Debian. For the final question I have to write a short essay on using the top command along withps and kill to investigate misbehaving system. The question asks to use help from PC specialists (or just any experienced Debian users). So if anyone could give any information on how a specialist could use these commands and anything helpful in general on these commands. Remember I'm here for information and not an answer.
Anyways great write up, your efforts are much appreciated.
Hey Brother,


Fully agree on #topic. We’re seeing a lot of projects tackle big complex problems but few seem to have taken into consideration and in particular reasons to adopt.

For my Computing Controlled Assessment I am looking into some of the basic commands for the Linux OS Debian. For the final question I have to write a short essay on using the top command along withps and kill to investigate misbehaving system. The question asks to use help from PC specialists (or just any experienced Debian users). So if anyone could give any information on how a specialist could use these commands and anything helpful in general on these commands. Remember I'm here for information and not an answer.
Anyways great write up, your efforts are much appreciated.

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home