Setting HP iLO Name

blade-serverhpilo

I need to change the iLO names that show up in "show server list" per client request. The methodology I currently use is very slow (~25 minutes per chassis).

connect server N
set /system1 oemhp_server_name=ABC123
set /map1/dnsendpt1 Hostname=ABC123
{wait for prompt to return}

The above process is repeated for each blade in the chassis (16 per). Does anyone know of a faster methodology to do this exercise?

Best Answer

you can make use of RIBCL scrpting language and perform those changes without connecting to each blade. From OA CLI interface run hponcfg tool.

To change server names:

OA> hponcfg bay_number << EOF
    <RIBCL VERSION="2.0">
        <LOGIN PASSWORD="user" USER_LOGIN="password">
        <SERVER_INFO MODE="write">
        <SERVER_NAME value="NewServerName"/>
        </SERVER_INFO>
        </LOGIN>
    </RIBCL>
    EOF

To change iLO names (iLO of the blade is reset automatically at the successful application of RBCL script):

OA> hponcfg bay_number <<EOF
<RIBCL VERSION="2.0">
<LOGIN USER_LOGIN="user" PASSWORD="password">
<RIB_INFO MODE="write">
<MOD_NETWORK_SETTINGS>
  <DNS_NAME value=" NewILOName" />
</MOD_NETWORK_SETTINGS>
</RIB_INFO>
</LOGIN>
</RIBCL>
EOF