...
- Open a command prompt and navigate to the current DTP installation.
- Stop all Parasoft services, including DTP Enterprise Pack if applicable. See Stopping DTP Services.
Run the DTP installation script with the
-u
option to specify the DTP installation directory to update and the-d
option to specify where DTP data files should be installed:Code Block ./DTP.sh -u <DTP_INSTALL> -d <DTP_DATA_DIR>
Info title You must type the full, non-relative path. For example:
.
/DTP
.sh -u
/home/
<user>
/dtp
-d
/home/
<user>
/dtp_data
If you are installing the DTP distribution that includes an embedded database server, the installer will confirm the status of the database server service.
If you want to modify crontab entries for DTP during the upgrade, turn on the--setup-cron
flag:Code Block title Example with --setup-cron flag activated ./DTP.sh -i /home/<user>/dtp -d /home/<user>/dtp_data --setup-cron
Activating the
--setup-cron
flag will cause a menu of options to appear during the upgrade process from which you can choose to either append DTP entries to the current crontab or overwrite it.The installer will check the specified DTP installation directory for DTP Enterprise Pack. If Enterprise Pack is detected, you will be prompted to either remove or update the pack. If Enterprise Pack is not detected, you will be prompted to install it in the <DTP_INSTALL>/dtpservices directory.
When the
DTP.sh
script finishes, rundtpconsole.sh
to start DTP and Data Collector. If you are installing the DTP distribution that includes an embedded database server, services will start automatically and you can immediately begin using DTP.- Navigate to the <DTP_INSTALL>/dtpservices directory and run the
dtpservices.sh
script with thestart
argument to start Enterprise Pack../dtpservices.sh start
...
To upgrade the database structure, click Run Update. A message is displayed when the database schema upgrade process is finished and DTP is ready to use.
Post-Upgrade Steps
After an upgrade, you may need to manually recreate certain configurations previously made in the <DTP_HOME>/bin/variables file. Configurations you may have made include:
Additional Notes
When upgrading DTP, a backup is automatically created in the same parent directory. For example, a DTP installation at /home/test/dtp would result in a backup at /home/test/dtpYYMMDD_HHmmSS, where YYMMDD_HHmmSS represents the date and time when the backup and upgrade were created. When crontab has been modified by your DTP upgrade script, the old crontab is backed up to a <DTP_INSTALL>/bin/cronguard.cron~
file.