N1 Grid Service Provisioning System User's Guide and Release Notes for the OS Provisioning Plug-In 1.0

Defining an Other Remotely-Managed Target Host

Use the remotely-managed target host type to identify target hosts that do not match any of the predefined types but that have other forms of remote management, such as SunFire B100s and B100x blades. The option provides the greatest flexibility of providing information regarding a target but also requires several variables to be filled.

There are two sets of remote management information gathered for this type of target. The first set of remote management information ends with _1 suffix, and the second set ends with the _2 suffix. Each remote network management information set requires information about the type of network management and the associated JAR file that handles the remote network management. The JAR files are located at /opt/SUNWn1osp/drivers on the OS provisioning server. Each remote network management interface can have a terminal server connection, in which case the information about the terminal server also has to be entered. Depending on the type of network management, the network management might support power management, boot mode, and console support. See the example below for more information.

ProcedureHow to Create an Other Remotely-Managed Target Host (Browser Interface)

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

  2. On the OS Provisioning Common Tasks page, click Create in the Other Remotely-Managed 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 Other component row of the Plan Parameters table.

    • To create a new variables set, click Select from List in the Other 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 Other Remotely-Managed Target Host Variables.

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

        There are two methods for providing the passwords:

        • Type appropriate encrypted values in the following variables:

          • netmgmt_password_1
          • terminal_server_access_password_1
          • netmgmt_password_2
          • terminal_server_access_password_2

          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 Other 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 the first “If you are specifying the password below.”

    2. Type the password to access the first network management interface in the Password to Access Management Interface 1 field.

      The password encrypts as you type.

    3. Click the checkbox next to the first “If you are specifying the terminal server password below.”

    4. Type the password to access the first terminal server in the Password to Access Terminal Server Password 1 field.

      The password encrypts as you type.

    5. Click the checkbox next to the second “If you are specifying the password below.”

    6. Type the password to access the second network management interface in the Password to Access Management Interface 2 field.

      The password encrypts as you type.

    7. Click the checkbox next to the second “If you are specifying the terminal server password below.”

    8. Type the password to access the second terminal server in the Password to Access Terminal Server Password 2 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 Grid 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-v60x, the virtual host is sunfire-v60x-target.

ProcedureHow to Create an Other Remotely-Managed Target Host (Command-Line Interface)

The following CLI example creates a target host for a SunFire B100s system.

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


    # cr_cli -cmd cdb.vs.add -comp NM:/com/sun/n1osp/targets/Other -name "b100s10" \
    -u admin -p admin -vars "installPath=Blade-S10;description=S10 b100s blade target; \
    ethernet_mac_address=00:03:ba:29:e4:ea;ethernet_ip_address=10.216.0.11; \
    ethernet_netmask=255.255.255.192;architecture=sun4u;kernel_arch=sun4u;disk_size=30GB; \
    netmgmt_type_1=b1600sc;netmgmt_version_1=1.0; \
    netmgmt_hal_jar_1="file:///opt/SUNWn1osp/drivers/sun/b1600sc.jar"; \
    netmgmt_ip_address_1=10.216.0.60;netmgmt_protocol_1=telnet;netmgmt_port_1=s10; \
    power_service_true_false_1=true;boot_service_true_false_1=true; \
    console_service_true_false_1=true;netmgmt_userid_1=admin;netmgmt_password_1=Clz6pK2b6qw="
    

    For more information about the variables, see Other Remotely-Managed Target Host Variables.

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

    false
    admin
    false
    admin
    false
    admin
    false
    admin

    Where:

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

    • The second line in the file is the password to the first management interface.

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

    • The fourth line in the file is the password to the first terminal server..

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

    • The sixth line in the file is the password to the second management interface.

    • The seventh line in the file corresponds to the second “If you are specifying the terminal server password below” box in the plan variables section of the browser interface.

    • The eighth line in the file is the password to the second terminal server..

    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/b100s.

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


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