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 » Ignoring error codes under Windows

Post new topic  Reply to topic
 Ignoring error codes under Windows « View previous topic :: View next topic » 
Author Message
ericjudd
PostPosted: Wed Feb 15, 2006 5:50 am    Post subject: Ignoring error codes under Windows Reply with quote

Newbie

Joined: 28 Apr 2002
Posts: 8

I read in the MQ version 6 Systems Admin Guide that there is a way to prevent error codes from being written to the event log. This involves setting the registry key \HKEY_LOCAL_MACHINE\Software\IBM\MQSeries\CurrentVersion\IgnoreErrorCodes. I have created this multi-string value, set its value to AMQ9208\0\0, and rebooted. But I still get AMQ9208 in the event log. Has anyone successfully used this feature? What might I be doing wrong?

THanks
Eric.
Back to top
View user's profile Send private message Send e-mail
Toronto_MQ
PostPosted: Wed Feb 15, 2006 6:11 am    Post subject: Reply with quote

Master

Joined: 10 Jul 2002
Posts: 263
Location: read my name

Not sure that it will be of any help to you, but you can also alter these fields through the explorer instead of going through the registry.

Right-click on the queue manager, go to Properties, Extended. Near the bottom you will see:

Error log size
Excluded messages
Suppressed messages
Suppressed messages interval

I haven't set these recently but I had tested this in the past and it seemed to work.

Cheers
Steve


Last edited by Toronto_MQ on Wed Feb 15, 2006 6:21 am; edited 1 time in total
Back to top
View user's profile Send private message
Toronto_MQ
PostPosted: Wed Feb 15, 2006 6:21 am    Post subject: Reply with quote

Master

Joined: 10 Jul 2002
Posts: 263
Location: read my name

As an update to that post, I set the "Excluded Messages" through the explorer and it did not create the same reg key that is documented in the manuals. Instead I found this:

HKEY_LOCAL_MACHINE\Software\IBM\MQSeries\CurrentVersion\Configuration\QueueManager\<qmgr_name>\QMErrorLog

In there is a value name of "ExcludeMessages" (REG_SZ) with data of "AMQ9208".

That's not to say the manuals are wrong, perhaps that is the correct way to set it at a system level to include all queue managers?

Hope this helps
Steve
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Feb 15, 2006 6:23 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Some of these don't necessarily work.

http://www.mqseries.net/phpBB2/viewtopic.php?t=24318
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Toronto_MQ
PostPosted: Wed Feb 15, 2006 6:31 am    Post subject: Reply with quote

Master

Joined: 10 Jul 2002
Posts: 263
Location: read my name

True, though AMQ9208 does seem to work. I just tested it here.

Steve
Back to top
View user's profile Send private message
JT
PostPosted: Wed Feb 15, 2006 7:17 am    Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

You wrote:
\HKEY_LOCAL_MACHINE\Software\IBM\MQSeries\CurrentVersion\IgnoreErrorCodes

Unless that was a typo, it should be:

In a recent post, Wayne wrote:
Ignoring error codes under Windows systems If you want WebSphere MQ for Windows NT and Windows 2000 to ignore error codes, edit the Windows NT, Windows 2000 Registry. The Registry key is: HKEY_LOCAL_MACHINE\Software\IBM\MQSeries\CurrentVersion\IgnoredErrorCodes The value that you set it to is an array of strings delimited by the NULL character, with each string value relating to the error code that you want ignored. The complete list is terminated with a NULL character. For example, if you want WebSphere MQ to ignore error codes AMQ3045, AMQ6055, and AMQ8079, set the value to: AMQ3045\0AMQ6055\0AMQ8079\0\0 Any changes you make to a configuration file do not take effect until the next time the queue manager is started.
Back to top
View user's profile Send private message
Toronto_MQ
PostPosted: Wed Feb 15, 2006 7:40 am    Post subject: Reply with quote

Master

Joined: 10 Jul 2002
Posts: 263
Location: read my name

Strange... from the V6 System Admin Guide (cut and paste):

Ignoring error codes under Windows systems
On Windows systems, if an error message has a severity of ERROR, the message is written to both the WebSphere MQ error log and the Windows Application Event Log.

If you do not want certain error messages to be written to the Windows Application Event Log, you can specify the error codes that are to be ignored in the Windows registry. Use the registry key:

HKEY_LOCAL_MACHINE\Software\IBM\MQSeries\CurrentVersion\IgnoreErrorCodes
The value that you set it to is an array of strings delimited by the NULL character, with each string value relating to the error code that you want ignored from the error log. The complete list is terminated with a NULL character, which is of type REG_MULTI_SZ.

For example, if you want WebSphere MQ to exclude error codes AMQ3045, AMQ6055, and AMQ8079 from the Windows Application Event Log, set the value to:

AMQ3045\0AMQ6055\0AMQ8079\0\0
The list of messages you want to exclude is defined for all queue managers on the machine. Any changes you make to the configuration will not take effect until each queue manager is restarted.


Typo in the doc?
Back to top
View user's profile Send private message
wschutz
PostPosted: Wed Feb 15, 2006 8:26 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

My Cut and Paste was from the V5.3 SA manual...
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Ignoring error codes under Windows
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.