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 Discussion » MQSC Mode

Post new topic  Reply to topic Goto page 1, 2  Next
 MQSC Mode « View previous topic :: View next topic » 
Author Message
shashivarungupta
PostPosted: Thu May 28, 2009 1:15 am    Post subject: MQSC Mode Reply with quote

Grand Master

Joined: 24 Feb 2009
Posts: 1343
Location: Floating in space on a round rock.

Hi All,

Following is the Text from ibm site, which tells about the modes of MQSC commands.

Run command indirectly

Run MQSC commands on a remote queue manager. These commands are put on the command queue on a remote queue manager and run in the order in which they were queued. [b]Reports from the commands are returned to the local queue manager.
Indirect mode operation is performed through the default queue manager.
[/b]


Can anyone explain what does that italics sentence mean? I am not clear about that.

Another question is:

I have created a queue manager "SampleQM" which is remote to my machine. And its command server is running.
Now I have added this "SampleQM" to my local machine in the MQ Explorer successfully.

When i run following command:
C:\>runmqsc -w 100 SampleQM
5724-H72 (C) Copyright IBM Corp. 1994, 2004. ALL RIGHTS RESERVED.
Starting MQSC for queue manager SampleQM.

AMQ8146: WebSphere MQ queue manager not available.

No MQSC commands read.
0 command responses received.


Above response I get.
Do I need to give commands in the following fashion always?
runmqsc -w 30 -v SampleQM < myprog.in > myprog.out


Appreciate your help.
Thanks.
_________________
*Life will beat you down, you need to decide to fight back or leave it.
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Thu May 28, 2009 1:24 am    Post subject: Re: MQSC Mode Reply with quote

Grand High Poobah

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

shashivarungupta wrote:
Can anyone explain what does that italics sentence mean? I am not clear about that.


It's possible to administer a remote queue manager (in the WMQ sense remote) using runmqsc. The section you highlight is discussing that.

shashivarungupta wrote:
I have created a queue manager "SampleQM" which is remote to my machine.


Be clear on terms here - a "remote" queue manager in terms of the documentation is "not the one you're connected to".

shashivarungupta wrote:
Now I have added this "SampleQM" to my local machine in the MQ Explorer successfully.


Yes, but it's still remote.

shashivarungupta wrote:
When i run following command:
[color=brown]C:\>runmqsc -w 100 SampleQM
5724-H72 (C) Copyright IBM Corp. 1994, 2004. ALL RIGHTS RESERVED.
Starting MQSC for queue manager SampleQM.

AMQ8146: WebSphere MQ queue manager not available.


Because it's not local to your machine. The fact that you've cliented to it via MQExplorer changes nothing.

shashivarungupta wrote:
Do I need to give commands in the following fashion always?
runmqsc -w 30 -v SampleQM < myprog.in > myprog.out


You need the -v if it's remote, and you need a route by which commands can pass from the local default queue manager to the remote one. Indirecting files is probably easier in this scenario but not essential.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
shashivarungupta
PostPosted: Thu May 28, 2009 2:13 am    Post subject: Reply with quote

Grand Master

Joined: 24 Feb 2009
Posts: 1343
Location: Floating in space on a round rock.

Quote:
You need the -v if it's remote, and you need a route by which commands can pass from the local default queue manager to the remote one.


I tried using -v as:
C:\>runmqsc -w 100 -v SampleQM
5724-H72 (C) Copyright IBM Corp. 1994, 2004. ALL RIGHTS RESERVED.
Starting MQSC for queue manager SampleQM.


display qmgr
1 : display qmgr

end
2 : end
One MQSC command read.


But as we know, -v is the flag to verify the command, not to execute them and this is verify mode which is available on a local queue managers.
And we have also read that when -w option is there -v is being ignored.

Do you have an example to administer a queue manager which is on remote machine, using mqcs command? (which will use local default queue manager)
I know it uses Escape PCFs, but how I dont know. Can you please give me an example to that?
_________________
*Life will beat you down, you need to decide to fight back or leave it.
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Thu May 28, 2009 2:21 am    Post subject: Reply with quote

Grand High Poobah

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

shashivarungupta wrote:
But as we know, -v is the flag to verify the command, not to execute them and this is verify mode which is available on a local queue managers.


Sorry, sorry, had a senior moment there!

You're quite right, I'm talking rubbish about the -v being necessary. A good idea but not necessary.

shashivarungupta wrote:
Do you have an example to administer a queue manager which is on remote machine, using mqcs command? (which will use local default queue manager)


I can do no better than point you to the documentation on this.

shashivarungupta wrote:
I know it uses Escape PCFs, but how I dont know.


No, just uses standard script.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
shashivarungupta
PostPosted: Thu May 28, 2009 2:26 am    Post subject: Reply with quote

