Author |
Message
|
banjar1 |
Posted: Tue Mar 04, 2008 5:45 am Post subject: Subscriptions managed from shell? |
|
|
Acolyte
Joined: 29 Nov 2006 Posts: 54 Location: FRA
|
I'm looking for any tool/plug-in/whatever that would allow me to add/remove a subscriber in a shell script. I guess a binary realizing subscribe/unsubscribe command would do. Unless there is a command for runmqsc - but I couldn't find it.
Would be nice to have something like that for adding/removing a publisher, too. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Mar 04, 2008 5:48 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Are you doing pub/sub from WMQ, or with WMB? Both expose commands (rather than mqsc script) to administer from command line.
If you're using WMQ (which I infer from your comment on runmqsc) the Using Pub/Sub manual describes the options available.
Don't forget you can use a command line application of your own devising to send pub/sub messages if you find the provided commands unsuitible. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
banjar1 |
Posted: Wed Mar 05, 2008 4:27 am Post subject: |
|
|
Acolyte
Joined: 29 Nov 2006 Posts: 54 Location: FRA
|
I'm using the built-in pub/sub functionality of MQ6. And I did check the Pub/Sub manual and found nothing like that. There are listed commands that need to be sent to broekr's control queue, but I'm looking for executables that have this commands implemented for easy use is AIX shell. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Mar 05, 2008 5:30 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
banjar1 wrote: |
I'm using the built-in pub/sub functionality of MQ6. And I did check the Pub/Sub manual and found nothing like that. |
You're right, neither did I!
Not used basic pub/sub myself but I thought the commands in WMB were replicated in the WMQ implementation.
Shows what I know.......  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
banjar1 |
Posted: Wed Mar 05, 2008 5:42 am Post subject: |
|
|
Acolyte
Joined: 29 Nov 2006 Posts: 54 Location: FRA
|
Oh, well... perhaps I will have one of our programmers writing me a set of perl scripts with these PCF commands implemented. |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Mar 05, 2008 3:17 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
banjar1 wrote: |
Oh, well... perhaps I will have one of our programmers writing me a set of perl scripts with these PCF commands implemented. |
Don't know what you're talking about.
Did you look at support pack IH03 (rfhutil/rfhutilc) ?? _________________ MQ & Broker admin |
|
Back to top |
|
 |
banjar1 |
Posted: Thu Mar 06, 2008 5:21 am Post subject: |
|
|
Acolyte
Joined: 29 Nov 2006 Posts: 54 Location: FRA
|
Yes, I know RFHUtil - and it is far too complex for my taste - and Windows based. One can add subscribtions with MQExplorer, too, but that's exactly what I want to avoid.
I need is something very simple: an implementation of subscribe command in a neat executable or script. of course it needs to accept parameters, like topic, subscriber's queue name etc. |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Mar 06, 2008 11:03 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
banjar1 wrote: |
Yes, I know RFHUtil - and it is far too complex for my taste - and Windows based. One can add subscribtions with MQExplorer, too, but that's exactly what I want to avoid.
I need is something very simple: an implementation of subscribe command in a neat executable or script. of course it needs to accept parameters, like topic, subscriber's queue name etc. |
What are you calling complex? It allows you to do a lot of stuff... including send publish and subscribe messages... There is no pcf involved there...
Chances are that if you're no able to publish / subscribe with RFHUtil you would not be successful any other way either ...
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|