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

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

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


    # cr_cli -cmd cdb.vs.add -comp NM:/com/sun/n1osp/targets/SunALOM  \
    -name "testv240" -u admin -p admin -vars "installPath=testv240; \
    description=To test v240;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;alom_ip_address=10.5.133.150;alom_access_userid=admin; \
    alom_access_password="
    

    For more information about the variables, see Sun ALOM 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 ALOM password below” box in the plan variables section of the browser interface.

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

    • 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/testv240-target.

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


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