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 » General IBM MQ Support » Executing Scripts on Remote clients help?

Post new topic  Reply to topic
 Executing Scripts on Remote clients help? « View previous topic :: View next topic » 
Author Message
gpklos
PostPosted: Thu Apr 12, 2007 5:32 am    Post subject: Executing Scripts on Remote clients help? Reply with quote

Centurion

Joined: 24 May 2002
Posts: 108

I have a question related to triggering of applications on remote machines. Typically we have been running on unix and then triggering processes on remote unix machines. We did this by triggering a script
on the queue manager server box, and that script would then do a RSH call to another box to kick off the application script. We did it this way so that we could switch userids and run the application under a specified id. As long as the id making the rsh call was our MQ id.
For example, we would execute the following line

rsh -l userid remotebox.psc.uss.com "/directory/directory1/script_to_run.ksh"

So now the script "script_to_run.ksh" would run under the userid "userid". This worked fine. Now we switched to running the MQ server on windows and also the clients are running on remote windows
boxes. So we wanted to do the exact same thing as we did on unix, except now we would run a windows BATCH file. The problem is that the RSH server on windows won't let us switch to whatever id we want. It
seems to be forcing us to always run the batch files under the MQ id that made the initial call. We have played around with the .rhosts file and nothing seems to allow us to switch ids to what we want.

I know we can put the userid on the ServerConn channel, but I was trying to avoid that. How do other people run scripts on remote boxes and change the id?

Thanks for your help,
Gary
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Apr 12, 2007 5:35 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

It's counter-intuitive to trigger a remote client application from the qmgr server using RSH.

Run a client trigger monitor - as what ever user you want, and then trigger the application locally.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
wschutz
PostPosted: Thu Apr 12, 2007 8:51 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

some of us mught think its anti-intuitive to go from Unix to Windows.
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Executing Scripts on Remote clients help?
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.