Sun Open Telecommunications Platform 1.1 Installation and Administration Guide

Installing the Solaris OS and Remote Agent on a New OTP Host Using the External Installation Server OSP Plug-in Command Line Interface

This section provides the procedures for using the OSP plug-in command line interface on the external OTP installation server to install the Solaris OS and the service provisioning remote agent on a new OTP host.

The following topics are discussed:


Tip –

Add /var/otp/spsotp/N1_Service_Provisioning_System_5.2/cli/bin to the root account PATH statement before performing the following procedures. Type rehash after you have set the path.

The following procedures assume you have added /var/otp/spsotp/N1_Service_Provisioning_System_5.2/cli/bin to the root account PATH statement in the root account initialization script.


ProcedureTo Create and Register the Subnet

For detailed instructions, Creating and Registering the Subnet in Sun N1 Service Provisioning System User’s Guide for OS Provisioning Plug-In 3.1.

  1. Log in as root (su - root) to the external OTP installation server.

  2. Create the subnet variable list.

    Type the command

    cr_cli -cmd cdb.vs.add -comp NM:/com/sun/n1osp/untyped/Subnet -name "subnet_name" -u admin -p admin -vars "installPath=install path IP adddress;mask=subnet mask IP address;gateway=gateway IP address;host_interface=interface name;host_address=host IP address"

    where:

    • subnet_name is the name of the subnet , for example subnet53

    • install path IP adddress is the base IP address of the subnet, for example 10.11.53.0.

    • subnet mask IP addressis the subnet mask, for example 255.255.255.0.

    • gateway IP address is the subnet gateway IP address, for example 10.11.53.1.

    • interface name is the name of the provisioning interface of the external OTP installation server, for example bge0. Do not specify the logical interface.

    • host IP address is the IP address of the provisioning interface, for example 10.11.53.200.

  3. Initialize the subnet.

    Type the command

    cr_cli -cmd pe.p.run -u admin -p admin -PID NM:/com/sun/n1osp/untyped/Subnet-create -tar H:NM:masterserver-osp -comp - -vs subnet_name -pto 30 -nto 10

    where subnet_name is the name of the subnet , for example subnet53.

Next Steps

Create the Solaris 10 Update 2 image as described in the next procedure.

ProcedureTo Create the Solaris 10 Update 2 Image

For detailed instructions, see Creating Solaris Images and Profiles in Sun N1 Service Provisioning System User’s Guide for OS Provisioning Plug-In 3.1.

  1. Log in as root (su - root) to the external OTP installation server.

  2. Create the Solaris OS image import variable list.

    Type the command

    cr_cli -cmd cdb.vs.add -comp NM:/com/sun/n1osp/untyped/SolarisImage -name "image name" -u admin -p admin -vars "version=OS version;release=OS release;architecture=architecture;image_subnet_addr=image subnet adress;image_subnet_mask=subnet mask;media_src=media_source;ISO_files=OS ISO file name"

    where:

    • image name is the name assigned to the imported Solaris OS image, for example s10u2.

    • OS version is the Solaris OS version number, for example 10.

    • OS release is the Solaris OS release, for example u2.

    • architecture is the platform architecture for the Solaris OS, for example sparc

    • image subnet adress is the IP address of the server on which the OS image is to be copied, for example 10.11.53.200.

    • subnet mask is the subnet mask IP address, for example 255.255.255.0.

    • media_source is the full path to the source Solaris OS image. This can be an NFS-mounted ISO image as described in To Download and Uncompress the OTP and Solaris OS Installation Zip Files

    • OS ISO file name is the name of Solaris OS ISO image, for example sol-10-u2-ga-sparc-dvd.iso

  3. Import the Solaris OS image.

    Type cr_cli -cmd pe.p.run -u admin -p admin -PID NM:/com/sun/n1osp/untyped/SolarisImage-import -tar H:NM:masterserver-jet -comp + -vs s10u2 -pto 300 -nto 100 where s10u2 is the name you assigned to the import image in the previous step.

Next Steps

Create the Solaris OS provisioning profile as described in the next step.

ProcedureTo Create the Solaris OS Provisioning Profile

  1. Log in as root (su - root) to the external OTP installation server.

  2. Type the following command to populate the custom packages with the appropriate JET path:

    /opt/SUNWjet/bin/copy_custom_packages /OTP_media_path/Products/packages sparc SUNWotpra SUNWotpcli SUNWotputil

    where /OTP_media_path is the fully-qualifed path to the OTP installation directory you created in To Create the OTP Installation Directory on the External OTP Installation Server. For example:


    # /opt/SUNWjet/bin/copy_custom_packages \
    /otp1.1/Products/packages sparc SUNWotpra SUNWotpcli SUNWotputil
    

    The media is copied to the directory /export/install/pkgs/custom/sparc by default. To change the default directory, modify the setting in /opt/SUNWjet/etc/jumpstart.conf.

    For further information, see Chapter 5, Provisioning the Solaris Operating System, in Sun N1 Service Provisioning System User’s Guide for OS Provisioning Plug-In 3.1.

  3. Create the file /tmp/solaris-profile with the following text.

    standard
    Standard Solaris
    base_config spsra custom
    true

    Save and close the file.

  4. Type the following command to create the OS profile.


    # cr_cli -cmd pe.p.run -u admin -p admin \
    -PID NM:/com/sun/n1osp/untyped/SolarisImage-create-profile \
    -tar H:NM:masterserver-jet -comp + -vs s10u2  -pto 300 -nto 300 \
    -f /tmp/solaris-profile
    

    For further information, see Creating Solaris Images and Profiles in Sun N1 Service Provisioning System User’s Guide for OS Provisioning Plug-In 3.1.


    Note –

    Ensure that the provisioning profiles specify Entire Distribution Plus OEM and that the profiles partition the OTP host disk drive as described in Table 3–1.


