COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Cognos Administration => Topic started by: ordotan on 04 Nov 2015 07:00:28 AM

Title: Automatic import of a deployment archive
Post by: ordotan on 04 Nov 2015 07:00:28 AM
Hi,

Is there a way to trigger from outside of Cognos (command line/script/ect) an import job, that will import to Cognos reports from a specific deployment archive.

I know there is a way of using Cognos SDK for this, but I wanted to know if there are additional option of doing it..

Title: Re: Automatic import of a deployment archive
Post by: Northern_Monkey on 04 Nov 2015 08:14:06 AM
You could always use a command line script to move the archive from one environment to the other and then have a scheduled maint. task from within cognos admin to import the task?
Title: Re: Automatic import of a deployment archive
Post by: ordotan on 04 Nov 2015 08:45:14 AM
I don't want a schedule that will run in the background all the time... it is a one-time thing, that should happened once I place a specific zip in "Deployment" folder
Title: Re: Automatic import of a deployment archive
Post by: Northern_Monkey on 04 Nov 2015 08:56:13 AM
In that case you can fire an event that houses a job off a trigger:

https://www-304.ibm.com/support/docview.wss?uid=swg21340069
Title: Re: Automatic import of a deployment archive
Post by: prikala on 05 Nov 2015 02:09:21 AM
Slightly off topic but I wonder if Cognos license terms are violated if I were to
- set up export-import from Dev to QA using
   - export deployment started using trigger
   - deployment archive copy
   - import deployment started using trigger
- let regular developers (non admins) use above-mentioned export-import system to move stuff from Dev to QA without them having Cognos admin licenses?
Title: Re: Automatic import of a deployment archive
Post by: Northern_Monkey on 05 Nov 2015 02:13:43 AM
It's a question for your Cognos rep. Depends what your licence agreement is.
Usually you get X number of Deverloper,  X number of Admins and X Consumers.
Title: Re: Automatic import of a deployment archive
Post by: bdbits on 06 Nov 2015 04:41:28 PM
My understanding is that you do need admin licenses. But check with your rep.
Title: Re: Automatic import of a deployment archive
Post by: MFGF on 09 Nov 2015 03:24:14 AM
Quote from: prikala on 05 Nov 2015 02:09:21 AM
Slightly off topic but I wonder if Cognos license terms are violated if I were to
- set up export-import from Dev to QA using
   - export deployment started using trigger
   - deployment archive copy
   - import deployment started using trigger
- let regular developers (non admins) use above-mentioned export-import system to move stuff from Dev to QA without them having Cognos admin licenses?

I think the answer would hinge on which user's credentials are being used by the export/import processes. If a legitimate Admin user creates these processes and the schedule, then anyone firing the trigger would not be logging in with Admin capabilities and would not have their ID running the processes. My feeling is that this would be fine - triggering a schedule from outside of Cognos is not a task only an Administrator can do - "normal" users can create and run schedules too.

As Northern_Monkey and bdbits suggest, the definitive answer will come from your IBM Account Manager, though - check with him/her first :)

MF.