Posts

Cognos 8/10 CAMID-User ID/LDAP ID report

I came across this slick KB article on how to get the list of active sessions/users currently on any cognos environment and implemented it. https://www-304.ibm.com/support/docview.wss?uid=swg21385278 After I got this to work the servlet that runs only retrieves the CAMID and the session start time. I started looking around in the content store tables and was able to successfully  retrieve the CAMID and the associated  LDAP ID/User ID. I made this a query subject in the Audit model and joined it to the security groups table and created a report that will give me User ID, CAMID, AD Group, Name , Email. Query : SELECT  distinct ldap_id,     last_name,     first_name,     email,     objid as CAMID     FROM            (SELECT c33.cmid user_id, UPPER (c33.NAME) ldap_id,                   c1.surname last_name, c1.givenname first_...

Cognos Retrieve deleted/orphaned user's my folders from content store

Recently I had a challenging requirement to retrieve some users My Folders content whose active directory profiles were accidentally deleted and recreated. This requirement came to me after three days the profiles have been recreated, because there were profiles with new GUID in active directory which is nothing but CAMID in cognos they were not able to see any of their reports in cognos. First i started importing the content store deployment from 3 days ago(this had to be extracted with a point in time copy as it gets overwritten every night) to a sandbox and it ran for 5hrs and showing errors on some user profiles saying their CAMID is missing. After struggling for 10 hours I found this slick SDK script that gave some hope. Basically this SDK script on cognos KB queries the content store for Orphaned My Folders and saves them to a folder in Public Folders with CAMID's. We then had our DBA's restore the content store to the point where users had old CAMID's and I po...

Cognos Transformer Cube failure Alert Mechanism

Recently I had a requirement to create a automatic alert mechanism on cube build failure. As we all know this can be a project by it self if we set it up in a traditional way of write cube logs to tables and creating reports on top of the tables and setting up events to send out alerts on any failure. But with the help of a network admin I was able to setup alerts and it took some basic Vb coding too.. Below is the workflow of how the setup works and the basic requirements(this is for windows environment only): There are two VB scripts we need to setup and schedule via windows scheduler. First script writes the name of the Transformer log file into a .txt file. In my case the log file had a date that had to queried everyday before writing the log file name. ' Declare Variables for Oracle SQL   Dim OdbcDSN   Dim connect, connectionstr, sql, resultset      Dim fso      Set fso = CreateObject("Scripting.FileSystemObject")    ...

IIS 7 configuration for Cognos 8/10

Recently I was helping a friend to install Cognos 10 on his Windows 7 laptop, the install went smooth but to get the IIS running and have the Portal page come up it took more than 2 hours of googling and tweaks. So i figured it's wise to share this and even if one person can save time it's worth it. Configuring IIS 7 for cognos has changed a lot when compared to IIS 6, where you have straight forward settings to setup virtual directories and allow read/write/execute. In IIS 7 you need to do a bit more or may be it's just for windows 7, I haven't explored IIS 7 on Windows NT 2008. I have included the cognos support link that has the detailed steps in setting up IIS7. Before you follow the link you can enable or install IIS 7 in all Windows 7 professional systems under Control Panel > Programs > Turn Windows Components On or Off. Also make sure you enable ISAp and CGi extensions after IIS is installed from the same location under World Web Services(you can google t...

Analysis Studio Default Analysis report

Recently had a requirement where a blank Analysis Studio report needs to open when you open an existing report and click on new report icon. By default tool tries to put first two dimensions across and the first measure to form a cross tab, to overcome this you can utilize the 'Default Analysis' under Package > More> Modify the package configuration... >Default Analysis. The report that we setup here will be used as a default view and will open up when you choose default analysis or new icon with in Analysis Studio. There is an enhancement logged in with cognos to have Get Data Later option to be set as default.

Exploring New BI tools

Currently I'm exploring new BI tools after attending some demos from major vendors like SAP and Microsoft. Microsoft has a free BI excel plug in that's simple to learn and use but very powerful, it's called power pivot. You can download it from www.powerpivot.com - check it out. Microstrategy has similar architecture as Cognos so it's easy to learn it from Administration,Development and Design perspectives.

Prompts in Cognos Framework Manager

I use prompts in FWM time to time when the data is huge and I want to filter it right from table and also in manual SQL. Every time I use it I search for the syntax so i thought would share it here: Macro-   #prompt(‘pmtName’,’ datatype’)# Parameter Map-  #$parametermap{prompt(‘ pmtName’,’datatype’)}#  Session Parameter-   #$parametermap{$ Sessionparameter}# Date Prompt-  to_date(#prompt('Start/END Date', 'varchar')#,'yyyy-mm-dd') If you have multiple values to pass on to these prompts use  'in' as part of where clause. where Data_Item = (#prompt('Param_Name', 'varchar')#)