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 » New to MQ and Unix please help

Post new topic  Reply to topic Goto page 1, 2  Next
 New to MQ and Unix please help « View previous topic :: View next topic » 
Author Message
Linux_cat
PostPosted: Fri Jul 14, 2006 3:05 am    Post subject: New to MQ and Unix please help Reply with quote

Newbie

Joined: 14 Jul 2006
Posts: 7

Hey people hope all is well,

Ill get straight to the point in a bid that someone will have the knowledge to help me.

I have just started working with weblogic, and sun one MQ messaging system, and although i have a windows gui to look at MQ queues i would really like to do this in text way from the unix command line. I would also like to find a way where i can fire in messages in the form of files to the MQ queue...but am totally miffed on how to do this.

Is it possible to look at MQ queues from the command line??, if you can someone give me a sample command, i have had a look at the sun documentation online but that hasnt helped much as i am still totally miffed!!...

I appreciate any help that is offered.
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Jul 14, 2006 3:16 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp

I'd start with the "Quick Begingings For Solaris", just to give you an overview, then head to the "Command Ref" which describes the command line interface for MQ. You'd also want to have a quick squint at the "System Administration" which describes the commands for MQ (rather than the scripting interface - you'll see what I mean).

Viewing files & populating queues from the command line is slightly tricker. There's no inbuilt way of doing this, but most people adapt the sample code amqsget / amqsput / amqsbcg to their needs. You'll find them in /var/mqm/samp I think (but don't hold me to it). There's also the MO03 Support Pac (qload) which might do you.

Have fun now
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Linux_cat
PostPosted: Fri Jul 14, 2006 8:21 am    Post subject: Reply with quote

Newbie

Joined: 14 Jul 2006
Posts: 7

Thanks for you help Vitor, but none of those sample coded programs are on the server, i think they have version 6.2 installed...but u have given me a good place to start and some good ideas...

thanks again.
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Fri Jul 14, 2006 9:22 am    Post subject: Re: New to MQ and Unix please help Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Linux_cat wrote:
Is it possible to look at MQ queues from the command line??

No. You need to write a program, download/purchase a program or use one of the included sample programs.

Linux_cat wrote:
although i have a windows gui to look at MQ queues i would really like to do this in text way from the unix command line. I would also like to find a way where i can fire in messages in the form of files to the MQ queue...but am totally miffed on how to do this.

MQ Batch Toolkit can do what you are asking for. For more information or to download a free 30-day trial go to:
http://www.capitalware.biz/mqbt_overview.html

Also, it would be a good idea to review some of the free / shareware / lite releases of MQ programs out there. I put together a list here:
http://www.capitalware.biz/mq_tools.html

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
Linux_cat
PostPosted: Mon Jul 17, 2006 1:49 am    Post subject: Reply with quote

Newbie

Joined: 14 Jul 2006
Posts: 7

thank you, help is much appreciated.
Back to top
View user's profile Send private message
Linux_cat
PostPosted: Mon Jul 17, 2006 3:04 am    Post subject: Reply with quote

Newbie

Joined: 14 Jul 2006
Posts: 7

guys i am trying to use qload but keep getting the following error with my output

Code:

-bash-3.00$ qload -m QUEUE.MANAGER.1 -iOUTGOINGQUEUE -Fnew
QLOAD Program by Paul Clarke [ V1.0 Build:Mar 21 2005 ]
MQCONN on object 'QUEUE.MANAGER.1' returned 2035 Not authorized..


im guessing that i need some sort of password, however none is needed for the que i am trying to access....anyone know what im doing wrong?[/code]
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Jul 17, 2006 3:18 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

What you need is connect authority for that queue manager I'm guessing!

It's true to say you don't need a password for a queue, but all the MQ objects are secured via the OAM (if enabled, and I'd say yours is). Whatever user is running the qload utility is not authorised via the OAM to connect to the queue manager. It may well be authorised to use the queue, or the queue may have the access permissions set to "all", effectively turning them off, but first you need to succeed in the connect.

Check that the user that you're using has the correct authorities and if you have, turn on the trace to see what the actual failing combination of user/group/MQ object is.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Linux_cat
PostPosted: Mon Jul 17, 2006 4:09 am    Post subject: Reply with quote

Newbie

Joined: 14 Jul 2006
Posts: 7

Quote:
Check that the user that you're using has the correct authorities and if you have, turn on the trace to see what the actual failing combination of user/group/MQ object is.



errrm how do i do that??
Back to top
View user's profile Send private message
PieterV
PostPosted: Mon Jul 17, 2006 4:14 am    Post subject: Reply with quote

Disciple

Joined: 04 Jan 2006
Posts: 164
Location: Belgium

the commando:

dspmqaut

use dspmqaut -? to see what parameters you'll need to provide.

you'll probably have no authority, so you'll need to use setmqaut.

it looks like this:

to acces the qmgr:
setmqaut -m QM-name -t qmgr -p USER-name +connect +inq

to acces a queue:
setmqaut -m QM-name -t q -n QUEUE-name -p USER-name +get +put

good luck
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Jul 17, 2006 4:21 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Check out "dspmqaut" in the System Administration manual, and indeed the rest of the Chapter on Security to provide the solution once you've traced the problem!

(Hint - look up "setmqaut")

"Turn on the trace" is a bit misleading and I apologise. I meant turn on the Authority Events (ALTER QMGR AUTHOREV), causing not authorised events to be written to the defined queue.

A Google or a forum search on "2035", "NOT_AUTHORISED", "Authority Events" will also yield a wealth of helpful information.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Jul 17, 2006 4:23 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

PieterV wrote:
the commando:

......

good luck


A commando? Going over the top to fight to a resolution perhaps??
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Linux_cat
PostPosted: Mon Jul 17, 2006 4:53 am    Post subject: Reply with quote

Newbie

Joined: 14 Jul 2006
Posts: 7

thanks guys for all your help, ill let you know how i get along...if your interested that is!!!!
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Jul 17, 2006 5:04 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Linux_cat wrote:
thanks guys for all your help, ill let you know how i get along...if your interested that is!!!!


Always interested, and posting your progress will guide and inform the next poor soul who trips over this problem.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
vennela
PostPosted: Mon Jul 17, 2006 6:52 am    Post subject: Reply with quote

Jedi Knight

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

Quote:
I have just started working with weblogic, and sun one MQ messaging system

Is he talking about IBM WebSphere MQ
Because he is also saying version 6.2 ???
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Vitor
PostPosted: Mon Jul 17, 2006 6:54 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

vennela wrote:
Quote:
I have just started working with weblogic, and sun one MQ messaging system

Is he talking about IBM WebSphere MQ
Because he is also saying version 6.2 ???


This could be embarassing......
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » General IBM MQ Support » New to MQ and Unix please 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.