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 » IBM MQ Performance Monitoring » Automation scripts

Post new topic  Reply to topic Goto page 1, 2  Next
 Automation scripts « View previous topic :: View next topic » 
Author Message
shanms
PostPosted: Mon Jul 14, 2014 8:52 pm    Post subject: Automation scripts Reply with quote

Apprentice

Joined: 17 Jun 2014
Posts: 38

For triggering message in a particular queue on regular bases ,i need scripts
please help me.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Jul 14, 2014 9:59 pm    Post subject: Reply with quote

Grand High Poobah

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

If you really want help on this you will need to be way more specific.

What have you tried and what was the result of your attempt...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
shanms
PostPosted: Thu Jul 17, 2014 8:57 pm    Post subject: Reply with quote

Apprentice

Joined: 17 Jun 2014
Posts: 38

I am looking for scripts which is automatically trigger the text massage on a Queue for regular interval periods.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Thu Jul 17, 2014 9:38 pm    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

So you are looking for a job scheduler?

If I was using Unix or Linux then I'd be looking 'cron'.

Windows has a primitive equivalent but on that platform, I use 'zcron'.

Then you can write something that does

amqsput QUEUE QUEMANAGER < trigger_message_file


IF you are looking for something else then you have to explain your requirements in a lot more detail.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
zpat
PostPosted: Thu Jul 17, 2014 10:57 pm    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
Location: UK

Impressive - something more primitive than "cron". I didn't think anything could be...
_________________
Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error.
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Jul 18, 2014 5:31 am    Post subject: Reply with quote

Grand High Poobah

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

zpat wrote:
I didn't think anything could be...


"I am attempting, madam, to build a mnemonic computer circuit out of stone knives and bear skins"
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Mon Jul 21, 2014 3:30 pm    Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2492
Location: Melbourne, Australia

shanms wrote:
I am looking for scripts which is automatically trigger the text massage on a Queue for regular interval periods.

Is this what you are asking? :
I am looking for a script that will run at a regular interval to cause a trigger to occur on a queue?
(... and this will result in the "trigger monitor" starting a process, which will get any messages that may be on the queue)
_________________
Glenn
Back to top
View user's profile Send private message
shanms
PostPosted: Mon Jul 21, 2014 9:27 pm    Post subject: Reply with quote

Apprentice

Joined: 17 Jun 2014
Posts: 38

yes Glean,what you explain that's what i need.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Jul 22, 2014 5:29 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

shanms wrote:
yes Glean,what you explain that's what i need.


cron.

at.
Back to top
View user's profile Send private message
zpat
PostPosted: Tue Jul 22, 2014 5:32 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
Location: UK

Vitor wrote:
zpat wrote:
I didn't think anything could be...


"I am attempting, madam, to build a mnemonic computer circuit out of stone knives and bear skins"


Yes, it's the scrubbing floors to buy the parts, that I object to...
_________________
Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error.
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Tue Jul 22, 2014 3:53 pm    Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2492
Location: Melbourne, Australia

shanms wrote:
yes Glean,what you explain that's what i need.

OK, use a job scheduler to run a script that calls runmqsc with 2 commands, alter the queue to NOTRIGGER and then alter the queue to TRIGGER. This forces a trigger event to occur.
_________________
Glenn
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Tue Jul 22, 2014 3:57 pm    Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2492
Location: Melbourne, Australia

gbaddeley wrote:
shanms wrote:
yes Glean,what you explain that's what i need.

OK, use a job scheduler to run a script that calls runmqsc with 2 commands, alter the queue to NOTRIGGER and then alter the queue to TRIGGER. This forces a trigger event to occur.

That assumes you have MQ admin authority. Alternatively you could write a short program that opens the queue and uses mqset to toggle TRIGGER.
_________________
Glenn
Back to top
View user's profile Send private message
shanms
PostPosted: Sun Jul 27, 2014 9:45 pm    Post subject: Reply with quote

Apprentice

Joined: 17 Jun 2014
Posts: 38

Thanks guys ,i got the script
Back to top
View user's profile Send private message
bruce2359
PostPosted: Mon Jul 28, 2014 5:13 am    Post subject: Reply with quote

Poobah

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

shanms wrote:
Thanks guys ,i got the script

Please share with us what you've accomplished.
_________________
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
shanms
PostPosted: Mon Jul 28, 2014 10:07 pm    Post subject: Reply with quote

Apprentice

Joined: 17 Jun 2014
Posts: 38

AMQSPUT Queuename QMGRname <text message

I created one bat file and copied the above command
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 » IBM MQ Performance Monitoring » Automation scripts
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.