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: , ,

Wednesday, March 23, 2011

Linux Interview Questions

An Linux User is able to do ftp, but not able to login to the server, why?
Command to list LUN multipathing
How to identify whether a Hard Disk Drive is faulty and if there is any IO delay?