COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => COGNOS 8 Administration => Topic started by: cognos_guru on 06 Apr 2009 09:46:27 AM

Title: Using TRIGGER.BAT without a password
Post by: cognos_guru on 06 Apr 2009 09:46:27 AM
I am trying to run the trigger.bat file from another server but the client would prefer not to hard code values (other than the dispatcher URL and namespace).  Does anyone know if there a way to run it without hard coding the username/password? 
Title: Re: Using TRIGGER.BAT without a password
Post by: Christina Riedle on 12 Sep 2023 08:24:36 AM
Dear all,

has someone ever made it without a password or at least encrypted password?

many thanks,
Christina
Title: Re: Using TRIGGER.BAT without a password
Post by: dougp on 12 Sep 2023 11:35:10 AM
That depends on what you are actually trying to do.

First, hard-coding a password in a text file is never a good idea.  It certainly should not be in the original trigger.bat.

One option is to create a bat file something like this and have the user enter some information.

CallTrigger.bat
trigger.bat https://SERVERNAME:9300/p2pd/servlet/dispatch %2 %3 namespace %1

So they would use...
CallTrigger.bat trigger username password
...at the command line.

Or you can write a desktop or web app in your language of choice to have them fill in textboxes (one of them probably masked as a password), then make the call.


If you are trying to do something else, like trigger Cognos reports by using a GMSA...
trigger.bat is an SDK program.  The source code is available in the Cognos install.  You can create your own version.