Featured

Long Time no See!

It’s been a while, August 2014 was the last blog post but more articles are on the way. I’ve been extremely busy over the past 2.5 years working on a Global deployment of IBM Cognos 10.2.2 to a community of multi-thousand users. I have also invested some of my time looking into the Canyon that is Big Data and doing a lot of research around NOSQL databases.

During this time I have gained a lot of ideas for more blog posts on many different aspects. This time they will be shorter and punchier than before.

Stay tuned, blog posts relating to performance, TM1 migrations and a whole series on my journey of upgrading thousands of users from 10.2.2 to 11.0.6 will be coming up.

If you have any suggestions for future articles then please comment and suggest material. Always happy to help.

Regards

Andy

Configuring Performance Modeller and TM1 Web with CAM Security for TM1 10.2.n

Today I have been working integrating TM1Web 10.2.2, BI 10.2.1 and Performance Modeller for a client. The documentation supplied by IBM doesn’t cover all the aspects to this and the technotes and information on the Web is out of date and relates mostly to very old versions of TM1 (9.5.n). Therefore, I have put the following article together to give you fewer headaches configuring TM1Web, Performance Modeller and securing it against Cognos CAM Security. My example has been worked on latest versions but should apply to all 10.2.n family of TM1 products.

Objective

To configure TM1 Web and Performance Modeller / Planning Service to use CAM Authentication and Single Signon.

Environment

We have two servers, server one (mybiserver) is a BI Gateway, Content Manager and Dispatcher and server two (mytm1server) is a TM1 Server with all TM1 components installed.

Configuring TM1 Web

By default the URL for TM1Web is http://mytm1server:9510/tm1web.

This works by default with the default installation, however, if your TM1 Server is configured to use CAM Security (IntegratedSecurityMode 5) rather than Native (IntegratedSecurityMode 1) then you will hit issues trying to access it.

To configure TM1Web to use CAM Secured Servers do the following:

 

STEP 1 – Create the variables_tm1.xml file

This file links BI to the TM1Web Interface using CAM Authentication. Simply make a copy of the file variables_tm1.xml.sample in the BI Server installation directory …\templates\ps\portal and call it variables_tm1.xml. Once in situ, edit the file to include your tm1server as the example below shows. The file contains a NETBIOS and FQDN value to ensure it works in all circumstances.

image

 

STEP 2 – Add CAMPortalVariableFile to tm1s.cfg

Next you need to add the reference to the variables_tm1.xml file into your TM1 Server and connect BI authentication if it is is not already in place.

Open your TM1 Servers tm1s.cfg file and add/amend the following lines to it.

IntegratedSecurityMode=5

ServerCAMURI=http://mybiserver:9300/p2pd/servlet/dispatch

ClientCAMURI=http://mybiserver/ibmcognos/cgi-bin/cognosisapi.dll

ClientPingCAMPassport=900

CAMPortalVariableFile=portal\variables_TM1.xml

Remember, if your BI Gateway is using CGI and not ISAPI then use cognos.cgi not cognosisapi.dll.

 

STEP 3 – Configuring TM1Web Main Page

The next step is to configure TM1Web and to avoid service errors when accessing TM1Web. To do this you edit the tm1web.html file in the BI Install Location\webcontent\tm1\web directory.

The following change need to be made:

On Line 41 – change the var tm1webServices variable to use references to your TM1 Server as below.

image

 

STEP 4 – Modify the TM1Web Configuration to choose Admin Server

To modify the TM1Web front page to automatically select an admin server and TM1 Server modify the file tm1web_config.xml in directory

TM1 install location\webapps\tm1web\WEB-INF\configuration.

Change the following arguments to select defaults:

<!– If set, users will not be asked to enter Admin Host during login. –>

<add key="AdminHostName" value="mytm1server" />

and optionally

<!– If set, users will not be asked to select a TM1 Server to connect to during login. –>

<add key="TM1ServerName" value="GO_New_Stores" />

When complete, save the file and restart the ‘TM1 Application Server’ windows service for the changes to take effect.


Testing TM1Web

To test TM1Web simply go to http://mytm1server:9510/tm1web and you should be prompted to select from a list of available TM1 Servers. Once you have selected the TM1 Server you will be prompted for appropriate Native or CAM Security before being presented with the TM1 Cube View screen.

clip_image001

TM1Web is now configured for both Native and CAM Secured TM1 Servers.

 

Steps to configure TM1 Performance Modeller

In order to configure Performance Modeller to function correctly with CAM secured TM1 Servers we need to perform some configuration work.

The steps required are as follows:

 

STEP 1 – Add required parameters to support Performance Modeller models.

These parameters and settings need to be added or modified in the TM1 Server tm1s.cfg file and the TM1 Server windows service restarted.

ServerCAMURI=http://mybiserver:9300/p2pd/servlet/dispatch

ClientCAMURI=http://mubiserver/ibmcognos/cgi-bin/cognosisapi.dll

ClientPingCAMPassport=900

CAMPortalVariableFile=portal\variables_TM1.xml

DistributedPlanningOutputDir=tunit

ForceReevaluationOfFeedersForFedCellsOnDataChange=T

AllowSeparateNandCRules=T

Some of the above will already have been added to the configuration file if you have previous configured TM1Web.

 

STEP 2 – Modify the Service Configuration file

Modify the fpm_svc.config file on the TM1 Server. The file resides in the TM1 installation location webapps\pmpsvc\WEB-INF\configuration directory. Stop the TM1 Application server service BEFORE editing this file.

The following arguments need to be completed / corrected:

image

By default, they will be pointing to localhost, you can also change these in Cognos Configuration IF you have NEVER configured TM1 Application Server to run with a Native secured TM1 Server. By checking this file and adding your Gateway and Dispatcher URI’s you will guarantee the correct settings are in place.

 

STEP 3 – Install and modify the BI Interoperability software

In TM1 releases prior to TM1 10.2 you had to use a separate install image to install the BI interoperability components. It is considerably easier now in that we have a single ZIP file called bi_interop.zip that resides in a bi_interop directory of the TM1 installation directory.

Copy this file and expand it into the BI installation directory. This places files in the following directories within the BI installation:

· Variables_plan.xml in \templates\ps\portal

· Planning.html in webcontent

· Pmhub.html in webcontent

· Icon_active_application.gif in webcontent\icd\feeds\images

