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 » MQ AIX Startup Issues

Post new topic  Reply to topic
 MQ AIX Startup Issues « View previous topic :: View next topic » 
Author Message
pfarrel
PostPosted: Tue Jan 25, 2005 10:57 am    Post subject: MQ AIX Startup Issues Reply with quote

Centurion

Joined: 16 Mar 2004
Posts: 120
Location: Kansas City

I have an RC.MQSTART script on my AIX platform to assist the operator in starting up my MQ Queue Manager. I am having a problem with the runmqlsr and runmqtrm commands.
Here is part of my startup script:

su - mqid -c /usr/bin/strmqm QMNAME
su - mqid -c /usr/bin/strmqcsv QMNAME
su - mqid -c /usr/bin/runmqlsr -t tcp -m QMNAME &
su - mqid -c /usr/bin/runmqtrm -m QMNAME &

for each command, the su causes the script to ask the operator for the password for the userid mqid. However the runmqlsr and runmqtrm commands cause additional messages to be written to the console. I need to be able to supress these messages, to allow the commands to be scripted.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Jan 25, 2005 11:45 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Try redirecting stderr to /dev/null.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
vennela
PostPosted: Tue Jan 25, 2005 5:35 pm    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Also:
for each command, the su causes the script to ask the operator for the password for the userid mqid.
If you are root, then it should not ask for the password when you su. Something is wrong
Back to top
View user's profile Send private message Send e-mail Visit poster's website
pfarrel
PostPosted: Wed Jan 26, 2005 4:50 am    Post subject: Reply with quote

Centurion

Joined: 16 Mar 2004
Posts: 120
Location: Kansas City

Our operators do not have root authority.
They log on with thier own ID, and issue the commands.
Is there a better way to do this ?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Jan 26, 2005 4:59 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You might look at sudo instead of su. It would require the operators to enter their own passwords, usually once, instead of entering the root password.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » MQ AIX Startup Issues
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.