Next Steps

Create the ALOM target host as described in the next procedure.

ProcedureTo Create the ALOM Target Host

  1. Log in as root (su - root) to the external OTP installation server.

  2. Create the encrypted password for the ALOM account.

    Create the encrypted password as described in Password Encryption in Sun N1 Service Provisioning System User’s Guide for OS Provisioning Plug-In 3.1. For example, if the ALOM account password is admin, you would type:


    # /opt/SUNWn1osp/sbin/n1osp_encrypter admin
    	Encrypted Text: Clz6pK2b6qw=

    You will need the encrypted password in the next step.

  3. Type the following command to create the ALOM target host variable set.

    cr_cli -cmd cdb.vs.add -comp NM:/com/sun/n1osp/targets/SunALOM -name "new OTP host name" -u admin -p admin -vars "installPath=new OTP host name;ethernet_mac_address=MAC address1;ethernet_ip_address=IP address; alom_ip_address=ALOM IP address;alom_access_userid=admin;alom_access_password=encrypted password" where:

    • new OTP host name is the name of the new OTP host

    • MAC address is the new OTP host MAC address

    • IP address is the new OTP host provisioning interface IP address

    • ALOM IP address is the ALOM interface IP address

    • encrypted password is the encrypted password you generated in the previous step

    For example


    # cr_cli -cmd cdb.vs.add -comp NM:/com/sun/n1osp/targets/SunALOM \
    -name "pcl1-ipp1" -u admin -p admin \
    -vars "installPath=pcl1-ipp1;ethernet_mac_address=0:3:ba:9:6a:51;\
    ethernet_ip_address=10.11.52.61;\alom_ip_address=10.11.52.51;\
    alom_access_userid=admin;alom_access_password=Clz6pK2b6qw="
    
  4. Create the file /tmp/OTP hostname.

    For example, /tmp/pcl1-ipp1

    Add the following four lines to the file.

    true
    admin
    false
    admin

    The second line is the password for the new OTP host ALOM. The fourth line is the password for the external OTP installation server.

    Save and close the file.

  5. Type the following command to create the 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 pcl1-ipp1 -pto 300 \
    -nto 100 -f /tmp/OTP hostname
    

    where OTP hostname is the name of the file you created in the previous step.

    For detailed information, see Example Tasks for Defining Target Hosts in Sun N1 Service Provisioning System User’s Guide for OS Provisioning Plug-In 3.1 and Sun ALOM Target Host Variables in Sun N1 Service Provisioning System User’s Guide for OS Provisioning Plug-In 3.1.

Next Steps

Install the Solaris OS on the new OTP host as described in the next procedure.

ProcedureTo Install the Solaris OS on a New OTP Host

  1. Log in as root (su - root) to the external OTP installation server.

  2. Type the following command to create the OS provisioning variables set.


    # cr_cli -cmd cdb.vs.add \
    -comp NM:/com/sun/n1osp/autogen-masterserver-jet/provision/Solaris10_u2_sparc.standard \
    -name "variables set name" -u admin -p admin \
    -vars "sysidcfg_default_route_base_config=default router IP address;\
    sysidcfg_root_password_base_config=encryped OTP host password;\
    profile_cluster_base_config=SUNWCXall;profile_del_clusters_base_config=;\
    profile_swap_base_config=4096;profile_s3_mtpt_base_config=/globaldevices;\
    profile_s3_size_base_config=512;profile_s5_mtpt_base_config=;\
    profile_s6_mtpt_base_config=;profile_s7_mtpt_base_config=;\
    profile_s7_size_base_config=128;install_spsra=n;setuid_spsra=n;\
    packages_m_custom=SUNWotpra SUNWotpcli SUNWotputil
    

    where

    • variables set name is the name to be assigned to the variables set, for example sfv240–target.

    • default router IP address is the IP address of the default router, for example 10.11.12.0.

    • encryped OTP host password is the encrypted password, which can be copied from the file /etc/shadow.

  3. Type the following command to provision the OS to the new OTP host.


    # cr_cli -cmd pe.p.run -u admin -p admin -PID \ 
    NM:/com/sun/n1osp/autogen-masterserver-jet/provision/SolarisProfile-provision-start-Solaris10_u2_sparc.standard \
    -tar H:NM:variables set name -comp + -vs new OTP host host name -pto 600 -nto 600
    

    where variables set name is the name you assigned to the variables set in the previous step, and new OTP host host name is the name of the new OTP host to which the OS is to be provisioned.

    Repeat this step for each new OTP host.

    For detailed instructions, see Installing the Solaris OS on the Target Host in Sun N1 Service Provisioning System User’s Guide for OS Provisioning Plug-In 3.1 and Appendix B, Solaris Profile Component Variables, in Sun N1 Service Provisioning System User’s Guide for OS Provisioning Plug-In 3.1


    Note –

    The OSP plug-in also installs the SUNWotpra, SUNWotpcli, and SUNWotputil packages. You do not need to add the SUNWotpcli package or setup the remote agent on the target host as these steps are done as part of the post OS installation processing by the OSP plug-in.


Next Steps

When you have completed installing and configuring Solaris 10 Update 2 on each OTP host, install the Open Telecommunications Platform on the OTP host.