· Icon_active_application.gif in webcontent\ps\portal\images

 

STEP 4 – Modify the BI Interoperability HTML Files

The two html files extracted into the Webcontent directory need to be modified as follows:

 

 image

 

Testing Performance Modeller

Now the configuration is complete, restart the TM1 application server service to read all the new parameters and test access to the application through the URL http://mytm1server:9510/pmpsvc

If successful your browser will return a blank applications window as below.

clip_image003

 

Click the Open Performance Modeller button on the toolbar. This can take some time to open first time but will look for TM1 Servers that have the correct security and parameters. If more than one are found you will be prompted to choose and then Performance Modeller opens.

clip_image005

 

Good luck, I hope you get this working quicker than I did!!

Maintenance of IBM Cognos 10 BI Servers

 

During the lifetime of your IBM Cognos 10 environment you will notice a slow erosion of disk space on the drive which has the application files installed on it.

This is due to a number of files that are created during normal and exceptional operation for monitoring and troubleshooting purposes. Unless you have a third party application monitoring disk space then this can cause a major issue if you installed the software on a small capacity hard drive and you receive a call from your user community that reports are not running.

This blog article works through the areas where you can maintain your environment.

1 Memory Core Dump Files

These are the single largest cause of disk space issues. Any report that fails and causes the Batch Report / Report service to fail will generate a series of dump files which can be exceptionally large often reaching 2GB per file. The worst I have seen was 57GB of disk space on an unmanaged Cognos 8 BI Dispatcher!!

These files are stored in the ‘bin’ directory of the installation location. If you install the 64bit BI Server on a C: drive then this would be c:\Program Files\IBM\Cognos\C10_64\bin64 and c:\Program Files\IBM\Cognos\C10_64\bin64 on a 32bit server. They are really easy to spot due to their size and name.

Steps to resolve:

I. Open Windows Explorer

II. Navigate to the ‘bin’ directory

III. Sort the files by size in descending order.

IV. Delete any files that begin ‘core’ to get maximum disk space returned.

V. Delete any files that begin ‘javacore’ or ‘snap’ for completeness.

The screenshot below shows an example of the

clip_image002

Figure 1 – Illustration of execution clutter

If you prefer you can disable the creation of these files by amending a configuration file as below:

I. On the server where IBM Cognos BI is installed, open the cclWinSEHConfig.xml file from the c10_location\configuration directory.

II. In the configuration element, change the value of the environment variable setting to 0 (zero) so that it reads <env_var name="CCL_HWE_ABORT" value="0"/>

III. Save the file.

IV. Repeat the above steps for any other server(s) that could potentially run reports.

NOTE: In the event of you requiring expert diagnosis from your support partner or IBM you may need to reverse the above change to supply the dump information. This helps the support teams to accurately work out what was happening when the crash occurred.

2 Temporary Files

During report execution a number of files are written to different places and whilst the majority of the time then are deleted on occasion this doesn’t happen.

If you open Cognos Configuration and look at the Environment section below the directories of different types of file are specified.

clip_image004

Figure 2 – Temp directories

Whilst you are not expecting to reclaim massive amounts of disk space an amount of pruning can occur in here.

Deployment Location

This folder is set by default to your C10 installation location and the ‘deployment’ folder. Often this is changed to a shared location where as environment has more than once Content Manager server and will only appear on those servers where the Content Manager components are installed.

The deployment location contains files generated by Content Import and Export operations. Folder Exports and Full Content Store Exports can be found in here and the full content exports with report output included can generate large files.

RECOMMENDATION: Periodically it is good practice to review the files in this directory and delete those not required and archive those off the server that you wish to keep.

Data Location

The data location can contain a large amount of files but a small amount of disk space occupation. Below we highlight two directories ‘cqe’ and ‘xqe’.

clip_image006

Figure 3 – Data directories

CQE is the folder than contains all the Compatible Query Engine Runtime objects such as expanded packages from Cognos Connection. When you open a package for the first time it expands into the cqe\rtmodels directory and subsequent opening of the package through tools like Report Studio will use the expanded version for performance.

XQE is the location where any Dynamic Query Mode data files are kept, this only applies if you are using DQM and usually this directory is empty.

RECOMMENDATION: You can clear the contents of the cqe\RTModels directory but it is strongly recommended that the IBM Cognos windows service is stopped prior to removing any files in the ‘data’ area.

Temporary Files Location

When reports execute, DQM caches are refreshed and Content Manager Activities require files to complete actions then these are written into the Temporary files location.

There are a number of subdirectories underneath the temp folder as per the diagram below.

clip_image008

Figure 4 – Temp location sub-directories

Most of the above folders are empty but the structure should remain in place.

RECOMMENDATION: Review the temp directory folder structure and delete any *.tmp files that reside in any folder especially if they are over 24 hours old. It is reasonable to assume that these have been left by old dead processes.

3 Log Files

Log files are created by IBM Cognos 10 for a variety of processes but the main log file is called cogserver.log and by default lives in the c10 install location\logs directory.

The location for the log files is specified in Cognos Configuration:

clip_image010

Figure 5 – Logging Settings

When the cogserver.log file exceeds the Maximum size defined above it is renamed to cogserver.log.1 and any previous one deleted. If you increase the number of maximum full log files then it is possible to retain more history.

Types of Files

The logs directory contains a number of type of log file.

clip_image012

Figure 6 – Log Files Directory

Admin Log Files

These files are created when the IBM Cognos is started and will record any issues that have been recorded in the administrative functions of IBM Cognos 10.

FILENAME FORMAT: admin.yyyy-mm-dd.log

RECOMMENDATION: Delete all except the one with the most recent date.

 

Catalina Log Files

These log files contain any faults relating to the apache tomcat application server.

FILENAME FORMAT: catalina.yyyy-mm-dd.log

RECOMMENDATION: Delete all except the one with the most recent date.

 

Configuration Test Result Files

These files simply store results of the tests of components whilst the IBM Cognos windows services is started.

FILENAME FORMAT: cbs_cnfgtest_nnnn

RECOMMENDATION: Delete all.

 

CBS Log Files

These files tell us starting status’ etc and are replaced on every startup of the IBM Cognos service.

FILENAME FORMAT: cbs_*.log

RECOMMENDATION: Delete only when the IBM Cognos Service is stopped, the files are locked otherwise.

 

