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 » How to automate checking status of a service & start it

Post new topic  Reply to topic Goto page Previous  1, 2, 3  Next
 How to automate checking status of a service & start it « View previous topic :: View next topic » 
Author Message
lowellmather
PostPosted: Fri Nov 20, 2009 1:28 pm    Post subject: Reply with quote

Novice

Joined: 16 Jul 2009
Posts: 14

I have tried the runmqsc command from the command prompot (just to test the formatting so I could write a batch script) when the service is stopped but for some reason it cannot find the service when it's stopped:

C:\Documents and Settings\Administrator>runmqsc STC3
5724-H72 (C) Copyright IBM Corp. 1994, 2004. ALL RIGHTS RESERVED.
Starting MQSC for queue manager STC3.

START SERVICE(TriggerMonitorUtilitySTC3)
8 : START SERVICE(TriggerMonitorUtilitySTC3)
AMQ8147: WebSphere MQ object TRIGGERMONITORUTILITYSTC3 not found.

The Service Name is TriggerMonitorUtilitySTC3 as shown in MQExplorer so I'm not sure what other name it could be looking.

I'm am (obviously) new to a lot of MQ but a lot of this stuff has been running for a long time without intervention.

Thanks again - I really appreciate your responses and suggestions.
Back to top
View user's profile Send private message
exerk
PostPosted: Fri Nov 20, 2009 1:35 pm    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

And DIS SERVICE(*) shows what? And don't forget about the case sensitivity of WMQ.
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Fri Nov 20, 2009 1:38 pm    Post subject: Reply with quote

Poobah

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

Quote:
START SERVICE(TriggerMonitorUtilitySTC3)
8 : START SERVICE(TriggerMonitorUtilitySTC3)
AMQ8147: WebSphere MQ object TRIGGERMONITORUTILITYSTC3 not found.


If you want to preserve mixed-case or lower-case characters, you must enclose the name in apostrophes. If you don't, MQ folds the name to UPPER-CASE.
_________________
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
lowellmather
PostPosted: Fri Nov 20, 2009 1:48 pm    Post subject: Reply with quote

Novice

Joined: 16 Jul 2009
Posts: 14

Here's the entire command window sequence - I find it interesting that it says one VALID command could not be processed. Note that the Service is mixed case, but the message displays it back as all Upper?

Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

C:\Documents and Settings\Administrator>runmqsc STC3
5724-H72 (C) Copyright IBM Corp. 1994, 2004. ALL RIGHTS RESERVED.
Starting MQSC for queue manager STC3.


DIS SERVICE(*)
1 : DIS SERVICE(*)
AMQ8629: Display service information details.
SERVICE(SYSTEM.BROKER)
AMQ8629: Display service information details.
SERVICE(SYSTEM.DEFAULT.SERVICE)
AMQ8629: Display service information details.
SERVICE(TriggerMonitorUtilitySTC3)

[AFTER THIS DISPLAY, I MANUALLY STOPPED THE SERVICE IN MQExplorer and used ProcessExplorer to kill the UtilityTriggerMonitor.exe running for the STC3 QMgr. It showed as stopped in MQExplorer]

START SERVICE(TriggerMonitorUtilitySTC3)
2 : START SERVICE(TriggerMonitorUtilitySTC3)
AMQ8147: WebSphere MQ object TRIGGERMONITORUTILITYSTC3 not found.
end
3 : end
2 MQSC commands read.
No commands have a syntax error.
One valid MQSC command could not be processed.

C:\Documents and Settings\Administrator>exit
Back to top
View user's profile Send private message
bruce2359
PostPosted: Fri Nov 20, 2009 1:55 pm    Post subject: Reply with quote

Poobah

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

Quote:
If you want to preserve mixed-case or lower-case characters, you must enclose the name in apostrophes. If you don't, MQ folds the name to UPPER-CASE.


START SERVICE(TriggerMonitorUtilitySTC3)
2 : START SERVICE(TriggerMonitorUtilitySTC3)
AMQ8147: WebSphere MQ object TRIGGERMONITORUTILITYSTC3 not found.

