|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Using Triggering with Autosys |
« View previous topic :: View next topic » |
Author |
Message
|
mpalmer |
Posted: Thu Jun 06, 2002 9:18 am Post subject: Using Triggering with Autosys |
|
|
Novice
Joined: 25 Mar 2002 Posts: 24 Location: New Jersey, USA
|
I am trying to trigger a generic Autosys shell script to execute a job set up in Autosys. My problem is that when the trigger is initiated, the owner is mqm. The job in autosys is set up to execute as another user ID. It works successfully if the job is given world execute in autosys, but Security will not all ow us to do that. I do not want all of the mqm jobs to be set up in autosys as owned by mqm. Do you know of a way we can send the trigger process some command to switch to a different user ID before it attemps to execute the Autosys shell script? |
|
Back to top |
|
 |
dgolding |
Posted: Fri Jun 07, 2002 12:15 am Post subject: |
|
|
 Yatiri
Joined: 16 May 2001 Posts: 668 Location: Switzerland
|
Hi,
The simplest way is to write a script that starts the trigger monitor program (runmqtrm) and is started by using:
"su -c <trigger monitor script name> <user ID required>"
The trigger monitor script has a :
nohup runmqtrm -q <trigger queue> &
...but this means the trigger monitor is monopolised for this use, unless you want all your triggered jobs to run as your target user id....
P.S. Don't forget to add your target user to the MQM group for this to work.....
HTH |
|
Back to top |
|
 |
afra |
Posted: Mon May 19, 2003 4:50 am Post subject: running 'runmqtrm ' under a user other than mqm |
|
|
Novice
Joined: 11 Apr 2002 Posts: 12
|
Hi,
Are there any other ways?
I want to avoid providing a password when starting the runmqtrm.
Also I want to avoid putting the target user into the mqm group.
What authorities are required for a target user (other than mqm) to run the trigger monitor?
Any hint is appreciated.
Andreas |
|
Back to top |
|
 |
vennela |
Posted: Mon May 19, 2003 5:26 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
You can use sample trigger monitor in the samples.
amqstrg
The usage is similar to the trigger monitor
amqstrg INITQ QMGR |
|
Back to top |
|
 |
dgolding |
Posted: Mon May 19, 2003 5:30 am Post subject: |
|
|
 Yatiri
Joined: 16 May 2001 Posts: 668 Location: Switzerland
|
If you use the sample program, you will still need MQM permissions.
To avoid putting in the password when doing an SU, then run as root (or login as that userid first, then do a runmqtrm).
For permissions, if you don't want the user to be in the "mqm" group, you need to do a "setmqaut" and all CONNECT, BROWSE, and all that stuff (can't remember off the top of my head, it's in the administrator guide for setmqaut usage).
HTH |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|