cmMetrics Log Files

These files store Content Manager Statistics and are not used in normal operation. They are not readable to the untrained eye.

FILENAME FORMAT: cmMetrics_yyyy-dmm-dd.log and qs_cmmetrics_yy-mm-dd.log

RECOMMENDATION: Delete only when the IBM Cognos Service is stopped, the files are locked otherwise.

Cogserver Log Files

These are the most important files for diagnosing issue. The utility called logviewv2.exe is used to view them and analyse issues. IBM Support often require it to help them diagnose issues.

FILENAME FORMAT: cogserver.log and cogserver.log.n

RECOMMENDATION: Delete only when the IBM Cognos Service is stopped, the cogserver.log file is locked otherwise. Often if you have an issue, stopping the service, deleting or archiving the log files and restarting the service to replicate the issue and generate a small log file is desirable.

Cogserver Sub Log Files

The cogserver series of log files also creates one log file per process. These only contain a small amount of information and are not of use.

FILENAME FORMAT: cogserver_default_nnnn.log

RECOMMENDATION: Delete all.

Host Manager Log Files

These files are created when the IBM Cognos is started and will record any issues that have been recorded in the management functions of IBM Cognos 10.

FILENAME FORMAT: host-manager.yyyy-mm-dd.log

RECOMMENDATION: Delete all except the one with the most recent date.


IPFInternal Log Files

These files contain any issues around the Java elements of IBM Cognos 10.

FILENAME FORMAT: ipfinternal*.log

RECOMMENDATION: Files are locked when the IBM Service is running so cannot be deleted.

Localhost Log Files

These log files contain messages relating to IIS Web Server traffic. They are useful to diagnose issues with communication but produce a lot of information to sift through.

FILENAME FORMAT: localhost.yyyy-mm-dd.log

RECOMMENDATION: Delete all except the one with the most recent date.

Manager Log Files

These files are created when the IBM Cognos is started and will record any issues that have been recorded in the management functions of IBM Cognos 10.

FILENAME FORMAT: manager.yyyy-mm-dd.log

RECOMMENDATION: Delete all except the one with the most recent date.

Pogo Log Files

These files log any startup or operational error messages and can prove useful with cogserver.log in issue resolution.

FILENAME FORMAT: pogo.yyyy-mm-dd.log and qs_pogo.yyy-mm-dd.log

RECOMMENDATION: Delete all except the one with the most recent date.

Pogo Metrics Files

Usually unreadable, these files are not really of use.

FILENAME FORMAT: pogometrics.yyyy-mm-dd.log and qs_pogometrics.yyyy-mm-dd.log

RECOMMENDATION: Delete all except the one with the most recent date.

Once cleaned an example of the logs directory looks like this:

clip_image014

Figure 7 – Clean Log directory without stopping services


XQE Folder

The XQE folder within the logs folder holds workload information relating to the Dynamic Query Mode Operation. This is very useful for improving DQM query performance and a good history in here will give the Cognos Administrator valuable data to use with Dynamic Query Analyser to suggest improvements for performance.

clip_image016

Figure 8 – XQE Folder Contents

The xqelog xml files contain details of where the workload files are. By default they are held in the usage folder and there is a one to one correlation between xml file and usage file. These are the files that are valuable to DQM Analyser.

RECOMMENDATION: Retain as much history as practical, perhaps up to six months’ worth of XML and usage data. Anything in the requestDumps directory can be deleted.

Things that make it go vroooom……. and not break!

So you’ve installed IBM Cognos Controller, you’ve upgraded the database and you have deployed the client. That in itself is no mean feat but the next question is how to do I make it go faster.

 

Below are a series of enhancements that you can make to your Controller environment that could make a 20% to 30% improvement in general performance.

 

1… Split out the consolidation activities from the main application by creating a second COM+ application.

2… Increase the web server document sizing capabilities in IIS 7.5

3… Use the 64 bit Java Proxy service to improve AFC performance

4… Use LAA (Large Address Aware) to make more memory available for the Controller Client on 64bit Operating Systems.

5… Reduce the amount of time that each Controller system waits for batch jobs.

 

1.. Splitting the Consolidation Activities

IBM Cognos Controller is a single threaded application. Often I hear complaints that users are waiting patiently behind a Consolidation to finish before their reporting jobs running in batch can be delivered. Below are some simple steps to create a second COM+ application called COGNOSVFP which will perform the Consolidation allowing other process to use the existing IBMCOGNOSCONTROLLER COM+ application. It only takes around 15 minutes to complete this work but you MUST get all users out of Controller before you start.

 

Steps:

1. Ensure that no users are using Controller (downtime)

2. Logon to the application server as an administrator

3. Click on ‘Start – Settings – Control Panel – Administrative Tools’

4. Launch ‘Component Services’

5. Expand the ‘top row’ (by clicking on the ‘+’ symbols) until you reach the COM+ application called "IBMCOGNOSCONTROLLER"

6. Expand this, and expand “Roles”

7. Make a note of the name of the group under “Roles” (for example called “ControllerUsers”)

8. Make a note of the users listed underneath (typically they will be “Everyone” and “NT AUTHORITY\system”)

9. Right-click on “IBMCOGNOSCONTROLLER” and choose “properties”

10. Click on tab “Identity”

11. Make a note of the username (for example “mydomain\myserviceaccount”)

12. Ensure that you know the correct password for this user before continuing

13. Close the screen, and right-click on “COM+ Applications” and choose “’New Application”

14. In the wizard, choose ‘Next’ then click ‘Create an Empty Application’

15. By convention, we shall name the application ‘COGNOSVFP’ and ensure ‘server application’ is selected.

16. Choose ‘This user’, and use the same Windows user (also known as the “COM+ user” or "service account") that we located earlier.

17. Click “Next”

18. At the next screen, highlight ‘CreatorOwner’ and choose ‘remove’

19. Then click ‘add role’ and type in the SAME name as the role that we saw earlier (for example ‘ControllerUsers’) then click OK.

20. Click ‘Next’

21. At the next screen, remove any user listed, and then add the entries that we saw earlier in the IBMCOGNOSCONTROLLER role.

22. Click “Next”, “Finish”

23. Expand the IBMCOGNOSCONTROLLER application, and open “Components”. Several hundred individual icons will appear on the right-hand side:

24. Highlight the 2 icons called “frangovfp.cglobvar” and “frangovfp.main”

