Server Management - Remote Server Management
1752278 Members
4916 Online
108786 Solutions
New Discussion

scripts for creating ilo usernames on mutiple servers

 
Andrew_R
Advisor

scripts for creating ilo usernames on mutiple servers

Hi all.

I have a project to do which requires creating a read only ilo user account on +- 300 ProLiant rack and blade server. They cover the whole range of ilo from 2 to 5 but the bulk are gen 7- Gen 9 servers.

Are there any ilo powershell or similar scripts I could use to automate this process so that I don't have to log onto each ilo to do this?

Thanks for the help

Andrew

 

 

 

 

1 REPLY 1
Jimmy Vance
HPE Pro

Re: scripts for creating ilo usernames on mutiple servers

There may be something for powershell, but I've always used the RIBCL scripts for Linux (and Windows)

HPE Lights-Out XML Scripting Sample for Windows
https://support.hpe.com/hpsc/swd/public/detail?swItemId=MTX_98ea081cc4bf42c08044b65f39#tab-history

HPE Lights-Out XML PERL Scripting Sample for Linux
https://support.hpe.com/hpsc/swd/public/detail?swItemId=MTX_76bfa460792d4f7cbc0aac234e

HPE iLO 5 Scripting and Command Line Guide 
https://support.hpe.com/hpsc/doc/public/display?docId=a00018323en_us

Add_User.xml

 

<!--         RIBCL Sample Script for HP Lights-Out Products          -->
<!--Copyright (c) 2015 Hewlett-Packard Development Company, L.P.     -->

<!-- Description:  This is a sample XML script to add a user to the  -->
<!--               database of local user on following devices:      -->
<!--                 Integrated Lights-Out 4 (iLO 4)                 -->
<!--                 Integrated Lights-Out 3 (iLO 3)                 -->
<!--                 Integrated Lights-Out 2 (iLO 2)                 -->

<!-- NOTE:  You will need to replace the USER_LOGIN and PASSWORD     -->
<!--        and other values inside the quotation marks with values  -->
<!--        that are appropriate for your environment.               -->

<!--        You might need to tailor this script for the firmware    -->
<!--        running on your Lights-Out device according to the       -->
<!--        information in "Firmware support information" comment(s).-->

<!--        Use CPQLOCFG.EXE ver 4.20 or greater for iLO2 and        -->
<!--        HPQLOCFG.EXE ver 1.00 or greater for iLO 3 and iLO 4     -->
<!--        with this script.                                        -->

<!--        This script was written for iLO 4 firmware version 1.01  -->
<!--        release.                                                 -->

<!--        See "HP Integrated Lights-Out Management Processor       -->
<!--        Scripting and Command Line Resource Guide" for more      -->
<!--        information on scripting and the syntax of the RIBCL     -->
<!--        XML.                                                     -->

<!--        Firmware support information for this script:            -->
<!--            iLO 4 - All versions.                                -->
<!--            iLO 3 - All versions.                                -->
<!--            iLO 2 - All versions.                                -->

<RIBCL VERSION="2.0">
   <LOGIN USER_LOGIN="adminname" PASSWORD="password">
      <USER_INFO MODE="write">
         <ADD_USER
           USER_NAME="User"
           USER_LOGIN="username"
           PASSWORD="password">
            <ADMIN_PRIV value ="N"/>
            <REMOTE_CONS_PRIV value ="Y"/>
            <RESET_SERVER_PRIV value ="N"/>
            <VIRTUAL_MEDIA_PRIV value ="N"/>            
            <CONFIG_ILO_PRIV value="Yes"/>
         </ADD_USER>
      </USER_INFO>
   </LOGIN>
</RIBCL>

 


 

No support by private messages. Please ask the forum!