Sun N1 Service Provisioning System User's Guide for OS Provisioning Plug-In 3.0

Defining a Sun IPMI Target Host

The Sun IPMI target host type is used for several system families, including the Sun FireTM x2100, x4100, x4200, and V20z,systems.

ProcedureHow to Create a Sun IPMI Target Host (Browser Interface)

For this task, the target host is a Sun Intelligent Platform Management Interface (IPMI) system. Specifically, the example defines a x2100 target host.

Steps
  1. In the Common Tasks section of the N1 SPS browser interface, select OS Provisioning.

  2. On the OS Provisioning Common Tasks page, click Create in the Sun IPMI Targets sub-section of the Target Hosts section.

  3. On the Plans Details page, click Run.

  4. Choose variables to use for this plan.

    • To use an existing variables set, select a name from the drop-down menu in the SunIPMI component row of the Plan Parameters table.

    • To create a new variables set, click Select from List in the SunIPMI component row of the Plan Parameters table.

      1. Click Create Set.

      2. Type a name for the variables set.

      3. Verify variables and change them, if needed.

        The prompts in the component variables table are mostly self-explanatory. However, if you need more information, see the detailed list of variables, along with default values and examples in Sun IPMI Target Host Variables.

      4. Decide whether to enter passwords in the variables set or in the plan prompts.

        There are two methods for entering the passwords:

        • Type appropriate values in the following variables:

          ipmi_access_userid

          ipmi_access_password

          ssh_access_userid

          ssh_access_password

          For information about encrypting the passwords, see Password Encryption.

        • Leave the component variables blank and enter the password in the plan prompts provided in the plan run page.

      5. Save the variables set.

      6. Select the variables set that you just saved from the drop-down menu in the SunIPMI component row of the Plan Parameters table.

  5. From the Plan Details Run page, select the provisioning server on which to define the target host.


    Tip –

    The host name of the OS provisioning server ends in -osp.


  6. To encrypt the password from the plan, follow these steps on the Plan Details Run page.

    1. Click the checkbox next to “If you are specifying the IPMI password below.”

    2. Type the password in the Password to Access IPMI field.

      The password encrypts as you type.

    3. Click the checkbox next to “If you are specifying the SSH password below.”

    4. Type the password in the SSH Password to Access the Remote Management Interface field.

      The password encrypts as you type.

  7. Click Run Plan (includes preflight).

  8. To verify that the target host is created successfully, click the Hosts link in the left side of the N1 SPS browser interface.

    You should see the name of the virtual host appended with -target. For example, if you defined a provisioning target for host sunfire-x2100, the virtual host is sunfire-x2100-target.

ProcedureHow to Create a Sun IPMI Target Host (Command-Line Interface)

Steps
  1. To create a variable set for the SunIPMI component, type a command similar to the following example:


    # cr_cli -cmd cdb.vs.add -comp NM:/com/sun/n1osp/targets/SunIPMI -name "x2100" \
    -u admin -p admin -vars "installPath=x2100host;description=test x2100 host; \
    device_type=sunfirex2100;ethernet_mac_address=00:09:3d:10:94:a6;ethernet_ip_address=10.42.42.110; \
    ethernet_netmask=255.255.255.0;architecture=x86;kernel_arch=i86pc; \
    guid={3AE45192-159D-11D8-AEF3-001083FDFE90};disk_size=20GB;ipmi_ip_address=10.5.133.134; \
    ipmi_access_userid;ipmi_access_password=;ssh_access_userid=admin;ssh_access_password= \
    console_service=false"
    

    For more information about the variables, see Sun IPMI Target Host Variables.

  2. To set up the appropriate password access, create a file that contains the following entries:

    true
    admin
    true
    admin

    Where:

    • The first line in the file corresponds to checking the “If you are specifying the IPMI password below” box in plan variables section of the browser interface.

    • The second line in the file is the password to access IPMI.

    • The third line in the file corresponds to checking the “If you are specifying the SSH password below” box in plan variables section of the browser interface.

    • The fourth line in the file is the SSH password to access the remote management interface.

    Make sure to name the file something useful so that you can remember it for the next step. For example, you might name the file /tmp/testv20z-target.

  3. To run the plan and create the Sun IPMI target, type a command similar to the following example:


    # cr_cli -cmd pe.p.run -u admin -p admin \
    -PID NM:/com/sun/n1osp/targets/SunIPMI-create -tar H:NM:masterserver-osp \
    -comp + -vs x2100 -pto 30 -nto 10 -f /tmp/test-x2100
    

    The previous example applies to the Sun Fire x2100.