25. Right-click and choose “move”

26. In the “Move components” screen, ensure that “COGNOSVFP” is selected, and click “OK”:

27. Expand “COGNOSVFP” – “Components”

28. Select both components, and right-click and choose “properties”

29. Click on ‘Security’ tab, and then tick both boxes ‘Enforce’ and ‘ControllerUsers’

30. Click OK

31. Reboot the application server. You are now ready to test.

 

The COM+ application is shown as the process DLLHOST.EXE within Task Manager. A consolidation would usually take up one entire CPU so on a quad core server I would expect the process to utilise 25% of the total capacity.

 

2.. Increase the Web Server document sizing capabilities

Some protection has been put in place in the versions of IIS shipped with Windows 2008 R2. This means that some large spreadsheets will fail with ‘Out of Memory’ issues or HTTP 404 errors. To overcome this you simply need to edit the file below and larger spreadsheets will run successfully.

 

1. Ensure no users are using Controller (short period of downtime)

2. Logon to the Controller application server as a Windows administrator

3. Launch Windows Explorer

4. Locate your "ControllerProxyServer" folder. TIP: By default, for 64-bit servers this is: "C:\Program Files (x86)\IBM\cognos\c10\ControllerProxyServer"

5. As a precaution, take a copy of the file "Web.config" and place it somewhere safe (as a backup)

6. Click "Start – All Programs – Accessories"

7. Right-click on "Notepad" and choose "Run as Administrator"

8. Click "File – Open"

9. Browse to the location of your "ControllerProxyServer" folder.

10. Change the file format from "Text" files to "All Files (*.*)"

11. Open the file "Web.config" file

12. Scroll all the way to the bottom.

13. Just before the final line ("</configuration>") add a few lines of extra text (see below for details).

14. Save

15. Test.

Additional lines in Italics and Bold

</system.diagnostics> 
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="3145728000"/>
</requestFiltering>
</security>
</system.webServer>

</configuration>

3.. Using 64bit Java Proxy Service

This change involves using the 64bit version of Java through the CCR_JAVA_Home variable and changing the executable that the service runs under. This is a new feature that has been released in IBM Cognos Controller 10.1.1 Fix Pack 2 only.

 

1. Ensure no users are using any functionality related to JAVA (or, ideally, ensure no users are in the Controller system at all)

2. Logon to the Controller application server as a Windows administrator

3. Stop the Windows service "IBM Cognos Controller Java Proxy"

4. Launch Windows explorer, and navigate to the …c10\server folder. TIP: by default this is here: D:\Program Files (x86)\IBM\cognos\c10\server

5. Rename the file "ccrproxy.exe" to "ccrproxy.exe.x86"

6. Rename the file "ccrproxy_x64.exe" to "ccrproxy.exe"

7. Right-click on "Computer" and choose "Properties"

8. Click "Advanced system settings"

9. Click "Environment Variables"

10. Highlight the "CCR_JAVA_Home" system environment variable and click "Edit"

11. Modify it to point to the directory of a 64 bit JRE. TIP: By default this is: D:\Program Files (x86)\IBM\cognos\c10\bin64\jre\6.0

12. Start the Windows service "IBM Cognos Controller Java Proxy"

13. Test.

IMPORTANT: It is more than likely that this file will be replaced everytime you patch the Controller software therefore you should ensure that you document this change as part of an update in the future.

 

4.. Use Large Address Aware to allow Controller Clients to use more than 2GB memory

The change below is NOT officially supported by IBM but the people on the ground tell me if works well and I have seen big performance improvements on larger processes with less Out of Memory issues. It is recommended to be implemented on larger PC’s with over 4GB RAM and all Citrix / Terminal Server implementations.

 

This process uses a third party application that is not supported directly by IBM but it is recommended to use it for the performance improvement.

The steps to implement this on each client device are as follows:

1. Open Windows Explorer

2. Navigate to C:\Program Files (x86)\IBM\IBM Cognos Controller.

3. Make a copy of the file ccr.exe

4. Download the third party tool 4GB Patch from http://www.ntcore.com/4gb_patch.php

5. Open the 4GB Patch application.

6. Open the file ccr.exe from the open icon in.

7. The application is changed to allow the Large Addressing and a backup copy it also made.

8. Test the core functionality.

Ensure you do this configuration change on every Citrix / Terminal Server as you will experience slower performance on those servers not patched.

5.. Reduce the Controller Job wait time

Whenever you send a job to the batch server, it can take some time to pickup the request. This can cause frustration as the default is set to 20 seconds per application database. So if you have LIVE, TEST, DEV, and TRAINING databases a consolidation might not start for 80 seconds (4 databases x 20 seconds). My editing the registry you can reduce this time to something more sensible. You could also reduce the number of databases too!!

 

To alter the registry you simply need to perform the following steps on your Controller application server:

1… Open regedit32.exe

2… Navigate to HKEY_CURRENT_USER\Software\VB and VBA Program Settings\FrangoController\Settings

3… Change the BTC_TIMER_INTERVAL from 20000 (20 seconds) to a lower value (minimum 2000). Do not change it to zero.

4… Close the registry editor and restart the IBM Cognos Controller Batch Server service.

 

Please note that the location of the registry key for 64bit Servers is HKEY_CURRENT_USER\Software\Wow6432Node\VB and VBA Program Settings\FrangoController\

Also, it is good practice to check your c10\data directory out and remove any redundant .UDL files in there as they will be scanned by the Batch Service.

Upgrading BI from Cognos8 to Cognos10–Is it all that?

All I seem to see at the moment are warnings going out from Partners and IBM stating that Version 8.4.1 BI is going out of support from September. From the warnings and language used you’d think that servers will stop, services will crash and the world will end.

So what will happen?

So what do I need to do?

When do I need to do it by?

 

So to reassure those of you of a nervous disposition the following FAQ’s are below:

Q1… Will the software stop working.

A1… No, IBM Cognos software has no timebomb or expiry date within it.

Q2… Will I still get support?

A2… It depends, Version 8 is going out of fix support. Therefore, the code will NEVER be modified again meaning that it you discover a new bug it will be fixed in the latest version (10.2.1). IBM will not take support calls on the retired version but often most partners will still take support calls on old versions and try to encourage you to upgrade.

Q3… Is upgrading risky?

