Copy an HPE BladeSystem Onboard Administrator configuration script

Copy an existing configuration script from the Logical Enclosures or Enclosure Groups screen.

Get a copy of an existing configuration script from a logical enclosure or enclosure group.

Prerequisites
  • Privileges: Server administrator

  • Session ID privileges: Server administrator

Procedure
  1. From the main menu, select one of the following:
    • Logical Enclosures > Edit
    • Enclosure Groups > Edit
  2. Copy the configuration script, and then click Cancel to close the Edit screen.
  3. Paste the configuration script into another Logical Enclosures or Enclosure Groups Edit screen.
  4. Click OK.
    NOTE:

    Copied configuration scripts could contain disallowed commands that leave the enclosure unusable. When you apply a configuration script to a logical enclosure, you are notified of disallowed commands and the script is not allowed to run. You must edit the configuration script and remove the disallowed commands before the script can be applied.

Copying an Onboard Administrator configuration script using REST APIs

When you perform a GET operation on a logical enclosure or enclosure group, the script URI is returned inside of the response body. You can copy this script, make updates, and then reapply (PUT) the script to another enclosure.

  1. Select an enclosure or enclosure group.

    GET /rest/enclosures

    GET /rest/enclosure-groups

  2. Get the enclosure or enclosure group using the URI from step 1.

    GET {id}/rest/enclosures/

    GET {id}/rest/enclosure-groups/

  3. Get the script using the configuration script URI returned in step 2.

    GET {id}/rest/logical-enclosures//script

More information