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:
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.
For detailed instructions, Creating and Registering the Subnet in Sun N1 Service Provisioning System User’s Guide for OS Provisioning Plug-In 3.1.
Log in as root (su - root) to the external OTP installation server.
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.
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.
Create the Solaris 10 Update 2 image as described in the next procedure.
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.
Log in as root (su - root) to the external OTP installation server.
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
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.
Create the Solaris OS provisioning profile as described in the next step.
Log in as root (su - root) to the external OTP installation server.
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.
Create the file /tmp/solaris-profile with the following text.
standard Standard Solaris base_config spsra custom true
Save and close the file.
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.
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.
Create the ALOM target host as described in the next procedure.
Log in as root (su - root) to the external OTP installation server.
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.
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=" |
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.
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.
Install the Solaris OS on the new OTP host as described in the next procedure.
Log in as root (su - root) to the external OTP installation server.
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.
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
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.
Configure the Solaris OS on the OTP host as described in Configuring Solaris 10 Update 2.
If you did not create the /globaldevices file system on the OTP host, create the file system as described in Creating the /globaldevices File System on the OTP Hosts.
If the OTP host is a Sun Fire T2000, install the OTP patches on the OTP host as described in Installing the Open Telecommunications Platform Patches On Sun Fire T2000 Servers.
When you have completed installing and configuring Solaris 10 Update 2 on each OTP host, install the Open Telecommunications Platform on the OTP host.
To install OTP on one or more OTP hosts using the command line, see Chapter 4, Installing the Open Telecommunications Platform For the First Time Using the Command Line
To install OTP on one or more OTP hosts using the graphical user interface, see Chapter 5, Installing the Open Telecommunications Platform For the First Time Using the Graphical User Interface
To install OTP on one or more OTP hosts using a production standalone or clustered OTP system, see Chapter 6, Installing the Open Telecommunications Platform Using the Provisioning Service On an Existing OTP System