A3… Any upgrade carries a percentage of risk, it’s how you mitigate that risk that is important. An upgrade from ReportNet or Cognos 8 version 8.1 and 8.2 to Version 10.2.1 is more risky than a Version 8.3 onwards. This is due to the underlying query engine changes that Cognos performed between Versions 8.2 to 8.3. It means that a report that ran in 8.2 might not run in 8.3. It has nothing to do with Version 8 to 10!! Also, if you use JavaScript in your reports the JavaScript may not run as the syntax could have been changed. Beware, this is outside of the supported parameters for IBM and they caveat the support around this.

Q4… Should I perform a test upgrade?

A4… Yes this is recommended but some smaller clients do not have the additional hardware that is required.

Q5… Should I use professional services to perform the upgrade?

A5… If you have a multi server environment or a large complex application then YES. If you have a single server small BI application then by following the steps later in this blog post you should be able to do this yourself. However, please remember that you should not log a support case with IBM or your partner if you are trying to upgrade yourself as the majority of support contracts are Maintenance and Defect only contracts NOT upgrade services.

Q6… What if I choose to do nothing?

A6… That is your choice, nobody can force you to upgrade. However, you are only one Microsoft Windows patch, Internet Browser upgrade etc from your server or your users being unable to function properly. I would strongly urge you to consider upgrading and plan it accordingly. Not leave it until it is too late.

 

Below is a high level process that will upgrade a single server installation of Cognos 8 to the latest IBM Cognos 10.2.1 software (actually any Version 10):

 

Assumptions

1 x Windows 2003 or 2008 R2 application server with the existing IBM Cognos8 software installed.

1 x Database Server or Database Management software installed on the same application server. The Content Store database and login details remain unchanged.

All software being installed is the 32bit versions for the software and are Version 10.2.1.

 

Pre-Upgrade:

1… Check out the supported environments for your planned release to ensure that your servers and / or client meet those support requirements. Windows 2000 was a great release but won’t work with Cognos 10. The very latest supported environments can be found at http://www-01.ibm.com/support/docview.wss?uid=swg27014432

2… Discuss with the user community when is the best time of the month to perform the upgrade. Tell them that the environment will be unavailable for at least one day possibly two. That way if you do it quicker you are a hero not the nerd from IT out of his depth!!

3… If your server is a Virtual server ensure that you take a snapshot of the server BEFORE you do anything. If it is a physical server ensure that you have a good backup of the entire server and the Content Store database.

4… Obtain the downloads for the Cognos 10 software from the IBM Website or your support providing partner including any fix packs that have been released.

 

Process:

Part One – Uninstalling

1… Access Cognos 8 and run a series of reports, saving or printing the content. This will be used to check the report output in Version 10.

2… Backup your Content Store Database AND perform a full entire Content Store deployment (Cognos Administration –> Content Administration –> Export). This gives you two restoration options should anything go wrong.

3… Open Cognos Configuration and choose EXPORT AS from the FILE Menu. It will ask you to specify a file. Save it somewhere safe (not in Program Files!!). This XML file is vital to reconfiguration of Cognos 10.

4… Stop any IBM Cognos related Windows services.

5… Uninstall all Cognos8 software using the START Menu. The uninstall process will tell you what you can install. Select it all and let it work through.

6… Restart the application server if you are requested too. If not then go to a command prompt and type iisreset to restart IIS and release any locks.

7… Turn off User Account Control (UAC) if you are using Windows 2008. It save you a large amount of time not having to constantly confirm you are an admin!!

 

Part Two – Installing

1… Now you have a blank machine we need to install the relevant images. All the software images are installed through a program issetup.exe residing in the win32 directory. Remember to ‘run as administrator’ if you are using Windows 2008.

2… Now run each of the images through below, installing into the \Program Files (x86)\IBM\Cognos\c10 directory on your specified drive. When the install has run through do not configure the environment.

Installation Order

BI Server

Metrics Server (if applicable)

BI Modelling

Metrics Modelling (if applicable)

BI Transformer

Supplementary Language Packs (if you want the User Interface to support multiple languages)

BI Samples (for the Audit features)

 

3… Setting up the IIS Web Server is a little more involved. The steps are as follows:

a) Allow the ISAPI and CGI extension to execute. The option can be found below and you need to allow cognosisapi.dll and cognos.cgi to execute.

image image

b) Delete the existing Cognos8 and Cognos8\cgi-bin virtual directories as they are no longer needed.

c) Change the properties of the Default Application Pool to run 32bit application by changing the advanced properties below.

image

d) Create a new virtual directory called ibmcognos and point it to the installationlocation\c10\webcontent directory

e) Under the ibmcognos virtual directory, create a new virtual directory called cgi-bin pointing to the installationlocation\c10\cgi-bin directory

f) On the cgi-bin virtual directory click the Handler Mappings button image and then choose the image option on the right of the screen.

g) Select execute and press OK.

h) Click image and add the CGI mapping as below.

image

 

i) Now your web server will accept Cognos CGI and ISAPI requests through the gateway.

image 

j) If you are using CGI for your gateway then you need to modify the file web.config in the c10\cgi-bin directory to have the allowPathInfo argument at the end of the line. My example is below.

image

k) Finally, for those wishing to use ISAPI not CGI (highly recommended by me!) simply navigate to the c10\webcontent directory and edit the default.htm and index.html replacing the single instance of cognos.cgi with cognosisapi.dll in each file.

 

Part Three – Configuring

1… This is the time saving section. Delete the file cogstartup.xml from the \Program Files (x86)\IBM\Cognos\c10\configuration directory.

2… Take your exported configuration file and copy it into the configuration directory renaming it as cogstartup.xml.

3… Open Cognos Configuration and your configuration will  be upgraded.

4… In the environment section change the Gateway URI to point to the virtual directory called ibmcognos not cognos8. Remember to specify at the end if you are using CGI (cognos.cgi) or ISAPI (cognosisapi.dll)

5… Go to the service section and rename the service from Cognos8 to IBM Cognos.

6… Save the configuration. A successful configuration will produce a series of green ticks.

7… Now start the service using the start button on the toolbar. The details pane will open and give you details of the startup. The logs for this are stored in the c10\logs directory.

8… Once the service has started, close Cognos Configuration.

 

Part Four – Testing

1… The first test is system access. Try reaching the URL http://myservername/ibmcognos and you should be prompted for security and then the Welcome Page or Cognos Connection

