Sun N1 Service Provisioning System 5.1 Installation Guide

Remote Installation of Remote Agents on Windows

The Remote Agent MSI package facilitates remote installation in a non-interacitve mode. The installation is accomplished by using a .wsh script used by the Windows Scripting Host. The script file contains VB script code that does the following:

ProcedureHow to Remotely Install Remote Agents on Windows

Before You Begin

Ensure that you have write permissions on the folder in which the MSI packages are saved.

Steps
  1. On the Master Server machine, open a Command Prompt window.

  2. Access the MSI packages.

    • If you are installing from a CD, insert the Sun N1 Service Provisioning System 5.1: Windows CD.

    • If you are installing from the image that you downloaded, change to the directory where you saved the downloaded image.

  3. Change to the directory where the MSI package is located, either on the software CD or from the directory where you saved the downloaded image.

  4. Copy the MSI package to the Master Server.


    C:\> copy cr_ra_win32_5.1.msi MS-machine\
    

    MS-machine is a directory on the Master Server machine.

  5. Change to the Master Server home directory.


    C:\> cd N1SPS5.1-home\server\bin\WinInstaller

    N1SPS5.1-home is the directory in which you installed the Master Server.

  6. Start the installation.


    C:\MS-machine> cscript WinInstaller.wsf [ALLOWFORWARDVERSION=true] parameters Hostname
    

    The ALLOWFORWARDVERSION=true option enables you to install an N1 Service Provisioning System 5.1 Remote Agent on a version of an operating system that is numerically higher than the highest version the N1 Service Provisioning System 5.1 supports for that operating system. If you use the ALLOWFORWARDVERSION=true option, the installation program does not verify that the operating system on which you are installing the Remote Agent is supported. There is no standard Sun Services support for use of the N1 Service Provisioning System 5.1 on unsupported operating systems.


    Caution – Caution –

    Installing the N1 Service Provisioning System 5.1 on unsupported operating systems might result in undefined and unexpected behavior. Install the N1 Service Provisioning System 5.1 on unsupported operating systems only for testing purposes. Do not use the N1 Service Provisioning System 5.1 on unsupported operating systems in a production environment.


    Hostname is the hostname of the machine on which to install the Remote Agent.

    If you do not include values for any of the following parameters on the command line, the installation program installs the Remote Agent using the default values as shown below.

    The Remote Agent non-interactive installation program accepts the parameters that are listed in the following table.

    Parameter 

    Description 

    Default 

    -user

    User to connect to WMI on the target machine. 

    None 

    -password

    Password to connect to the WMI on the target machine. 

    None 

    variables 

    The Windows variable for the cscript WinInstaller.wsf command found in Table 5–1. All variables and values must be contained in a string that is enclosed by quotation marks.


    Caution – Caution –

    You must set a value for the RA_PARENT_CONNECTIONvariable or the installation script will abort. Also, if you choose to use an insecure connection type, such as raw or SSL encryption with no authentication, you must set the CR_RA_CTYPE_CONFIRM variable value to true.


    None 

    -msiLocation

    Paths to the .msi\.input files to install.

    Current working directory 

    -shareLocation

    An existing directory on the target machine in which to create a temporary Windows file share. The file share directory must be at least the size of the MSI package. 

    C:\WINNT\Temp

    The exit code is 0 for a successful installation and 1 for a failure.


Example 5–2 Remote Installation of a Remote Agent On Windows

The following example is a sample of the command to remotely install a Remote Agent on Windows.


C:\> cscript WinInstaller.wsf -shareLocation C:\installs -options
"RA_PARENT_CONNECTION=false CR_RA_CTYPE_CONFIRM=true" targetHost