This tool automates Cognos Analytics 11 and IIS Web Server configuration steps described in the IBM Documentation – Configuring IIS with Cognos Analytics:
These steps work for Cognos Analytics 11.0.x, Cognos Analytics and 11.1.x and Cognos Analytics 11.2.x versions.
As of Cognos Analytics 11.1.2, the Cognos Analytics 11 and IIS configuration batch file is now available in the software. It is in the analytics\cgi-bin\templates directory.
If you are using Cognos Analytics 11.1.1 and lower version of Cognos Analytics 11 use link to the CA_IIS_Config_v2(03.29.19).zip to download configuration batch file
If you have a pre-existing Cognos Analytics virtual directory, we recommend removing current configuration before you run this script. You can properly remove it by following the instructions found at this link: https://www.ibm.com/support/pages/node/301009
NOTE: This batch file uses Microsoft's Internet Information Service's appcmd command-line tool to perform the configuration and needs to run with administrator privileges. If there are any concerns on using this command or privilege level, then stop now and follow the manual steps to configure IIS.
The batch file attached at the end of this document automates the steps in creating the application pool, alias, SSO, server farm and rewrite rules in IIS needed for Cognos Analytics. Pre-requisites before you run this tool:
- IBM Cognos Analytics 11.0.4 gateway or higher installed
- Supported version of Microsoft Internet Information Services (IIS) installed with the following features:
- World Wide Web Services > Application Development Features > ISAPI Extensions and ISAPI Filters
- World Wide Web Services > Security > Request Filtering and Windows Authentication
- Application Request Routing for IIS installed
Supported IIS versions, for IBM Cognos Analytics, can be found on the IBM Cognos Analytics 11.x.x supported software Environment page.
Application Request Routing can be found at: https://www.iis.net/downloads/microsoft/application-request-routing
Before you run the tool, you must enter the location of the CA gateway, alias name you want to use, and so on
1. Download the CA_IIS_config.zip file to your Cognos Analytics Gateway Server.
2. Extract the CA_IIS_config.bat file to a folder.
3. Open CA_IIS_config.bat in a text editor.
4. The variables, which needs be modified, are at the top of the file.
Note! Modify only the variables mentioned in the following table.
|Variable Name||Description||Default Setting|
|set web_site||This variable is the pre-existing website name, where your alias is created.||Default Web Site|
|set app_pool||Name of the Application Pool that Cognos Analytics uses.||ICAPool|
This variable is the alias name in which Cognos Analytics is accessed from.
NOTE: Setting an alias name that exists in IIS overwrites the existing entries in that alias with the new settings. It is suggested to use a alias name that does not exist.
|set ca_path||Sets the location of the Cognos Analytics gateway folder.
The tool performs then a quick validation to see whether Cognos Analytics is installed in the location specified. It also checks to see whether the gateway tier is installed.
NOTE: The script continues with its execution even if there is an error.
The disp.protocol sets the reverse proxy URL to the proper protocol for one or more dispatchers.
Can be set to http or https
|This section is where all application dispatchers in entered.
(Do not list "Content Manager Only" servers).
To enable single sign-on capabilities in IIS, set it to True. False to disable.
NOTE: This setting performs only the configuration based on the steps in Configuring IIS with Cognos Analytics. You need to perform the steps in the Enable single signon between Active Directory Server and IBM Cognos components section to fully enable SSO.
|set web_farm_name||If there are two or more dispatchers listed in the set ca_disp variable. You can use the name as is or type in a new one. If only 1 dispatcher is listed, then do not change the name.||ca_servers|
Back up IIS before you run the configuration tool
Before you run this tool, we recommend you consider to back up your current IIS configuration. Refer to Microsoft's IIS documentation on how to do the backup.
Steps to run the configuration tool
- Run CA_IIS.config.bat by:
- Command prompt with administration privileges
- Windows explorer with "Run as Administrator" option selected
- A command window opens with the list of variables that you configured. If they are incorrect, then exit and reopen the bat file to correct the issue. If everything is correct, then press 'y' to continue.
Configuration is now complete. To verify, open IIS manager and check under your website for the alias name you used in the tool.
Enable SSO after you disabled it in the tool
If SSO was disabled while you run the tool, you can enable it again in IIS Manager. During the execution of the tool, SSO is configured but is then disabled. To enable it, perform the following:
1. Open IIS Manager.
2. Expand the web site and alias that was created.
3. Single click the bi folder.
4. Click URL Rewrite.
5. Find SSO Login, we expect it to be greyed out. Single click it and on the right action panel, click Enable Rule.
6. Find Legacy SSO, we expect it to be greyed out. Single click it and on the right action panel, click Enable Rule.
Script last tested against Cognos Analytics 11.1.1. This single script configures 11.0.x and 11.1.1 versions
Was this topic helpful?
21 March 2022