image image

2… Now try running your reports that you have the sterile hard copy output for.

3… Compare the output between the two. Is the data output the same. Some small cosmetic differences should be expected.

4… Is the performance better or worse, the previous execution history will be contained in the ‘view report history’ detail for each report.

5… Open the environment to a few key users and ask them to test the environment and their key reports. Remember to ask users to clear their browser cache before they use the new version as some old JavaScript files could be resident.

 

Part Five – Upgrading Clients and Applications

1… For Framework Models, simply open the Framework model using Framework Manager and save it. The upgrade is complete and a timestampped version in Version 8 format is retained.

2… For Transformer Models, open and save the Transformer Model. Depending on where you started your upgrade you may need to open the MDL file first and save it as a PYJ file.

3… For Automation, ensure that any batch files that use command lines such as Transformer use the correct cogtr.exe in the c10\bin directory. Also use the new deployment features with Transformer and the –g switch to automatically promote your cubes into production. All PPESAUDIT, CUBESWAP and similar applications are now redundant (thankfully!).

 

Summary

In summary, if you are confident, your application and implementation is fairly straightforward and you have the support of a Cognos BI person internally then I don’t see any reason why you cannot do the upgrade yourself. If you are using a lot of JavaScript or your environment is business critical then it makes a lot of sense to engage with a Partner and the perform a test migration first. Multi server environments are not really that complex but require a lot of testing and a Partner can help you to plan all this and manage the upgrade successfully.

Good luck, if I can help at all please comment and hopefully this post will help you to achieve a successful upgrade with less fuss and cost!

Cognos Controller Performance Issues

Overview

I recently completed a review for a client on Cognos Controller performance. The environment was a very simple configuration with only a few users but they were experiencing terrible general performance within Controller itself.

The environment was a single server containing SQL Server and Controller Version 8.5.1 RTM. The user community was only 30 users split over 12 companies and all users use the .Net web client to connect via the Controllerbin virtual directory.

During the review it was decided to look at three key areas:

  1. Logon Performance
  2. Data Entry Performance
  3. Report Execution Performance

We decided to extend the scope of the performance testing by benchmarking operations from the head office and then repeat the tests at 3 of the external sites.

Benchmarking

The logon performance issue appeared to be the biggest issue for the remote userbase. Therefore, we decided to break this test up into two parts. The first one was to time the product from double clicking the URL link for Controller to the moment the actuality screen appeared and then the second test from the actuality screen to Controller’s application being fully loaded.

This test was conducted by ourselves at each site and we also tested each issue using local hardware and the same laptop that we used at Head Office to eliminate hardware differences.

We then repeated the tests for data entry and report generation, again using the same local hardware and group company hardware.

Findings

We found that logon performance shows a vast difference in performance. The statistics shown below are logon time in seconds.

image

image

Clearly, the results show that simple networking is not causing the issue. At site 2 it takes three times longer to logon as it does for a head office user at site 2!

We also tested logon performance at each site using the Head Office laptop using the Web client and the Locally installed client, again this showed further gains in like for like performance.

image

image

This clearly demonstrated the saving that hosting the client locally rather than using the .Net client had on performance.

When we tested Data Entry and Report Generation we saw similar improvement generally in performance.

Data Entry:

image

image

image

image

Report Generation:

image

image

image

image

The hardware used for testing was:

image

Investigation

With the results to hand I started to look at the architecture and the configuration. It was soon clear where the problem resided….. Authentication!!!!

This client had an authentication model based on Cognos8 security rather than the Native security model in Controller. When I investigated this further, not only was active directory used but each site had their own domain and the servers were based in the head office domain.

When the system was originally implemented by another organisation they correctly configured the system to allow for Single Signon and had to setup the authentication to use the multiDomainTrees and chaseReferrals settings. These settings basically search the entire number of domains for authentication and it was this constant searching that was causing performance problems logging on and also running anything as Controller constantly checks that users can perform actions and see data.

During our investigation, we also found that Enhanced Report Optimisation (ERO) was not implemented. This is known to improve Excel report performance by anything up to 300%.

Recommendations Implemented

The following recommendations were implemented:

  1. Changed Controllers security model to ‘Native’
  2. Implemented Enhanced Report Optimisation.

Post implementation testing

Following the configuration changes we repeated the benchmark testing and found significant improvements to the performance of all areas.

The collates results showed improvements in the following areas:

  1. Logon Performance – 85% improvement.
  2. Data Entry Performance – 45% improvement.
  3. Report Generation – 25% improvement.

Conclusions

  1. If you have Cognos8 security and multiple domains then you should expect application delays generally whilst the CAM module performs authentication.
  2. Use Native security if you have a small number of users to manage.
  3. If you have a multi-domain environment, consider deployment of Controller via Citrix or Terminal Services to reduce management and improve performance.
  4. Always implement Enhanced Report Optimisation whenever you install Controller. It will pay benefits immediately.

I have worked with IBM on the results of this engagement and the following Technote has been created with a brief summary at http://www-01.ibm.com/support/docview.wss?uid=swg21606662

I also recommend that before you implement Cognos8 security with Controller that you consider reading the Active Directory Story at http://www.ibm.com/developerworks/data/library/cognos/page64.html

Parsing PowerPlay Enterprise Server Logs

One the my recent challenges has been to design an SSIS application to read the massive amount of information provided by PowerPlay Enterprise Server audit files.

These file are created when you enable auditing in PPES Admin and provide detailed analysis of user and cube activities. It can prove to be invaluable when deciding if a cube is viable or underutilised.

IBM Cognos provides a command line utility which takes the log information and transforms it into a DataMart. However, during testing we found that it was taking up to one day to process 100mb of data and therefore not viable for us to use.

I undertook a short project to deliver an SSIS application that imported the entire range of log files and parsed the information into dimension which will provide my client with insight into the usage and load placed on their BI environment. We had particular interest in three things

  1. Number of requests by day for future load calculations.
  2. Number of requests by cube to look for obsolete entities.
  3. User analysis by last access date to check for user licence utilisation.

The SSIS Application

We were able to quickly construct an SSIS application. The application consists of two sections, the importing of the raw log files into the staging environment and then the processing of the data into the dimensions and fact tables.