Grand Master

Joined: 24 Feb 2009
Posts: 1343
Location: Floating in space on a round rock.

Quote:
I can do no better than point you to the documentation on this.


It would be great if I'll get some examples on that.
_________________
*Life will beat you down, you need to decide to fight back or leave it.
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Thu May 28, 2009 2:28 am    Post subject: Reply with quote

Grand High Poobah

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

shashivarungupta wrote:
Quote:
I can do no better than point you to the documentation on this.


It would be great if I'll get some examples on that.


I was thinking of here myself.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
shashivarungupta
PostPosted: Thu May 28, 2009 2:46 am    Post subject: Reply with quote

Grand Master

Joined: 24 Feb 2009
Posts: 1343
Location: Floating in space on a round rock.

Vitor wrote:
shashivarungupta wrote:
Quote:
I can do no better than point you to the documentation on this.


It would be great if I'll get some examples on that.


I was thinking of here myself.


Thanks Vitor.
In this link
I can see how its happening behind the stage !! But here I don't see the example for that.
_________________
*Life will beat you down, you need to decide to fight back or leave it.
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Thu May 28, 2009 2:53 am    Post subject: Reply with quote

Grand High Poobah

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

shashivarungupta wrote:
But here I don't see the example for that.


Examples for what? Seriously, I don't understand your question. Examples of how to link the queue managers together? It's perfectly standard stuff, you just have to ensure that there's a default route to and from the queue managers in question (e.g. transmission queue named for the queue manager it targets).
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
shashivarungupta
PostPosted: Thu May 28, 2009 3:03 am    Post subject: Reply with quote

Grand Master

Joined: 24 Feb 2009
Posts: 1343
Location: Floating in space on a round rock.

Vitor wrote:
shashivarungupta wrote:
But here I don't see the example for that.


Examples for what? Seriously, I don't understand your question. Examples of how to link the queue managers together? It's perfectly standard stuff, you just have to ensure that there's a default route to and from the queue managers in question (e.g. transmission queue named for the queue manager it targets).


No. I didn't mean that.
Anyways.. i'll find it out. and will be back.
Thank you.
_________________
*Life will beat you down, you need to decide to fight back or leave it.
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Thu May 28, 2009 3:12 am    Post subject: Reply with quote

Grand High Poobah

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

shashivarungupta wrote:
No. I didn't mean that.


I can't help feeling I'm missing something. Again.

Anyway, just tried it (to ensure no other "senior moments" have crept into my advice) and it works as advertisied. So you should be fine.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu May 28, 2009 7:56 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

If you are looking at executing mqsc commands against a remote qmgr without having MQServer installed on your machine, look at support pack MO72. You will need the MQClient installed and the qmgr must accept a client connection. (i.e. have a svrconn channel)....

You could also use the corresponding MQExplorer plugin. (Can't remember the support pack # for that one)

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Fri May 29, 2009 1:35 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

fjb_saper wrote:
You could also use the corresponding MQExplorer plugin. (Can't remember the support pack # for that one)

MS0S.
Back to top
View user's profile Send private message
susanspy
PostPosted: Tue Jun 02, 2009 8:52 am    Post subject: Reply with quote

Newbie

Joined: 02 Jun 2009
Posts: 1

hello all,

i am susan here i wnat to knwo if mqsc commands against a remote qmgr without having MQServer installed on your machine will work
?

thanks in advance

Cheers!!!
_________________
keyword software~keyword tool
search keyword~track keyword


Last edited by susanspy on Mon Jun 29, 2009 5:31 am; edited 1 time in total
Back to top
View user's profile Send private message
bruce2359
PostPosted: Tue Jun 02, 2009 9:22 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9399
Location: US: west coast, almost. Otherwise, enroute.

Back to the original post:

With the -w switch, runmqsc connects to the default qmgr. When you create a qmgr, you can specify if it is to be the default. Default here means that apps that MQCONNect without specifying a particular qmgr, will connect to the default.

The -w switch on runmqsc indicates that the qmgr named is remote (at the other end of a sender-reciever channel, for example); AND that the qmgr named in the runmqsc command is actually the name of the transmission queue (on the default qmgr) that the sender channel takes messages from.

The subsequent mqsc commands (PCF-wrapped) will be delivered to the transmission queue on the default qmgr, sent to the remote qmgr, and placed on the command queue at the remote qmgr. Thus -w means remote admin.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Jun 02, 2009 9:27 am    Post subject: Reply with quote

Grand High Poobah

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

susanspy wrote:
i wnat to knwo if mqsc commands against a remote qmgr without having MQServer installed on your machine will work
?



_________________
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 Discussion » MQSC Mode
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.