Repository tools command-line reference

The repository tools application is a command-line interface that provides a set of tools to manage Jazz based applications such as the Jazz® Team Server, Change and Configuration Management, Data Collection Component, Global Configuration Management, Quality Management, Rational® Engineering Lifecycle Manager, and Requirements Management.

The repository tools application is intended primarily for performing database migrations. The application is not intended for performing database backups. You can use tools that are supplied by your database vendor to back up your database. Consult your database vendor documentation for information about performing a backup.

Note: Shutdown and back up the database before you use any repotools commands that perform system maintenance operations.

The repotools scripts are in JazzInstallDir/server. Use the script that is associated with your CLM application. Table 1 describes each repotools script and the associated CLM application that it manages.

Table 1. repotools scripts
Script CLM application
repotools-jts Jazz Team Server
repotools-ccm Change and Configuration Management
repotools-dcc Data Collection Component
repotools-gc Global Configuration Management
repotools-qm Quality Management
repotools-relm Rational Engineering Lifecycle Manager
repotools-rm Requirements Management
In the following examples, repotools-jts is used, but the same commands can be used with any of the repotools scripts that are described in Table 1.
Note: If you want to run the repotools commands from a directory other than JazzInstallDir/server, you must change the *.ini files in JazzInstallDir/server/conf/application/provision_profiles to use an absolute path. For example, change url=file:./update-site on UNIX to url=file:/opt/IBM/JazzTeamServer/server/conf/application/sites/update-site, and on Windows to url=file:c:\program files\IBM\JazzTeamServer\server\conf\application\sites\update-site.
z/OS operating system icon On z/OS®, the repotools application is started with Job Control Language (JCL). A number of sample jobs are provided for the most often used repository tools functions. These jobs are found in the hlq.SBLZSAMP data set created by your SMP/E installation. Table 2 describes the member names.
Table 2. Jobs associated with commonly used repotools functions
Job Repository tools function
BLZCREDB -createTables (for Db2® on z/OS)

To run other repository tools functions, you can copy one of the existing System z® sample JCL members. Modify the copied member by changing the //MAINARGS DD statement to correspond to the repository tools function that you want to run on z/OS.

Kerberos authentication

Some repotools commands are used against a running Jazz Team Server. The standard authentication model is to provide administrative user credentials either as command-line parameters or by using a credentials file. Alternatively, the user might use a client certificate or smart card. In all cases, the user must be a member of the JazzAdmins group.

To use Kerberos/SPNEGO to authenticate with the server, you must run the repotools-jts command with the kerberos parameter. If the parameter is set to windows, the authentication type is Integrated Windows Authentication. If the parameter is set to any other value, the authentication type is Kerberos. For example,
repotools-jts -repository=repositoryURL -createUser userID=UserID kerberos=true 

This command creates the UserID user on the server while it authenticates with Kerberos/SPNEGO.

When the Kerberos parameter is set to true, the command-line interface obtains a Kerberos ticket through either Windows logon or the kinit utility. Ensure that the Java based client is configured through krb5.ini, krb5.conf, or the Java system properties (java.security.krb5.realm and java.security.krb5.kdc system properties, or the java.security.krb5.conf system property). For more information, see CLM client configuration for Kerberos/SPNEGO SSO.