Perform silent installation for uCMDB with no UI

  • KM03269603
  • 16-Oct-2018
  • 28-Dec-2018

Summary

This article describes how to perform silent installation for uCMDB with no UI

Question

In certain cases it is necessary to install the universal configuration managment data base in a linux environment without using graphic environment.

Answer

There is a method uCMDB can be installed with no UI, by installing the uCMDB in silent mode

Install UCMDB Server

1. (Linux only) Download HPUCMDB_Server_Patch_.xx.bin, then run the following command:
chmod a+x HPUCMDB_Server_Patch_.xx.bin

2. Prepare the response file
Prepare a response file that specifies values for various settings used during the installation.
To produce the response file, execute the installer with the -r command line switch:
<UCMDB installer file name> ‐r <Directory for response file>

Note: Instead of the directory name, you can also specify the complete file name for the
response file, for example, C:\temp\ResponseFile.txt.
On Windows:
HPUCMDB_Server_Patch_10.32.xxx.exe –r C:\temp\ResponseFile.txt
On Linux:
./HPUCMDB_Server_Patch_10.32.xxx.bin –r /tmp/ResponseFile.txt

Once executed, follow the user interface installation wizard to complete the installation, and the
response file ResponseFile.txt will be stored in the directory specified in the -r switch.


Note:  The response file contains a number of NAME=VALUE pairs, one on each line of the file. The lines containing comments start with the # character. You can edit the content of the file to provide an alternative configuration that needs to be used for the unattended installation. For example, you can customize the target installation directory as well as other settings.
The file needs to be in the following character encoding:
Windows: UTF-8 without BOM (Byte Order Mark) or UTF-16 little endian
Linux: UTF-8 without BOM
(Linux only) If you have no GUI access, you can find a test machine with GUI access and
produce the response file, then copy the generated response file to the Linux machine
where you want to execute silent installation of UCMDB.

3. Execute the silent installation.
Execute the installer with the -i silent command line switch as follows:
<UCMDB installer file name> ‐i silent
For example,
Windows: HPUCMDB_Server_Patch_10.32.xxx.exe ‐i silent
Linux: ./HPUCMDB_Server_Patch_10.32.xxx.bin ‐i silent
The installer will then look for the response file ResponseFile.txt in the same directory where it is
located.

Note: If the response file has a different name or located in a different location, specify the
path to the response file in the -f command line switch:
<UCMDB installer file name> ‐i silent –f <Response File path and name>
For example, on Windows:
HPUCMDB_Server_Patch_10.32.xxx.exe –i silent –f C:\temp\ResponseFile.txt
On Linux:
./HPUCMDB_Server_Patch_10.32.xxx.bin –i silent –f /tmp/ResponseFile.txt

4. Start the UCMDB Server.
Windows: Start > All Programs > HP UCMDB > Start HP Universal CMDB Server
Linux: /opt/hp/UCMDB/UCMDBServer/bin/server.sh start