The Remote Agent installation script 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:
Attaches to the Remote Systems WMI DCOM interface
Uses WMI to create a temporary Sindows file share on the target system
Copies cr_ra_win32_4.1.msi from the local location to the target share
Uses WMI remotely to run the silent MSI on the target machine
On the Master Server machine, open a DOS window.
Insert the N1 Service Provisioning System 4.1: IBM AIX, Redhat Linux, Windows 2000 Server/Advanced Server CD.
Change to the directory on the software CD where the Windows installation script is located.
C:\> cd path-to-CD/windows |
path-to-CD is the path to the software CD.
Copy the installation script to the Master Server.
% cp cr_ra_win32_4.1.sh MS-machine/ |
MS-machine is a directory on the Master Server machine.
Start the installation.
C:\MS-machine> cscript WinInstaller.wsf parameters Hostname |
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 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. |
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 installation script. |
C:\WINNT\Temp |
The exit code is 0 for a successful installation and 1 for a failure.
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 "INSTALLDIR='C:\Program Files\N1 Service Provisioning System'" targetHost |