Cisco CNS Network Registrar Installation Guide, 6.1
Performing a Silent Installation
Downloads: This chapterpdf (PDF - 172.0KB) The complete bookPDF (PDF - 805.0KB) | Feedback

Performing a Silent Installation

Table Of Contents

Performing a Silent Installation


Performing a Silent Installation


This appendix describes how to perform a silent installation, upgrade, or uninstallation of the Cisco CNS Network Registrar regional and local clusters. A silent installation or upgrade provides for a noninteractive process. You essentially go through a normal installation or upgrade, and this process is "captured" in a response file. You use this response file in other installations or upgrades at your site instead of having to repeat the same manual process over and over again.


Caution You must use an installation silent installation for installations only, and an upgrade silent installation for upgrades only. Keep track, for example, whether the captured information is for a local or regional cluster installation. Do not mix and match the intended purpose of the silent process. Otherwise, unpredicted results can occur, or the installation or upgrade will fail.

Here are the steps to use for each of the operating systems:


Step 1 For each silent installation or upgrade, create a separate response file:

Windows—Use this command:

setup.exe -r 

Complete the installation or upgrade steps as you would normally. This actually installs or upgrades Network Registrar according to the parameters you input. It also generates the setup.iss response file based on these parameters. Look for this file in the Windows installation directory, such as C:\WINNT. Each further use of this command overwrites this file.

Cisco recommends that you rename or relocate this file before running the silent process in Step 2. Rename the file to something distinguishable, such as local-nr-https-install, and relocate it to a temporary folder.

Solaris—Use this command:

pkgask -d install-path -r response-file nwreg2 

Complete the installation or upgrade steps as you would normally. This does not actually install or upgrade Network Registrar, but simply generates a response file by the specified name that includes the installation or upgrade parameters you want to replicate for additional installations or upgrades. Cisco recommends that you name the file something distinguishable, such as local-nr-upgrade or regional-nr-https-install.

Linux—Create a text response file with these variable declarations (modify the values to suit the desired configuration for your system):

BACKUPDIR=/opt/nwreg2.sav 
ROOTDIR=/opt/nwreg2 
BASEDIR=/opt/nwreg2 
CCM_PORT=1234 
CNR_CCM_MODE=local 
CNR_EXISTS=n 
DATADIR=/opt/nwreg2/data 
DBVERSION=n 
INSTALL_DEBUG=n 
JAVADIR=/usr/java/jdk1.3.1_03 
JSSEDIR=n 
KEYSTORE_FILE=keystore 
KEYSTORE_PASSWORD=changeit 
LOGDIR=/opt/nwreg2/logs 
PERFORM_BACKUP=n 
SKIP_VALIDATION=n 
START_SERVERS=y 
TEMPDIR=/opt/nwreg2/temp 
UPGRADE_DB=n 
USE_HTTP=y 
USE_HTTPS=n 
WEBUI_PORT=8080 
WEBUI_SEC_PORT=8443 

The installer uses the BASEDIR directory to transfer installation files.

Complete the installation or upgrade steps as you would normally. This does not actually install or upgrade Network Registrar, but simply generates a response file by the specified name that includes the installation or upgrade parameters you want to replicate for additional installations or upgrades. Name the file something distinguishable, such as local-nr-upgrade or regional-nr-https-install.

Step 2 Invoke the silent installation or upgrade for each instance:

Windows—Use this command:

setup.exe -s -f1 path+response-file 

Note that the silent installation fails if the setup.exe file is in the same folder as the i386 directory and you omit the -f1 argument with a fully qualified path to the response file. This limitation exists because the file is a wrapper executable that does not handle relative path names, but simply invokes another file in the i386 directory. However, you can omit the -f1 argument and path+responsefile value if the setup.exe and response files are both in the i386 directory.

Solaris—Use this command:

pkgadd -a pkgdir/nwreg2/install/cnradmin -d pkgdir -r response-file 

Linux—Use this command:

install_cnr -r response-file 

Step 3 If you want to uninstall the product, invoke the silent uninstallation:

Windows—Use this command:

uninst.exe -y -f "install-dir\DeIsL1.isu" -c "install-dir\unregistrar.dll" 

Solaris—Use this command:

pkgrm -n nwreg2 

Linux—Use this command, which is noninteractive except during an error:

uninstall_cnr