ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » Using Triggering with Autosys

Post new topic  Reply to topic
 Using Triggering with Autosys « View previous topic :: View next topic » 
Author Message
mpalmer
PostPosted: Thu Jun 06, 2002 9:18 am    Post subject: Using Triggering with Autosys Reply with quote

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
View user's profile Send private message
dgolding
PostPosted: Fri Jun 07, 2002 12:15 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
afra
PostPosted: Mon May 19, 2003 4:50 am    Post subject: running 'runmqtrm ' under a user other than mqm Reply with quote

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
View user's profile Send private message
vennela
PostPosted: Mon May 19, 2003 5:26 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
dgolding
PostPosted: Mon May 19, 2003 5:30 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » Using Triggering with Autosys
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.