IBM Support

How to fire a trigger using the Trigger.bat utility

Troubleshooting


Problem

How to fire a trigger using the trigger.bat/trigger.sh utility

Resolving The Problem

Part 1: Setting up the Trigger within Cognos Connection

    1. Login to Cognos Connection as an Administrator.
    2. Select a report to run by trigger and click the Schedule icon under Actions.
    3. Click the By Trigger tab under Frequency.
    4. Choose start and end times (during this time, if you run the Trigger.bat file, the report will execute. Choose No End Date to leave this open ended.)
    5. Type the name of the trigger in the Trigger name field.
Part 2: Executing the Trigger
  1. Open a DOS command window on the server machine. In a distributed installation the trigger utility is installed with the Gateway component - so you will need to go to your web-tier server rather than the app-tier server.
  2. Navigate to cognos_root_folder/webapps/utilities/trigger, where cognos_root_folder is the location where your Cognos BI product is installed.
  3. Run the trigger.bat file URL (the full URL) username password Namespace ID "comma separated trigger list"

Example: trigger.bat http://localhost:59300/p2pd/servlet/dispatch Administrator Password "TDS" trigger1

If the trigger has been fired successfully you will get the following message in the DOS window:
"Trigger: <trigger name> fired successfully"

Troubleshoot:

  • Refer to Cognos Configuration on the Content Manager machine if you are not sure what your Namespace ID is. This can be found under the Security -> Authentication section in Cognos Configuration. If your Namespace ID has spaces, place the Namespace ID above in double quotes.
  • When firing multiple triggers, separate the triggers by commas and surround them with double quotes. (leave no spaces between the commas)
    trigger.bat "http://localhost:59300/p2pd/servlet/dispatch" "username" "password" "namespaceID" "trigger1,trigger2"

[{"Product":{"code":"SSEP7J","label":"Cognos Business Intelligence"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Cognos Connection","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"10.2.2;10.2.1;10.2","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
15 June 2018

UID

swg21340069