<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Script for AD Groups? in Server Management - Remote Server Management</title>
    <link>https://community.hpe.com/t5/server-management-remote-server/script-for-ad-groups/m-p/4098905#M3042</link>
    <description>Now that you have a script with the desired settings, deploying it over the network will be straight-forward.&lt;BR /&gt;(There is a way to deploy the script from the local server to iLO without using the network, but I'll skip that for now).&lt;BR /&gt;&lt;BR /&gt;The nice thing is that for the directory settings script, the same configuration can be used for all iLO processors, so you do not have to alter the content per-node.  There is a way to do this using some variable substitution capabilities.  In fact, username and password override values are used below.&lt;BR /&gt;&lt;BR /&gt;You will need the following information for each iLO beforehand:&lt;BR /&gt; - iLO network name or IP address&lt;BR /&gt; - valid credentials for an iLO account with "configure iLO" rights&lt;BR /&gt;&lt;BR /&gt;You can use a batch file or the command-line to push the settings out, like this:&lt;BR /&gt;c:\iLO&amp;gt;cpqlocfg -s ilo-new -f set_dir_params.xml -u Admin -p topsecret &lt;BR /&gt;c:\iLO&amp;gt;cpqlocfg -s 192.168.1.1 -f set_dir_params.xml -u Admin -p topsecret &lt;BR /&gt;c:\iLO&amp;gt;cpqlocfg -s 192.168.1.2 -f set_dir_params.xml -u Admin -p opensesame&lt;BR /&gt;c:\iLO&amp;gt;cpqlocfg -s 192.168.1.3 -f set_dir_params.xml -u Admin -p knockknock&lt;BR /&gt;c:\iLO&amp;gt;cpqlocfg -s 192.168.1.4 -f set_dir_params.xml -u Admin -p H4x0rD00dZ&lt;BR /&gt;c:\iLO&amp;gt;cpqlocfg -s 192.168.1.5 -f set_dir_params.xml -u Admin -p UR2good4Me&lt;BR /&gt;c:\iLO&amp;gt;cpqlocfg -s 192.168.1.6 -f set_dir_params.xml -u Admin -p FXR1stR8 &lt;BR /&gt;c:\iLO&amp;gt;cpqlocfg -s 192.168.1.7 -f set_dir_params.xml -u Admin -p puT863MoX &lt;BR /&gt;c:\iLO&amp;gt;cpqlocfg -s 192.168.1.8 -f set_dir_params.xml -u Admin -p No50WaY2&lt;BR /&gt;c:\iLO&amp;gt;cpqlocfg -s 192.168.1.9 -f set_dir_params.xml -u Admin -p GUessTHis&lt;BR /&gt;c:\iLO&amp;gt;cpqlocfg -s 192.168.1.10 -f set_dir_params.xml -u Admin -p 9fiNgeRS&lt;BR /&gt;&lt;BR /&gt;(I'll admit, I got the passwords from googling "password")&lt;BR /&gt;&lt;BR /&gt;If you do not know the iLO network addresses in advance, this can be a hassle!&lt;BR /&gt;HP provides a free utility (Windows only), in the Directories Support for Management Processors, that can scan the network for possible iLO candidates and save the results to a comma-delimited file.&lt;BR /&gt;HP-Systems Insight Manager can also do this (network discovery).&lt;BR /&gt;&lt;BR /&gt;Once you have the list of nodes and credentials, it is a matter of massaging the data into the batch file.  I recommend trying it out on a node and being comfortable with the results before unleashing it on the network!&lt;BR /&gt;&lt;BR /&gt;-&amp;gt; Hiccups and problems along the way&lt;BR /&gt;You will probably discover that not all your iLOs have the same version of firmware.  You can use the same technique to push out the latest firmware version using the example script update_firmware.xml&lt;BR /&gt;&lt;BR /&gt;You may also discover that not all your iLOs have license keys installed (a requirement for directory integration support).  You can push out license keys by modifying the License.xml example.&lt;BR /&gt;&lt;BR /&gt;-&amp;gt; Miscellaneous&lt;BR /&gt;The CPQLOCFG utility returns an errorcode that I believe is 0 on successful execution and non-zero if there is a hiccup.  You can test this to see if an error occurred.&lt;BR /&gt;&lt;BR /&gt;The CPQLOCFG utility also records the output for a script in a text file with the name &lt;NAME&gt; following the "-s" parameter.  Again, useful if you are troubleshooting.&lt;BR /&gt;&lt;BR /&gt;-&amp;gt; No access&lt;BR /&gt;If you find yourself in a situation where you cannot login to an iLO, you have a few possibilities&lt;BR /&gt;- you can read the sticker on the server that records the default Administrator password&lt;BR /&gt;- you can manually set the security override switch which opens all access (do not leave it this way!)&lt;BR /&gt;- you can use the HPONCFG utility that runs in the host OS to push the settings to iLO.  iLO assumes host Administrators have script access, so "in target" scripts are accepted, to assist deployment.&lt;BR /&gt;&lt;BR /&gt;-&amp;gt; Downloads&lt;BR /&gt;Utilities and samples can be downloaded starting here:&lt;BR /&gt;&lt;A href="http://h18004.www1.hp.com/support/files/lights-out/us/index.html" target="_blank"&gt;http://h18004.www1.hp.com/support/files/lights-out/us/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Documentation can be downloaded here:&lt;BR /&gt;&lt;A href="http://h20000.www2.hp.com/bizsupport/TechSupport/DocumentIndex.jsp?contentType=SupportManual" target="_blank"&gt;http://h20000.www2.hp.com/bizsupport/TechSupport/DocumentIndex.jsp?contentType=SupportManual&lt;/A&gt;〈=en&amp;amp;cc=us&amp;amp;docIndexId=179111&amp;amp;taskId=101&amp;amp;prodTypeId=18964&amp;amp;prodSeriesId=397989&lt;BR /&gt;&lt;/NAME&gt;</description>
    <pubDate>Tue, 13 Nov 2007 10:24:41 GMT</pubDate>
    <dc:creator>acartes</dc:creator>
    <dc:date>2007-11-13T10:24:41Z</dc:date>
    <item>
      <title>Script for AD Groups?</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/script-for-ad-groups/m-p/4098900#M3037</link>
      <description>We are integrating iLO into AD, and have been successful in testing it.  Now we want to deploy it to multiple servers and use Groups in AD.  The “HP iLO Management Processor Scripting and Command Line Resource Guide” does not have any reference to adding groups.  We would like to script this so we can deploy it without manually configuring each server.&lt;BR /&gt;&lt;BR /&gt;Does anyone have any info/experience in doing this?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Joh&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Nov 2007 14:56:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/script-for-ad-groups/m-p/4098900#M3037</guid>
      <dc:creator>John J DiMack</dc:creator>
      <dc:date>2007-11-07T14:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Script for AD Groups?</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/script-for-ad-groups/m-p/4098901#M3038</link>
      <description>There are a few ways to rollout iLO using scripting.  Note that directory integration requires an iLO license.  The scripting principle applies to most iLO settings.&lt;BR /&gt;&lt;BR /&gt;You can use RIBCL scripts to configure iLO from within the host (i.e. from Windows to iLO in the box) and across the network (from Windows or Linux to a target iLO on the network).&lt;BR /&gt;&lt;BR /&gt;Documentaton here:&lt;BR /&gt;&lt;A href="http://h20000.www2.hp.com/bizsupport/TechSupport/DocumentIndex.jsp?contentType=SupportManual" target="_blank"&gt;http://h20000.www2.hp.com/bizsupport/TechSupport/DocumentIndex.jsp?contentType=SupportManual&lt;/A&gt;〈=en&amp;amp;cc=us&amp;amp;docIndexId=179111&amp;amp;taskId=101&amp;amp;prodTypeId=18964&amp;amp;prodSeriesId=397989&lt;BR /&gt;Linux samples here:&lt;BR /&gt;&lt;A href="http://h18004.www1.hp.com/support/files/lights-out/us/revision/8645.html" target="_blank"&gt;http://h18004.www1.hp.com/support/files/lights-out/us/revision/8645.html&lt;/A&gt;&lt;BR /&gt;Windows samples here:&lt;BR /&gt;&lt;A href="http://h18004.www1.hp.com/support/files/lights-out/us/revision/8238.html" target="_blank"&gt;http://h18004.www1.hp.com/support/files/lights-out/us/revision/8238.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Probably the fastest way to get the script to use is to retrieve the settings from one of your configured devices.  A script like this (get_directory.xml) will retrieve them:&lt;BR /&gt;&lt;RIBCL version="2.0"&gt;&lt;BR /&gt;  &lt;LOGIN user_login="admin" password="password"&gt;&lt;BR /&gt;    &lt;DIR_INFO mode="read"&gt;&lt;BR /&gt;      &lt;GET_DIR_CONFIG&gt;&lt;/GET_DIR_CONFIG&gt;&lt;BR /&gt;    &lt;/DIR_INFO&gt;&lt;BR /&gt;  &lt;/LOGIN&gt;&lt;BR /&gt;&lt;/RIBCL&gt;&lt;BR /&gt;&lt;BR /&gt;used like this:&lt;BR /&gt;C:\iLO&amp;gt;cpqlocfg -s iloname -f get_directory.xml -u Administrator -p topsecret&lt;BR /&gt;&lt;BR /&gt;Extract mod_schemaless_directory.xml, apply the desired changes, and save (set_dir_parms.xml)&lt;BR /&gt;&lt;BR /&gt;Then push it out to a new iLO:&lt;BR /&gt;&lt;BR /&gt;c:\ilo_cpqlocfg -s ilo-new -f set_dir_params.xml -u Administrator -p topsecret</description>
      <pubDate>Wed, 07 Nov 2007 16:18:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/script-for-ad-groups/m-p/4098901#M3038</guid>
      <dc:creator>acartes</dc:creator>
      <dc:date>2007-11-07T16:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Script for AD Groups?</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/script-for-ad-groups/m-p/4098902#M3039</link>
      <description>Attached is a possible sample script you can examine.</description>
      <pubDate>Wed, 07 Nov 2007 16:21:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/script-for-ad-groups/m-p/4098902#M3039</guid>
      <dc:creator>acartes</dc:creator>
      <dc:date>2007-11-07T16:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Script for AD Groups?</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/script-for-ad-groups/m-p/4098903#M3040</link>
      <description>&amp;gt;&amp;gt; I did copy down Microsoft's XML Notepad and cobbled a file together from several of the samples. I get an error on the very first line, which I can't figure out.&lt;BR /&gt;&lt;BR /&gt;RIBCL is a little special and the output from regular XML editors usually has problems like that.&lt;BR /&gt;&lt;BR /&gt;The good thing is that the XML files are ASCII text (like HTML), so you can edit them using a standard editor (vi, notepad, etc).&lt;BR /&gt;&lt;BR /&gt;Clean-out the XML lines so the script starts with &lt;RIBCL version="2.0"&gt; and ends with &lt;/RIBCL&gt;.</description>
      <pubDate>Mon, 12 Nov 2007 13:44:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/script-for-ad-groups/m-p/4098903#M3040</guid>
      <dc:creator>acartes</dc:creator>
      <dc:date>2007-11-12T13:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Script for AD Groups?</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/script-for-ad-groups/m-p/4098904#M3041</link>
      <description>Thanks, again.&lt;BR /&gt;&lt;BR /&gt;It all worked, just as advertised!  Using Notepad, the text editor, made it much easier, at least for me.&lt;BR /&gt;&lt;BR /&gt;Now, that you've helped me "walk", can you take me to the next level and show me how to "run"?  I would like to use a script to deploy to multiple servers, preferrably at the same time with the same script.  And, be able to deploy the same script/settings to a single machine over the network.&lt;BR /&gt;&lt;BR /&gt;I really appreciate your time and help.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;John</description>
      <pubDate>Tue, 13 Nov 2007 07:23:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/script-for-ad-groups/m-p/4098904#M3041</guid>
      <dc:creator>John J DiMack</dc:creator>
      <dc:date>2007-11-13T07:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Script for AD Groups?</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/script-for-ad-groups/m-p/4098905#M3042</link>
      <description>Now that you have a script with the desired settings, deploying it over the network will be straight-forward.&lt;BR /&gt;(There is a way to deploy the script from the local server to iLO without using the network, but I'll skip that for now).&lt;BR /&gt;&lt;BR /&gt;The nice thing is that for the directory settings script, the same configuration can be used for all iLO processors, so you do not have to alter the content per-node.  There is a way to do this using some variable substitution capabilities.  In fact, username and password override values are used below.&lt;BR /&gt;&lt;BR /&gt;You will need the following information for each iLO beforehand:&lt;BR /&gt; - iLO network name or IP address&lt;BR /&gt; - valid credentials for an iLO account with "configure iLO" rights&lt;BR /&gt;&lt;BR /&gt;You can use a batch file or the command-line to push the settings out, like this:&lt;BR /&gt;c:\iLO&amp;gt;cpqlocfg -s ilo-new -f set_dir_params.xml -u Admin -p topsecret &lt;BR /&gt;c:\iLO&amp;gt;cpqlocfg -s 192.168.1.1 -f set_dir_params.xml -u Admin -p topsecret &lt;BR /&gt;c:\iLO&amp;gt;cpqlocfg -s 192.168.1.2 -f set_dir_params.xml -u Admin -p opensesame&lt;BR /&gt;c:\iLO&amp;gt;cpqlocfg -s 192.168.1.3 -f set_dir_params.xml -u Admin -p knockknock&lt;BR /&gt;c:\iLO&amp;gt;cpqlocfg -s 192.168.1.4 -f set_dir_params.xml -u Admin -p H4x0rD00dZ&lt;BR /&gt;c:\iLO&amp;gt;cpqlocfg -s 192.168.1.5 -f set_dir_params.xml -u Admin -p UR2good4Me&lt;BR /&gt;c:\iLO&amp;gt;cpqlocfg -s 192.168.1.6 -f set_dir_params.xml -u Admin -p FXR1stR8 &lt;BR /&gt;c:\iLO&amp;gt;cpqlocfg -s 192.168.1.7 -f set_dir_params.xml -u Admin -p puT863MoX &lt;BR /&gt;c:\iLO&amp;gt;cpqlocfg -s 192.168.1.8 -f set_dir_params.xml -u Admin -p No50WaY2&lt;BR /&gt;c:\iLO&amp;gt;cpqlocfg -s 192.168.1.9 -f set_dir_params.xml -u Admin -p GUessTHis&lt;BR /&gt;c:\iLO&amp;gt;cpqlocfg -s 192.168.1.10 -f set_dir_params.xml -u Admin -p 9fiNgeRS&lt;BR /&gt;&lt;BR /&gt;(I'll admit, I got the passwords from googling "password")&lt;BR /&gt;&lt;BR /&gt;If you do not know the iLO network addresses in advance, this can be a hassle!&lt;BR /&gt;HP provides a free utility (Windows only), in the Directories Support for Management Processors, that can scan the network for possible iLO candidates and save the results to a comma-delimited file.&lt;BR /&gt;HP-Systems Insight Manager can also do this (network discovery).&lt;BR /&gt;&lt;BR /&gt;Once you have the list of nodes and credentials, it is a matter of massaging the data into the batch file.  I recommend trying it out on a node and being comfortable with the results before unleashing it on the network!&lt;BR /&gt;&lt;BR /&gt;-&amp;gt; Hiccups and problems along the way&lt;BR /&gt;You will probably discover that not all your iLOs have the same version of firmware.  You can use the same technique to push out the latest firmware version using the example script update_firmware.xml&lt;BR /&gt;&lt;BR /&gt;You may also discover that not all your iLOs have license keys installed (a requirement for directory integration support).  You can push out license keys by modifying the License.xml example.&lt;BR /&gt;&lt;BR /&gt;-&amp;gt; Miscellaneous&lt;BR /&gt;The CPQLOCFG utility returns an errorcode that I believe is 0 on successful execution and non-zero if there is a hiccup.  You can test this to see if an error occurred.&lt;BR /&gt;&lt;BR /&gt;The CPQLOCFG utility also records the output for a script in a text file with the name &lt;NAME&gt; following the "-s" parameter.  Again, useful if you are troubleshooting.&lt;BR /&gt;&lt;BR /&gt;-&amp;gt; No access&lt;BR /&gt;If you find yourself in a situation where you cannot login to an iLO, you have a few possibilities&lt;BR /&gt;- you can read the sticker on the server that records the default Administrator password&lt;BR /&gt;- you can manually set the security override switch which opens all access (do not leave it this way!)&lt;BR /&gt;- you can use the HPONCFG utility that runs in the host OS to push the settings to iLO.  iLO assumes host Administrators have script access, so "in target" scripts are accepted, to assist deployment.&lt;BR /&gt;&lt;BR /&gt;-&amp;gt; Downloads&lt;BR /&gt;Utilities and samples can be downloaded starting here:&lt;BR /&gt;&lt;A href="http://h18004.www1.hp.com/support/files/lights-out/us/index.html" target="_blank"&gt;http://h18004.www1.hp.com/support/files/lights-out/us/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Documentation can be downloaded here:&lt;BR /&gt;&lt;A href="http://h20000.www2.hp.com/bizsupport/TechSupport/DocumentIndex.jsp?contentType=SupportManual" target="_blank"&gt;http://h20000.www2.hp.com/bizsupport/TechSupport/DocumentIndex.jsp?contentType=SupportManual&lt;/A&gt;〈=en&amp;amp;cc=us&amp;amp;docIndexId=179111&amp;amp;taskId=101&amp;amp;prodTypeId=18964&amp;amp;prodSeriesId=397989&lt;BR /&gt;&lt;/NAME&gt;</description>
      <pubDate>Tue, 13 Nov 2007 10:24:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/script-for-ad-groups/m-p/4098905#M3042</guid>
      <dc:creator>acartes</dc:creator>
      <dc:date>2007-11-13T10:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Script for AD Groups?</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/script-for-ad-groups/m-p/4098906#M3043</link>
      <description>Wahoo!&lt;BR /&gt;&lt;BR /&gt;Yes, it works and works great!&lt;BR /&gt;&lt;BR /&gt;Thank you, thank you, thank you!&lt;BR /&gt;&lt;BR /&gt;I appreaciate that you stayed with me.  Again, many thanks.&lt;BR /&gt;John</description>
      <pubDate>Wed, 14 Nov 2007 11:00:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/script-for-ad-groups/m-p/4098906#M3043</guid>
      <dc:creator>John J DiMack</dc:creator>
      <dc:date>2007-11-14T11:00:50Z</dc:date>
    </item>
  </channel>
</rss>