The importing into the staging environment used tried and trusted SSIS techniques. These involved a For Loop Container, a Data Flow Task and a File System Task to move the completed logs into an archive or processed directory.

The Control Flow looks like this:

image

Once the bulk data has been loaded into the staging table the table looks like this:

image

The challenge now was to turn the information in the vast number of log line entries into meaningful intelligence. The lines that I parsed through to the dimensions is the Sub Types of ‘REQINFO’ and ‘USR’. The request information gave me cube and dimensional analysis with the user line giving me the user analysis.

During the creation of the dimension and fact table SSIS routines I needed to parse one of the fields called Line_Details as it was comma delimited. I used some neat SSIS functionality in the Derived Column Transformation to parse the arguments. The function in question was called FINDSTRING and you use it as follows:

FINDSTRING(fieldname,’stringtofind’,occurrence)

Therefore if you want to find the first occurrence of a comma in the field Cube_Details then you would use the command FINDSTRING(Cube_Details,",",1)

As I was looking for the argument BETWEEN the first comma and the second comma my derived expression was like this:

SUBSTRING(Cube_Details,FINDSTRING(Cube_Details,",",1) + 1,FINDSTRING(Cube_Details,",",2) – FINDSTRING(Cube_Details,",",1) – 1)

Finally, a bit of data cleansing was required to remove any double quotes and forward slash characters from my data by using the SSIS derived expression REPLACE as below:

REPLACE(Cube_Name,"/","")

Double quotes was a little harder to calculate but the command below works:

REPLACE(Cube_Name,"\"","")

Therefore, now the SSIS packages are written and published for scheduled execution we will now move onto the writing some BI reports to consume the information. The final structure for Version 1 of the application is below.

image

Summary

By writing this application it has given me a greater understanding of the information held within the PPES audit logs. It has also enabled my client to have a detailed view of what is being processed on a daily basis. Their BI application is quite mature and is under continual development so being able to see who is using the tools and who is not is invaluable information.

By writing the application using SSIS I have been able to parse over 120 log files (12GB) in around 1.5 hours. With the existing out of the box PPES Audit collector this would literally have taken years and in all probability would never have finished.

The next project is to do a similar SSIS exercise parsing the cube build log files to look at duration, segmentation and the resources required from SQL Server to read the data. I will share the results once known.

Cognos Controller 10.1.1 is released

IBM Cognos Controller 10.1.1 has recently been released and contains the below exciting new features:

  • Copy Journals – Keep creator
    When you copy a journal in IBM Cognos Controller 10.1.1, then the user that originally created the journal in data entry is kept as the creator and is not replaced by the user that did the copy.
  • Improved company status handling with company journals
    In IBM Cognos Controller 10.1.1 the status handling of companies has been improved.
  • Improved delete period values
    In IBM Cognos Controller 10.1.1 the deletion of data has been improved.
  • Concurrent updates of structures
    IBM Cognos Controller 10.1.1 no longer has any restrictions on what windows can be open simultaneously.
  • Improved status functionality
    In IBM Cognos Controller 10.1.1 the status functionality has been improved by introducing two new command centers.

A significant number of bug fixes have also been applied and a few improvements to the installation process including no need for the Windows 2003 Support Tools (hurrah!).

The full list of bug fixed in this release can be found at http://www-304.ibm.com/support/docview.wss?uid=swg27024070 and I strongly recommend that you check this list out as some of the fixes are quite significant.

The supported environments have been updated to include Internet Explorer 9 and Adobe Reader X. However, support for SQL Server 2012 is not yet there! Full details can be found at http://www-304.ibm.com/support/docview.wss?uid=swg27024069

 

Technical Installation Changes

JRE

From a technical perspective the Java Runtime Environment (JRE) is automatically installed with IBM Cognos Controller Financial Analytics Publisher and IBM Cognos Controller Web Services Server. This means that you no longer need to define the JAVA_HOME or CCR_JAVA_HOME environments.

You only need to define these environments if you want to use an additional JRE in a different location.

Financial Analytics Publisher – FAP

The IBM Cognos Controller Financial Analytics Publisher (FAP) installation was divided into two; FAP Server installation and FAP Client installation.

This simplifies the installation of the FAP server and FAP client on different machines.

Additionally, the FAP service is automatically registered after you install the FAP Server. By default, the FAP service is registered to use the local system account. However, you can change this account to suit your requirements.

Application of Updater Kits

IBM Cognos services are automatically stopped when you install interim fixes or fix packs.

The updater kit automatically checks for IBM Cognos services that are running on your machine, and attempts to stop them. The updater kit displays a list of services that are currently running. If any of the services cannot be automatically stopped, the user is prompted to manually stop them. The updater kit continues with the installation after all services are successfully stopped. This issue has previously caused lots of issues when applying fix packs or interim fixes.

 

As well as these improvements, some additional changes have been made to existing functionality, namely:

Unpacked integration directory for CCRLocalClient.msi

Administrators use the CCRLocalClient.msi when full control over the deployment process is required. Now the integration folder is unpacked directly in the CCRLocalClient.msi file.

In previous versions, the CCRLocalClient.msi contained an integration.zip file that was unpacked in each user’s profile at the launch of ccr.exe. Now that the integration folder is unpacked directly in the CCRLocalClient.msi file, there is only one unpacked instance of the integration folder. This improves the speed and efficiency of client operation on all client installations especially those deploying over Citrix or Terminal Services.

Microsoft Windows 2003 support tools are not required

IBM Cognos Controller no longer depends on the inclusion of Microsoft Windows 2003 support tools. Controller used to require a single DLL from this software but finally this is no longer the case.

Configuration settings preserved by updater kit

Configurations settings are no longer over written when you install interim fixes or fix packs for IBM Cognos Controller.

Now, when you install an interim fix or fix pack using an updater kit, a set of default configuration files are included. This allows you to keep the configuration settings that you used prior to installing Controller updates. These default configuration files are easily located since they all use the file extension .new.

If you want to replace any of your existing configuration files with a .new default configuration files, you simply remove .new from the filename. For example, to use the updated version of the ccr.exe.config.new file rename the file as ccr.exe.config.

The default configuration files provided with the updater kit are:

  • web.config.new, located in c10_location\ControllerProxyServer
  • import.config.new, located in c10_location\ControllerProxyServer
  • CCR.exe.config.new, located in c10_location\webcontent\ccr\
  • FAPService.properties.new, located in c10_location\server\FAP

