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

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