Connect:Direct for UNIX silent installation
The following installation and configuration files are required for a silent installation of Connect:Direct® for UNIX:
- cdinstall_a script
- cdinstall script
- cpio file (installation archive)
- key certificate
- Options file (unless you specify all parameters on the command line)
- key certificate passphrase
- Connect:Direct server port
- Connect:Direct client port
- Connect:Direct administrator user ID
The cdinstall_a script reads the options file, command-line arguments, or both for the necessary arguments that are needed for execution. This information includes the deployment command to run: install, upgrade, or uninstall, the installation directory for Connect:Direct, the platform-specific cpio file, and other information.
Refer to CDUW_cdinstall_aScriptOperation.html for a detailed description of how cdinstall_a operates. This information is essential if you do not use Control Center for configuration tasks or an enterprise deployment tool.
- Connect:Direct Secure Plus configuration command file (permits extended configuration of Connect:Direct Secure Plus)
- initparm.cfg
- netmap.cfg
- userfile.cfg
- Xlate tables (the file extension must be .sxlt)Note: The silent install requires the original pre-compiled .sxlt files to import. Re-naming an existing .xlt file to .sxlt does not work because the silent install does the compile process during the install.
- More key certificate files to use with the Connect:Direct Secure Plus configuration command line (the file extension must be .pem, .cer, or .crt)
Refer to the IBM® Connect:Direct for UNIX Administration Guide for more information about .cfg files and xlate tables.
Refer to the IBM Connect:Direct Secure Plus for UNIX Administration Guide for more information about the Connect:Direct Secure Plus configuration command file and key certificate files.
Sterling Connect:Direct for UNIX silent installation options file and command-line parameters
The options file contains shell script variables. cdinstall_a “source includes” the options file into its execution environment so that the variables are available. However, it will do so only after it runs a security check that UNIX or Linux commands are not specified as values for the parameter variables or as individual commands. This guards against a code injection attack.
This point is important because cdinstall_a is started under the root account. Therefore, the administrator can run arbitrary commands without cdinstall_a. However, other users or applications without root privileges can initiate an automated installation. These users or applications might specify UNIX or Linux commands in the options file, which would be processed under root. This situation creates a security issue.
| Variable name | Command-line arguments | Default value | Description |
|---|---|---|---|
| cdai_installCmd=install | --installCmd | None. Required parameter. | Specifies installation of new Connect:Direct node. |
| cdai_installDir=<target installation directory> | --installDir | None. Required parameter. | Where to install Sterling Connect:Direct. The administrator can choose any accessible location, but the full path must be specified |
| cdai_localNodeName=<Sterling Connect:Direct local name> | --localNodeName | None. Required parameter. | Name to assign to the local Sterling Connect:Direct. Name is shortened to 16 characters if necessary. Specify uname to ensure that the host name of the system is used. |
| cdai_acquireHostnameOrIP=<h | fqn | ip4 | ip6 | string> | --acquireHostnameOrIP | None. Required parameter. | Specify host name, fully qualified domain name, IP v4 address,
or IP v6 address. Any other strings are interpreted as IP addresses or names.
String can be 0.0.0.0, 0:0:0:0:0:0:0:0, ::, 192.168.0.100, or other valid IP address. |
| cdai_localCertFile=<certfile> | --localCertFile | None. Required parameter | Keycert file for Sterling Connect:Direct local node and client |
| cdai_localCertPassphrase=<passphrase> | --localCertPassphrase | None. Required parameter | Passphrase for keycert file |
| cdai_adminUserid=<user ID> | --adminUserid | None. Required parameter, except for case indicated in description. | System user ID to use for the Sterling Connect:Direct
administrator user ID If sudo or a similar utility has been used to acquire root privileges before executing the silent installation, the parameter cdai_adminUserid need not be set. If it is not set, the Connect:Direct's administrator user id will be the account under which sudo or the similar utility was executed. |
| cdai_cpioFile=<cpio file name> | --cpioFile | cdunix | The installation cpio name. If it is in a different directory than the package directory, the full path must be specified. |
| cdai_keystorePassword=<keystore password> | --keystorePassword | None. Required parameter. | Password for keystore file. Minimum 3 characters, maximum 80
characters. A keystore is created or updated with this password during the silent
installation. This parameter is required if cdai_installCmd is install or
upgrade. It is not required for an uninstall.
Note: This variable applies only to Sterling Connect:Direct for UNIX
4.2.0 and later.
|
| cdai_serverPort=<port number> | --serverPort | 1364 | Sterling Connect:Direct to Sterling Connect:Direct |
| cdai_clientPort=<port number> | --clientPort | 1363 | CLI/API port |
| cdai_trace=y|n | --trace | n | Enables display of debugging information |
| cdai_tirpcCreateLink=y|n | --tirpcCreateLink | n | Checks for libtirpc.so.1 in system library and creates link if necessary. See note re libtirpc under ../../cd_unix/cdunix_relnotes/CDU_Requirements.html in the Release Notes for details. |
| cdai_spConfig=<file name> | --spConfig | None. | Customized text file to update Sterling Connect:Direct parameter
file as necessary. To create a parameter file, you can enter a list of commands in
the spConfig text file, similarly to this example:The silent install script points to this text file. If cdai_spConfig is not specified, then only basic Sterling Connect:Direct configuration is used with the key certificate and trusted root files. |
| cdai_ignoreExistingInstallDir=y|n | --ignoreExistingInstallDir | n | y causes cdinstall_a to ignore an existing target installation directory and proceed with the installation. n causes cdinstall_a to fail if the target installation directory exists. Use y with caution when you are engaging in automated deployment across multiple systems. |
| cdai_allowUmaskReset=y|n | --allowUmaskReset | y | This variable has no effect if the default umask of the
adminUserid is 22 or less. If the default umask of the adminUserid is greater than
22, y causes cdinstall_a to reset the umask of the
adminUserid to 22. Setting the variable to n in that case
causes cdinstall_a to proceed with the more restrictive than recommended umask
setting. CAUTION: If the installation procedure proceeds with an umask
setting that is more restrictive than the recommended value, some users might not
have the necessary permissions to use Sterling Connect:Direct for UNIX.
|
| cdai_keystoreFile=<keystore file> | --keystoreFile | None. | If cdai_keystoreFile is specified, then the automated
installation uses this file as the keystore file. If it is not specified, then the
automated installation procedure uses the default keystore file that is created
during the installation. In either case, the keystore file is customized by adding
the certificate portion of the deployed keycert file and any other deployed
certificates to it. Note: This variable applies only to Sterling Connect:Direct for UNIX
4.2.0 and later.
|
| cdai_localCertLabel=<certificate label name> | --localCertLabel | Client-API | If cdai_localCertLabel is specified, the specification is used
to label the keycert for use in basic Secure+ configurations for secure client
connections. If it is not specified, the default label is used. Note: This variable
applies only to Sterling Connect:Direct for UNIX
4.2.0 and later.
|
| cdai_asperaLicenseFile=<aspera license file> | --asperaLicenseFile | None. | For an installation that uses FASP, this variable allows
deployment of the required license file. Note: This variable applies only to Sterling Connect:Direct for UNIX
4.2.0.3 and later.
|
| cdai_agentPort=<port number> | --agentPort | 1365 | TCP/IP port to listen for a Control Center Director request |
|
cdai_agentEnable=y|n |
--agentEnable | y |
Use to enable/disable the agent during installation |
|
cdai_agentOSAurl=<Control Center Director OSA URL> |
--agentOSAurl | None | URL used to connect Connect:Direct Agent with Control Center Director. |
|
cdai_agentOSADisable=y|n |
--agentOSADisable |
|
Allows disabling OSA without deleting osa.rest.url |
|
cdai_agentInstallationId |
--agentInstallationId | Informational only, managed by Control Center Director | Identifies the Connect:Direct installation package installed by Control Center Director |
| cdai_cdBackupLocation=<target Connect:Direct backup path> | --cdBackupLocation | <installation directory>/restore |
Set the custom backup path for Connect:Direct, which will be used during a future upgrade. |
| cdai_agentBackupLocation=<target Install Agent backup path> | --agentBackupLocation | <installation directory>/install/restore | Set the custom backup path for Install Agent, which will be used during a future upgrade. |
| cdai_erInstallerLocation=<target installer directory> | --erInstallerLocation | <installation directory>/ndm/bin | Set the custom backup path for installer, which will be used during emergency restore. |
| cdai_agentInstallerLocation=<target package download path> | --agentInstallerLocation | <installation directory>/install/downloads | Set the location for installer download. This location will be used during a future upgrade via Control Center Director. |
| cdai_appendUserFile=<File Name> | --appendUserFile | None. | Text file customized with Local and Remote User Information Records to be
appended to the User Authorization Information File (userfile.cfg) in addition to
the default records created during an installation. Note: The parameter can be used
with version 6.1.0.1 or later.
|
| cdai_appendNetmapFile=<File Name> | --appendNetmapFile | None. | Text file customized with Remote Node Connection Records to be appended to the
network map file (netmap.cfg) in addition to the default records created during an
installation. Note: The parameter can be used with version 6.1.0.1 or
later.
|
| cdai_installFA=y|n | --installFA | n |
|
| cdai_fileAgentEnable=y|n | --fileAgentEnable | n | Use to enable/disable File Agent during installation/upgrade. |
| cdai_portCheckTrustedAddr=<IPv4/IPv6 address or hostname> | --portCheckTrustedAddr | None. | Valid address or hostname of trusted port check source (comma separated, if more than one). |
| cdai_enableOum=y|n | --enableOum | n | This parameter is used for installing Connect Direct in Ordinary User mode in container only. It is not valid for a traditional install. |
| cdai_cdExecId=<user id> | --cdExecId | Same as Admin User who installed Connect:Direct | This parameter is used for specifying the standard Connect Direct user in Ordinary User mode in container only. It is not valid for a traditional install. |
| Variable name | Command-line arguments | Default value | Description |
|---|---|---|---|
| cdai_installCmd=upgrade | --installCmd | None. Required parameter. | Upgrades an existing node. |
| cdai_installDir=<target installation directory> | --installDir | None. Required parameter. | Path of Sterling Connect:Direct to be upgraded. |
| cdai_cpioFile=<cpio file name> | --cpioFile | cdunix | The upgrade cpio name. If it is in a different directory than the package directory, the full path must be specified. |
| cdai_trace=y|n | --trace | n | Enables display of debugging information |
| cdai_verifyUpgrade=y|n | --verifyUpgrade | y | An upgrade command fails if pre-existing configuration files don't pass the configuration check or if the sample.cd process fails to complete successfully. This happens even when the configuration errors or sample.cd operation failure is considered tolerable. This variable allows users to choose whether to verify an upgrade or not. |
| cdai_installFA=y|n | --installFA | n |
|
| cdai_fileAgentEnable=y|n | --fileAgentEnable | n | Use to enable/disable File Agent during installation/upgrade. |
| cdai_tirpcCreateLink=y|n | --tirpcCreateLink | n | Checks for libtirpc.so.1 in system library and creates link if necessary. See note re libtirpc under ../../cd_unix/cdunix_relnotes/CDU_Requirements.html in the Release Notes for details. |
| Variable name | Command-line arguments | Default value | Description |
|---|---|---|---|
| cdai_installCmd=uninstall | --installCmd | None. Required parameter. | Removes an existing node. |
| cdai_installDir=<target installation directory> | --installDir | None. Required parameter. | Path of Sterling Sterling Connect:Direct to be removed. |
| cdai_trace=y|n | --trace | n | Enables display of debugging information |
cdai_trace="y"
cdai_installCmd="install"
cdai_cpioFile="/netshare/cdu/aix/cdunix"
cdai_installDir="/test/cdu/test001"
cdai_spConfig=spcmds.txt
cdai_localNodeName=uname
cdai_localNodeName=prod1.tul.company.com
cdai_acquireHostnameOrIP=ip4
cdai_serverPort=13364
cdai_clientPort=13363
cdai_localCertFile="keycert.txt"
cdai_localCertPassphrase="password"
cdai_adminUserid=kstep1
cdinstall_a script operation
cdinstall_a is a script that acts as a “wrapper” script for cdinstall to set up an installation environment. It also starts other installation and customization shell scripts and the following executables: cdinstall, cdcust, ndmxlt, and spcli.sh.
The command-line arguments have the same name as the parameters in the options file except the prefix cdai_ is removed. For example, the command-line argument for cdai_installCmd in the options file is --installCmd and cdai_cpioFile becomes --cpioFile.
If you specify both an options file and command-line arguments, then the command-line arguments override the corresponding values in the options file.
$ cdinstall_a –f <options file>$ cdinstall_a –-installCmd upgrade –-cpioFile <file name> --installDir <CDU install dir>Basic installation and configuration
A basic installation includes only the basic installation steps with the required deployment and installation files.
Installing Connect:Direct for UNIX
Complete the following procedure to perform a basic installation of Connect:Direct for UNIX:
Procedure
Upgrading or applying a fix pack to Connect:Direct for UNIX
Complete the following procedure to perform a basic upgrade or fix pack application of Connect:Direct for UNIX:
Procedure
- Copy and modify the installation options file for the upgrade.
- Log in to the target system as root.
- Copy cdinstall_a, cdinstall, the cpio file, and the options file to the deployment directory. You can copy the cpio file to a network file system instead of the deployment directory.
- Run cdinstall_a.
- Review the log file in the deployment directory (cdaiLog.txt).
Uninstalling Connect:Direct for UNIX
Complete the following procedure to uninstall Connect:Direct for UNIX:
Procedure
Complete installation and configuration
The complete, script-only installation and configuration include the basic installation steps. Optionally, you can add any combination of more keycerts, Connect:Direct configuration files, the Connect:Direct Secure Plus configuration command file, and Xlate tables.
After installation, you can use Control Center to do more configuration of your Connect:Direct nodes. This configuration includes updating netmaps with other newly installed nodes and applying production keycerts to the deployed nodes.
Installing Connect:Direct for UNIX with optional files
Complete the following procedure for a complete, script-only installation of Connect:Direct for UNIX:
Procedure
Upgrading or applying a fix pack to Connect:Direct for UNIX with optional files
Complete the following procedure to perform a complete, script-only upgrade, or fix pack application of Connect:Direct for UNIX:
Procedure
- Copy and modify the installation options file.
- Log in to the target server as root.
- Copy cdinstall_a, cdinstall, the cpio file, and the options file to the deployment directory. You can copy the cpio file to a network file system instead of the deployment directory.
- Run cdinstall_a.
- Review the log file in the deployment directory (cdaiLog.txt).
Configuring and monitoring Connect:Direct for UNIX with Control Center
After you deploy Connect:Direct for UNIX by any of the previous methods, use Control Center to quickly complete more configuration and to monitor the new Connect:Direct nodes. Control Center provides full functionality for configuring, monitoring, and analyzing your Connect:Direct servers.