Skip to content

Linux on HP Proliant: Reset iLO Network from OS

This is almost similar with my previous post on how to reset Administrator’s password from OS by using hponcfg. This time, I want to reset the iLO network information.

Problem Statement
I’m unable to access iLO from this server. Since I can’t easily go to BIOS to get the network information, I need to use hponcfg which can be done from OS level.

Info
Machine: HP ProLiant BL20p G3
OS: Red Hat Enteprise Linux 3
Kernel: 2.4.21-20.ELsmp

Step-by-step Process

  1. Get current network information,
    1. [01:16 PM]root@cliskmcp01:root > hponcfg -f /home/jmirwan/iLOscript/Get_Network.xml
    2. Firmware Revision = 1.82 Device type = iLO Driver name = cpqci
    3. <GET_NETWORK_SETTINGS>
    4.     <ENABLE_NIC VALUE="Y"/>
    5.     <SPEED_AUTOSELECT VALUE="Y"/>
    6.     <NIC_SPEED VALUE="10"/>
    7.     <FULL_DUPLEX VALUE="N"/>
    8.     <DHCP_ENABLE VALUE="N"/>
    9.     <ENCLOSURE_IP_ENABLE VALUE="N"/>
    10.     <DHCP_GATEWAY VALUE="Y"/>
    11.     <DHCP_DNS_SERVER VALUE="Y"/>
    12.     <DHCP_WINS_SERVER VALUE="Y"/>
    13.     <DHCP_STATIC_ROUTE VALUE="Y"/>
    14.     <DHCP_DOMAIN_NAME VALUE="Y"/>
    15.     <REG_WINS_SERVER VALUE="Y"/>
    16.     <REG_DDNS_SERVER VALUE="Y"/>
    17.     <PING_GATEWAY VALUE="N"/>
    18.     <MAC_ADDRESS VALUE="00:15:60:0d:73:20"/>
    19.     <IP_ADDRESS VALUE="172.21.21.102"/>
    20.     <SUBNET_MASK VALUE="255.255.255.0"/>
    21.     <GATEWAY_IP_ADDRESS VALUE="172.21.20.1"/>
    22.     <DNS_NAME VALUE="ILOT00CMKT25H"/>
    23.     <DOMAIN_NAME VALUE=""/>
    24.     <PRIM_DNS_SERVER VALUE="0.0.0.0"/>
    25.     <SEC_DNS_SERVER VALUE="0.0.0.0"/>
    26.     <TER_DNS_SERVER VALUE="0.0.0.0"/>
    27.     <PRIM_WINS_SERVER VALUE="0.0.0.0"/>
    28.     <SEC_WINS_SERVER VALUE="0.0.0.0"/>
    29.     <STATIC_ROUTE_1 DEST="0.0.0.0"
    30.                     GATEWAY="0.0.0.0"/>
    31.     <STATIC_ROUTE_2 DEST="0.0.0.0"
    32.                     GATEWAY="0.0.0.0"/>
    33.     <STATIC_ROUTE_3 DEST="0.0.0.0"
    34.                     GATEWAY="0.0.0.0"/>
    35. </GET_NETWORK_SETTINGS>
    36. Script succeeded

    In this situation, I notice the gateway value is incorrect. I want to change it to 172.21.21.1

  2. So, I write a simple script to change the gateway value
    1. [01:34 PM]root@cliskmcp01:root > cat Set_iLO_Gateway.xml
    2. <RIBCL VERSION="2.0">
    3.    <LOGIN USER_LOGIN="adminname" PASSWORD="password">
    4.       <RIB_INFO MODE="write">
    5.         <MOD_NETWORK_SETTINGS>
    6.           <GATEWAY_IP_ADDRESS VALUE="172.21.21.1"/>
    7.         </MOD_NETWORK_SETTINGS>
    8.       </RIB_INFO>
    9.    </LOGIN>
    10. </RIBCL>
  3. Run the script to reset the gateway,
    1. [01:16 PM]root@cliskmcp01:root > hponcfg -f Set_iLO_Gateway.xml
    2. Firmware Revision = 1.82 Device type = iLO Driver name = cpqci
    3. Script succeeded

    Done! I’m now able to access iLO :)

Credit to Rodolfo for the idea.

Comments

{ 2 } Comments

  1. 9m2pju | July 24, 2012 at 9:13 pm | Permalink
    Using Google Chrome Google Chrome 20.0.1132.57 on Windows Windows 7

    selamat berpuasa, geek.

    Using Google Chrome Google Chrome 20.0.1132.57 on Windows Windows 7
  2. irwan | July 25, 2012 at 6:38 am | Permalink
    Using Mozilla Firefox Mozilla Firefox 14.0.1 on Windows Windows XP

    Selamat berpuasa juga cik kiju.

    Using Mozilla Firefox Mozilla Firefox 14.0.1 on Windows Windows XP

Post a Comment

Your email is never published nor shared. Required fields are marked *