BMC Performance Assurance (BPA) version 7.5.00 and later (including TrueSight Capacity Optimization Gateway Server/Agent) use a java based installer . What is the correct method to create a package that can be silently installed or used for deployment through an external software deployment utility?
|
The information related to doing a Silent Installation of the TrueSight Capacity Optimization (TSCO) Agent is available is documented here: TSCO 20.02 Installing The Capacity Agent and TSCO 11.5 Installing The Capacity Agent WindowsOne can use environment variables when specifying the path to options file: E:\windows_console>start /wait setup.exe -i silent -DOPTIONS_FILE="%TEMP%\AgentSilentInstallOptions.txt"
Or you can use the relative paths from that temporary directory: E:\windows_console>start /wait setup.exe -i silent -DOPTIONS_FILE="..\..\AgentSilentInstallOptions.txt"
UnixYou can watch this video that explains how to perform agent silent installation on Linux:One can use environment variables when specifying the path to options file (if the variable is set within the shell): setup.sh -i silent -DOPTIONS_FILE="$BPA_IMAGE/AgentSilentInstallOptions.txt"
setup.sh -i silent -DOPTIONS_FILE="/var/tmp/image/AgentSilentInstallOptions.txt"
(Dec 02 2009 11:25:42.881 AM -0500),CONFIG,com.bmc.install.utility.logging.Log, Execution started
(Dec 02 2009 11:25:42.882 AM -0500),CONFIG,com.bmc.install.builder.installanywhere.InstallationTaskAction, LOG EVENT {Description=[Options file],Detail=[AgentSilentInstallOptions.txt]} (Dec 02 2009 11:25:42.991 AM -0500),CONFIG,com.bmc.install.builder.installanywhere.InstallationTaskAction, LOG EVENT {Description=[Could not find options file],Detail=[C:\Users\Administrator\AppData\Local\Temp\I1259771112\Windows\AgentSilentInstallOptions.txt]}
Q: What can be done to debug Silent Installation problems?The installation creates a log file in the %TEMP% directory called 'BPA_install_log.txt' that can be used to diagnose installation problems. The log is somewhat difficult to read if you are not familiar with the installer so it may be best to contact Technical Support for debugging assistance. On Unix the log will typically be written to the /tmp or /var/tmp directory. Q: How do I change the target installation directory for a silent install?When doing a silent installation the base installation directory is set via the "installLocation" setting in the AgentSilentInstallOptions.txt file: Note that the last directory that already exists for the specifed installationLocation must be writable by the user the silent install is being executed as. If the specified directory is not writable the installation will fail with the following errors reported to the BPA_isntall_log.txt file:
Usually /opt would be owned by root so only the root user would be able to create a directory in it. So, if you aren't running the install as root you'd need to have the /opt/bmc directory pre-created and owned by the user account that you are using to run the setup.sh. Q: How do I change the temporary directory used by the installer to hold the the temporary java image and Utilities directory?If you wanted to pick a different temporary directory (rather than /tmp) the following document describes that process: Q: If the silent install fails where should I look for errors?Unfortunately when running in the 'silent' installation mode the installer will not output any error messages to the screen -- it will only output them to the installation log. If you were running through the X-Windows GUI install it will output messages to an error screen. So, to find errors check the end of the $IATEMPDIR/BPA_install_log.txt file to find the last errors generated before the installation terminated. By default the $IATEMPDIR will be either /tmp or /var/tmp on Unix although this location can be overridden by setting the $IATEMPDIR environment variable. |