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

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

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


    # cr_cli -cmd cdb.vs.add -comp NM:/com/sun/n1osp/targets/SunRSC  \
    -name "testv490" -u admin -p admin -vars "installPath=testv490; \
    description=To test v490;ethernet_mac_address=0:3:ba:53:5b:5d; \
    ethernet_ip_address=10.42.42.100;ethernet_netmask=255.255.255.0;architecture=sun4u; \
    kernel_arch=sun4u;disk_size=20GB;rsc_ip_address=10.5.133.150;rsc_access_userid=admin; \
    rsc_access_password="
    

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

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

    true
    root       
    false
    root

    Where:

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

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

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

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

    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/testv490-target.

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


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