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

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 "v20z" \
    -u admin -p admin -vars "installPath=v20zhost;description=test v20z host; \
    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="
    

    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 V20z target, type a command similar to the following example:


    # cat /tmp/testv20z-target | 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 v20z -pto 30 -nto 10 -f /tmp/test-v20z