If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

trigger.sh with custom authentication

Started by sunny_cu, 27 Feb 2015 03:40:49 PM

Previous topic - Next topic

sunny_cu

Hello cognoise,

What am I trying to do? I trying to accomplish to fire the trigger.sh to run the reports which are scheduled by trigger.
what problem I have now? I am needing help in understanding how to pass the parameters if we have a custom authentication unlike LDAP, what I mean is we have directory to choose when we logon to the cognos not just the username and password. is there a way to include the directory information on the script to run trigger.sh or do we have to update the class file incorporate a additional parameter?

Had anyone in the group had this issues or have custom authentication and using triggers? Could you help me?

Sunny


BigChris

We've used Trigger to fire off schedules within Cognos - any authenication is done within Cognos rather than any external scripts.

MFGF

Quote from: sunny_cu on 27 Feb 2015 03:40:49 PM
Hello cognoise,

What am I trying to do? I trying to accomplish to fire the trigger.sh to run the reports which are scheduled by trigger.
what problem I have now? I am needing help in understanding how to pass the parameters if we have a custom authentication unlike LDAP, what I mean is we have directory to choose when we logon to the cognos not just the username and password. is there a way to include the directory information on the script to run trigger.sh or do we have to update the class file incorporate a additional parameter?

Had anyone in the group had this issues or have custom authentication and using triggers? Could you help me?

Sunny

How are you passing the User ID and Password currently? As embedded parameters within a URL? (ie CAMUsername=xxxx&CAMPassword=yyyy&)

If so, you could try CAMNamespace=zzzz&CAMUsername=xxxx&CAMPassword=yyyy

This is just a guess - I haven't tried it. Might be a lucky guess though :)

MF.
Meep!

sunny_cu

I am trying this for the first time and I thought this script would suffice to run the trigger
trigger.sh http://localhost:9300/p2pd/servlet/dispatch usernamepassword namespace databaserefreshtriggername,emailtriggername
but hapless using this script because of the CJAP, I have created a SR with IBM and they have recommended to install sdk and trigger.java file, however, I wanted to know if anyone have accomplished it without installing SDK.

Hey MF, Could you elaborate more what you mean by passing embedded parameters.

Thank you, Sunny 

MFGF

Quote from: sunny_cu on 05 Mar 2015 10:45:36 PM
I am trying this for the first time and I thought this script would suffice to run the trigger
trigger.sh http://localhost:9300/p2pd/servlet/dispatch usernamepassword namespace databaserefreshtriggername,emailtriggername
but hapless using this script because of the CJAP, I have created a SR with IBM and they have recommended to install sdk and trigger.java file, however, I wanted to know if anyone have accomplished it without installing SDK.

Hey MF, Could you elaborate more what you mean by passing embedded parameters.

Thank you, Sunny

When calling an object via a URL (eg running a report) you can embed the namespace, user ID and password into the URL

eg

http://myserver:80/ibmcognos/cgi-bin/cognos.cgi?CAMNamespace=LDAP&CAMUsername=Muppet&CAMPassword=Meep&b_action=xts.run&m=portal/main.xts&m_redirect_windowmode=2&m_redirect=%2fibmcognos%2fcgi-bin%2fcognos.cgi%3fb_action%3dxts.run%26m%3dportal%2flaunch.xts%26ui.gateway%3d%252fibmcognos%252fcgi-bin%252fcognos.cgi%26ui.tool%3dDashboardConsole%26ui.action%3dedit%26ui.atompath%3dPublic%252520Folders%252fDashboards%252fExecutive%252fDashboards%252fMarket%252520Share%252520Dashboard&m_redirect_uitool=DashboardConsole

The above URL looks for a Cognos Workspace called Market Share Dashboard within a folder called Executive Dashboards within a folder called Dashboards in Public Folders. It passes the namespace, user name and password via the URL.

Cheers!

MF.
Meep!