Sun Open Telecommunications Platform 1.1 Installation and Administration Guide

Preparing and Deploying the OS to the New OTP Hosts Using the Command Line

This section provides the command-line procedures for creating the OS profile, discovering the new OTP hosts, and deploying the OS to the new OTP hosts.

ProcedureTo Create the OS Profile

  1. Log in as root to the OTP master server.

  2. Type /opt/sun/n1gc/bin/n1sh to open the OTP N1TM command shell. For example:


    # /opt/sun/n1gc/bin/n1sh
    N1-ok>
  3. In the OTP command shell, type create osprofile os profile name os OS image name rootpassword root password where:

    • os profile name is the name of the OS profile to be created

    • OS image name is the name of the OS image you created in To Create the OS Image

    • root password is the root password of the production OTP host

    For example:


    N1-ok> create osprofile s10u2-profile os sol10u2 rootpassword otpadmin
    
  4. Set the OS profile language and time zone.

    Type set osprofile os profile name language locale timezone time zone where:

    • os profile name is the name of the OS profile you created in the previous step

    • language is your locale code

    • time zone is your time zone

    For example:


    N1-ok> set osprofile s10u2-profile language en_US.ISO8859-15 timezone GMT
    
  5. Set the OS installation type in the OS profile.

    Type add osprofile os profile name distributiongroup "Entire Distribution plus OEM support" where os profile name is the name of the OS profile you created .

    For example:


    N1-ok> add osprofile s10u2-profile distributiongroup "Entire Distribution plus OEM support"
    
  6. Set the root partition allocation in the OS profile.

    Type add osprofile os profile name partition / device disk slice type ufs sizeoption free.

    For example:


    N1-ok> add osprofile s10u2-profile partition / c0t0d0s0 type ufs sizeoption free
    
  7. Set the swap space allocation in the OS profile.

    Type add osprofile os profile name partition swap device disk slice type swap sizeoption fixed size size in Mbytes.

    For example:


    N1-ok> add osprofile s10u2-profile partition swap device c0t0d0s1 type swap sizeoption fixed size 4000
    
  8. Set the /globaldevices file system allocation in the OS profile.

    Type add osprofile os profile name partition /globaldevices device disk slice type ufs sizeoption fixed size size in Mbytes.

    For example:


    N1-ok> add osprofile s10u2-profile partition /globaldevices device c0t0d0s3
     type ufs sizeoption fixed size 4000
    

    Note –

    The above example was split into two lines to fit on the page. When typing the add osprofile command, type the full command as a single line.


Next Steps

Run discovery to identify the new OTP hosts to which the Solaris 10 Update 2 OS is to be deployed as described in the next procedure.

ProcedureTo Discover the New OTP Hosts

  1. Log in as root to the OTP master server.

  2. Type /opt/sun/n1gc/bin/n1sh to open the OTP N1 command shell. For example:


    # /opt/sun/n1gc/bin/n1sh
    N1-ok>
  3. Discover the new OTP host or hosts.

    Type the command discover XML discovery file name format=file where XML discovery file name is the name of the XML discovery file you created in Provisioning Bare Metal Systems Using Manual Discovery.

    An OTP job is submitted to discover the servers, and a job ID is displayed.

    Type show job to display the job status. When the job has completed, type show servers all to display a list of the new OTP hosts that have been discovered. To view details about a specific server, type show server server id where server id is a server ID listed by the show servers all.

Next Steps

Repeat the above steps for each new OTP host. When you have completed discovering the hosts, deploy the OS to the discovered hosts as described in the next procedure.

ProcedureTo Deploy the OS to the New OTP Host

  1. Log in as root to the OTP master server.

  2. Type /opt/sun/n1gc/bin/n1sh to open the OTP command shell.

  3. Deploy the OS to the new OTP hosts

    In the OTP command shell, type load server ALOM IP address osprofile OS profile name networktype static IP Provisioning IP address hostname hostname manualnetboot=true where:

    • ALOM IP address is the IP address of the new OTP host's ALOM management port

    • OS profile name is the name of the OS profile

    • Provisioning IP address is the IP address of the new OTP host's provisioning interface

    • hostname is the name that will be assigned to the new OTP host

    For example:


    N1-ok> load server 10.1.15.1 osprofile sol10u2-profile networktype 
    static IP 10.1.15.5 otpclient1 manualnetboot=true

    Note –

    The above example has been split into two lines to fit on the page. When typing the load server command, type the entire command as one continuous line.


Next Steps

Repeat the above steps for each new OTP host that is to be provisioned.

When you have completed provisioning the OS to all new OTP hosts, prepare each new OTP host as described in the next section.