_________________
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
fjb_saper
PostPosted: Fri Nov 20, 2009 10:29 pm    Post subject: Reply with quote

Grand High Poobah

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

maybe lowellmather would find it easier to substitute 'single quotes' to 'apostrophes' This is more of a cultural thing...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
lowellmather
PostPosted: Sat Nov 21, 2009 6:36 am    Post subject: Reply with quote

Novice

Joined: 16 Jul 2009
Posts: 14

Sorry, Bruce, I did not see your post before I posted my question about the upper/lower case issue...
Back to top
View user's profile Send private message
bruce2359
PostPosted: Sat Nov 21, 2009 7:29 am    Post subject: Reply with quote

Poobah

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

Quote:
substitute 'single quotes' to 'apostrophes' This is more of a cultural thing...

Indeed. Mea culpa.

A friend from OZ refers to these little critters as ticks. Single-tick, double-tick.

(Google 'apostrophe' to discover its more interesting meanings as it relates to literature.)
_________________
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
lowellmather
PostPosted: Mon Nov 23, 2009 8:14 am    Post subject: Reply with quote

Novice

Joined: 16 Jul 2009
Posts: 14

SUCCESS! The apostrophes/single quotes did the trick.

Thank you to everyone for sharing your knowledege and experience!!! Very much appreciated!
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Mon Nov 23, 2009 8:43 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

Success for manually starting the service from runmqsc? Or for solving why it sometimes doesn't start when the QM starts?
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
lowellmather
PostPosted: Mon Nov 23, 2009 10:17 am    Post subject: Reply with quote

Novice

Joined: 16 Jul 2009
Posts: 14

Success for manually starting the service from runmqsc - the apostrophes resolved the issue, but is only the short-term fix.

I contacted our operations people about increasing the memory resources on the VM we're using to see if that resolves the primary issue. However, this is very low on their priority list so it's nice to have a workaround in the meantime!
Back to top
View user's profile Send private message
bruce2359
PostPosted: Mon Nov 23, 2009 10:26 am    Post subject: Reply with quote

Poobah

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

Quote:
o it's nice to have a workaround in the meantime!

Odd that you would refer to enclosing 'MiXeD-cAsE' object names in single quotes (aposts, ticks) as a workaround. It's not.

Rather, it's a well-documented requirement if you want MQ to maintain lower-case or mixed-case names.
_________________
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
lowellmather
PostPosted: Mon Nov 23, 2009 12:02 pm    Post subject: Reply with quote

Novice

Joined: 16 Jul 2009
Posts: 14

"Odd that you would refer to enclosing 'MiXeD-cAsE' object names in single quotes (aposts, ticks) as a workaround. "

I must be a poor communicator - the workaround to which I was referring was the batch file process...
Back to top
View user's profile Send private message
JosephGramig
PostPosted: Tue Nov 24, 2009 10:11 am    Post subject: Reply with quote

Grand Master

Joined: 09 Feb 2006
Posts: 1244
Location: Gold Coast of Florida, USA

There are no single nor double quotes on a normal US keyboard.

There is a 'prime' and "double prime" and quotes are curly. I'm no English major and graduated from engineering school a long time ago.

Ticks are something you should have your buddy check you for...

Or, if you mean quirky jerks, maybe medicine will help (like bourbon or tonic water with quinine).

So far as the WMQ PROCESS definition goes, we still have not seen it...
Like Peter, I'm intrigued by your error message.
Back to top
View user's profile Send private message AIM Address
bruce2359
PostPosted: Tue Nov 24, 2009 10:28 am    Post subject: Reply with quote

Poobah

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

Quote:
There are no single nor double quotes on a normal US keyboard.

Uh, really? In my keyboards, two keys to the right of the L-key is the " (double) and ' (single-) whatever you want to call them. They've been there for years.

Are you saying that my keyboards are abnormal?
_________________
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
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2, 3  Next Page 2 of 3

MQSeries.net Forum Index » General IBM MQ Support » How to automate checking status of a service & start it
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.