Improved handling of the Windows User Access Control

To correctly configure all settings during the installation and configuration or to install the local client, you must perform these tasks with elevated privileges as an administrator.

If you are installing on a Windows Vista, Windows 7, or Windows 2008 computer, the User Account Control (UAC) is turned on by default. When the UAC is turned on, it can suppress certain programs from accessing system files or registry keys without full administrative rights. You must run the following IBM Cognos Controller programs under administrative privileges:

IBM Cognos Controller Configuration
Adjust the permission level of your user account to correctly store changes to the configuration settings.
CCRLocalClient.msi package
Adjust the permission level of your user account to properly install the local client.

Windows informs you that a change made to your computer or installing a new program requires administrator-level permission. As an administrator, you can acknowledge the notice and continue. If you are not an administrator, or if you are using a standard user account, you must provide either permission or an administrator password before performing the task. With the proper handling of UAC, changes to the configuration are accurately stored, reducing the likelihood of any associated installation errors.

Setting the level of detail in error messages

Administrators can now specify the level of details that are displayed in an error message to help users troubleshoot a problem. The administrator can change this setting by modifying the ControllerWebServiceException property in the Web.config file.

Error messages include details that can help IBM Support diagnose the problems and trace the events that led up to the failure. As a system administrator, you can now restrict the type and quantity of information that is displayed in the error message as a security precaution. For example, when the property is set to 0, no details are provided except for the instruction to contact the system administrator.

To facilitate the configuration process, the error message setting also applies to those error messages generated when using IBM Cognos Controller Configuration.

Summary

So in summary, IBM have been busy in the R&D offices putting together a strong release of Controller with particular emphasis on listening to the Customer and Partner communities feedback for new functionality, ease of installation and operation improvements. This release also works in conjunction with the other 10.1.1 family of products. Personally, I have linked Controller 10.1.1 to BI 10.1.1 FP1 and TM1 10.1 FP1 without any major issues.

Controller will continue to be a challenge to install and configure because that is the nature of the beast especially on non SQL Server environments but it is a step in the right direction.

As usual, I would love to hear your experiences with 10.1.1 and also 10.1. We have been working with it for a while and are happy to share experiences with the community.

Controller and TM1 Integration

Due to the recent release of TM1 Version 10.1, a number of clients are wanting to utilise the latest functionality in TM1 Version 10 with the Financial Analytics Publisher (FAP) functionality.

This can now be done but you need to observe the following matrix of compatibility carefully:

  • Controller 8.5.0 only works with TM1 Version 9.4 and 9.5.1
  • Controller 8.5.1 only works with TM1 Version 9.5.1 and 9.5.2
  • Controller 10.1 RTM to 10.1 Interim Fix 5 works with TM1 Version 9.5.2
  • Controller 10.1 Interim Fix 6 works with TM1 9.5.2 and TM1 10.1

Controller 10.1 IF6 was released on March 7 and is the only release that integrates TM1 10.1 with Controller and the FAP process. Additionally, to allow the TM1 10.1 integration you need to perform the following ‘manual’ step.

  1. Replace the “c8itk4j.jar” from the “FAP lib” folder with the “c8itk4j.jar” file from the “TM1_10.1_CAM_compatibility” folder in Controller 10.1 IF6.
  2. Confirm that the correct system variable Path is set for the newly installed TM1.
  3. Restart the FAP service.

Once you complete these steps you break any integration with TM1 9.5.2 so backing up the existing c8itk4j.jar file before you start is highly recommended.

It is also planned that this step will be automatic when patch updating Controller  from release 10.1 IF7 (Due April 2012) and this means that from IF7 onwards FAP integration will only be provided by using TM1 10.1.

The Interim fixes that are produced by the Controller development team are only made available on request. If you wish to obtain an interim fix then you need to must log a PMR with IBM Support. The support team usually send you a link to the FTP site within 24 hours to entitled support customers. If you are supported by a partner then you need to request the Interim Fixes through your partner support desk.

It is interesting to see IBM make the bold step of providing integration to the newest platform only so early in it’s lifecycle. It shows the confidence that they have in the new version of TM1.

IBM Cognos BI 10.1.1 is here

IBM Released Cognos 10.1.1 last week which adds some new features to the stack. However, there is good and bad news. The good news is that IBM have fixed a significant number of product defects (bugs to you an I) but the bad news is unlike a Fix Pack it cannot be installed over the top of the existing installation. It has to be a brand new installation.

Documentation has been coming out for the new release throughout the week together with the announcement for iPad support within the GO Mobile platform. For those of you who have been desperately waiting for an APAR to be fixed the full list of fixes since Version 10.1 FP1 can be found at https://www-304.ibm.com/support/docview.wss?uid=swg27021369.

Added to the supported environments comes Internet Explorer 9 and Firefox 4 & 5. Most of the remaining supported environments remaining the same.

First look at the new features in this release see a significant effort being placed on improving and extending the Dynamic Query functionality brought into the 10.1.0 release. You can now use the dynamic query mode for OLAP over relational models with relational data sources.
The dynamic query mode is recommended for new applications of IBM Cognos Business Intelligence. You can enable the dynamic query mode only for new Framework Manager projects.

You can use the dynamic query mode for OLAP over relational models with the following relational data sources:

  • IBM DB2
  • Oracle
  • Microsoft SQL Server
  • Teradata
  • Netezza

For those of us with bloating Content Stores, another exciting new feature includes the ability to archive content into FileNet. You can now archive saved report output to an IBM FileNet® Content Manager repository. This allows you to adhere to regulatory compliance requirements and reduces the amount of content in the content store. You can view archived content from IBM Cognos Connection and search archived content using indexed search. IBM Cognos Business Intelligence archiving uses the Content Management Interoperability Services (CMIS) specification, which is new to IBM FileNet Content Manager version 5.0.

Business Insight and Business Insight Advanced have seen additional capabilities added to their core functionality and Active Reports has a few significant new features.

Comprehensive documentation on the new features in this release can be found at http://public.dhe.ibm.com/software/data/cognos/documentation/docs/en/10.1.1/crn_nf.pdf

The usual advice applies to any new release. By all means install it in development environments or brand new environments but as stated earlier, it is a whole installation and not a fix pack so it is recommended to treat it as an upgrade.

Let me know what you think of the new features in 10.1.1!