hponcfg - Configure iLO IP and Password from Linux

Make sure hponcfg already installed.

To configure iLO need to prepare a XML script (i.e: ilo-ip-setting.xml) as below,

<RIBCL VERSION="2.0">
 <LOGIN USER_LOGIN="xxx" PASSWORD="xxx">
 <RIB_INFO MODE="WRITE" >
 <MOD_NETWORK_SETTINGS>
 <IP_ADDRESS VALUE = "10.10.10.10"/>
 <SUBNET_MASK VALUE = "255.255.255.0"/>
 <GATEWAY_IP_ADDRESS VALUE = "10.10.10.1"/>
 <PRIM_DNS_SERVER value = "0.0.0.0"/>
 <DHCP_ENABLE VALUE = "N"/>
 </MOD_NETWORK_SETTINGS>
 </RIB_INFO>
 </LOGIN>
</RIBCL>

Set IP via hponcfg.
[root@mylnx]# /sbin/hponcfg -f ilo-ip-setting.xml
HP Lights-Out Online Configuration utility
Version 4.6.0 Date 09/28/2015 (c) Hewlett-Packard Company, 2015
Firmware Revision = 1.78 Device type = iLO 2 Driver name = hpilo
<INFORM>Integrated Lights-Out will reset at the end of the script.</INFORM>

Please wait while the firmware is reset. This might take a minute
Script succeeded

To set a password, prepare a XML file something like below,
<RIBCL VERSION="2.0">
  <LOGIN USER_LOGIN="xxx" PASSWORD="xxx">
  <USER_INFO MODE="write">
    <MOD_USER USER_LOGIN="Administrator">
      <PASSWORD value="pa$$word"/>
    </MOD_USER>
  </USER_INFO>
  </LOGIN>

</RIBCL>
Note: the <LOGIN> element must be there, but could be anything such above example.

To get current configuration,
[root@mylnx]# /sbin/hponcfg -w myilo.xml
HP Lights-Out Online Configuration utility
Version 4.6.0 Date 09/28/2015 (c) Hewlett-Packard Company, 2015
Firmware Revision = 1.78 Device type = iLO 2 Driver name = hpilo
Management Processor configuration is successfully written to file "myilo.xml"

And we can read our current configuration in the myilo.xml file.
[root@mylnx]# cat myilo.xml

Ref:
https://support.hpe.com/hpsc/doc/public/display?docId=emr_na-a00007610en_us

0 comments:

Post a Comment