Controller API
The Controller API enables secure data transmission to IBM Controller from outside the
firewall using standard Extract, Transform, and Load (ETL) tools.
Before you begin
Before you can use the Controller API feature, you must install the Controller Batch Web and Controller API components. After you install the components, you must configure the Controller Batch Web component.
Controller Batch Web component configuration:
- Create the environment variable
KEYSTORE_PASSWORDand set the value of this variable as key store password. - Create JWT signing key for Controller API:
- Open Command Prompt.
- Change the directory path to
..\ccr_64\frontend. - Execute the following command in the terminal
.\Node\node .\addEtlKey.js - A key file named
key.jksis created at ..\ccr_64\fcmweb\jre\bin\.Note: This is a one-time setup task that must be performed by the System Administrator after the kit installation. - To verify if the key is generated, in the ..\ccr_64\fcmweb\jre\bin\
directory, execute the following script
keytool -list -v -keystore key.jks - Check for a key with an alias name ending in
_keyetl. - If the key is not found, re-run Step C.
- Configure file size limit for import:
- Open PowerShell as Administrator.
- In the PowerShell window, change the directory to ..\ccr_64\frontend.
- To configure the file size limit, execute the following command
.\update_file_size.ps1Note: This is a mandatory configuration step that must be completed by the Administrator after installation. No default file size limit is set by the system.
- Configure token expiry time for API access:
- Open PowerShell as Administrator.
- In the PowerShell window, change the directory to ..\ccr_64\frontend.
- To set the token expiry time, execute the following command
.\update_token_expiry_time.ps1Note: This is a mandatory configuration step that must be completed by the Administrator after installation. There is no default expiry time set by the system.
- Create a new database for the IBM Controller Batch Web service on the SQL
server and name the database CCRBATCH. Note: The SQL server user used for creating the CCRBATCH database should have access to all other CCR databases.
- Open the Controller configuration tool and do the following:
- Create a new database connection and name the connection as CCRBATCH.
- Click Save.
- Open Database Conversion utility for CCRBATCH and do the following steps:
- In the Database Conversion Utility window, select Batch DB.
- In the UDL File section, click Connect.
- Click Create DB.
- Go to the C:\Program Files\ibm\cognos\ccr_64\Data folder and create a new folder and name it BATCH. Move the CCRBATCH.udl file to the newly created BATCH folder.
-
Open a command prompt window and run the SyncDBConf.bat utility in the following path:
For example:C:\Program Files\ibm\cognos\ccr_64\fcmweb\SyncDBConf.bat ..\Data wlp\usr\shared\config\datasources - Navigate to \..\ccr_64\fcmweb\wlp\usr\servers\fcm.web
- Open the com.ibm.cognos.fcm.web.properties file.
- Uncomment and update the following property value selfservice.backuprestore.services.url=http://localhost:9084/fcm.batch/.
- Navigate to \..\ccr_64\fcmweb\wlp\usr\servers\fcm.batch
- Open the config.properties file.
- Update jdbc.dbname=<database connection name defined in Controller configuration>. For example, jdbc.dbname=CCRBATCH
- Update fcm.web.url=<your server name>. For example, fcm.web.url=http://localhost:3000
- Update etl.batch.enabled, change it from false to true. For example, etl.batch.enabled=true
- Restart the following services:
- IBM Controller Batch Web
- IBM Controller Web
- IBM Controller API