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 API Support » MQRC_CHANNEL_STOPPED_BY_USER not returning some parameters

Post new topic  Reply to topic
 MQRC_CHANNEL_STOPPED_BY_USER not returning some parameters « View previous topic :: View next topic » 
Author Message
sotoka
PostPosted: Sat Mar 04, 2006 9:38 am    Post subject: MQRC_CHANNEL_STOPPED_BY_USER not returning some parameters Reply with quote

Novice

Joined: 05 Feb 2006
Posts: 12

Hello,
"WebSphere Event Monitoring" (5.3 edition) says that
the event data of MQRC_CHANNEL_STOPPED_BY_USER will always
contain four parameters: QMgrName, ReasonQualifier, ChannelName
and ErrorIdentifier. It should also contain XmitQName if
the channel is a sender, server, cluster-sender, or cluster-receiver.

However, when using MQ Exporer to stop the channel,
or when issuing PCF commands, I'm observing a different situation.
ParameterCount is always equal to 3, and the only parameters returned
are QMgrName, ReasonQualifier and ChannelName.

Below is the message contents.

07 00 00 00 24 00 00 00 ....$...
01 00 00 00 2E 00 00 00 ........
01 00 00 00 01 00 00 00 ........
00 00 00 00 E7 08 00 00 ....ç...
03 00 00 00 04 00 00 00 ........
1C 00 00 00 DF 07 00 00 ....ß...
00 00 00 00 05 00 00 00 ........
45 54 41 2E 31 00 00 00 ETA.1...
04 00 00 00 18 00 00 00 ........
AD 0D 00 00 00 00 00 00 ­.......
03 00 00 00 54 4F 32 00 ....TO2.
03 00 00 00 10 00 00 00 ........
FC 03 00 00 0A 00 00 00 ü.......

ErrorIdentifier is not returned. Fifth byte in a last line
is a ReasonQualifier (MQRQ_CHANNEL_STOPPED_DISABLED = 0x0a), right? Not
an ErrorIdentifier?

XmitQName is also not returned although the channel is a server.

dis chl(TO2) chltype xmitq
3 : dis chl(TO2) chltype xmitq
AMQ8414: Display Channel details.
CHANNEL(TO2) CHLTYPE(SVR)
XMITQ(XQ.TO2)


Also - my PCF commands specify full channel name (that is, TO2), without
any "*" characters; in other words, I don't specify a generic name. In that
case, a ConnectionName parameter should be returned according to the docs,
but it isn't returned.

What could be the reason of that behaviour?

thanks,
So
Back to top
View user's profile Send private message
wschutz
PostPosted: Sat Mar 04, 2006 11:48 am    Post subject: Reply with quote

Jedi Knight

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

are you at a reasonibly current csdl level?
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
sotoka
PostPosted: Sat Mar 04, 2006 12:36 pm    Post subject: Reply with quote

Novice

Joined: 05 Feb 2006
Posts: 12

> are you at a reasonibly current csdl level?

Sorry for not providing this earlier.

D:\WebSphere MQ\bin>mqver.exe
Name: WebSphere MQ
Version: 530.12 CSD12
CMVC level: p530-12-L051208
BuildType: IKAP - (Production)
Back to top
View user's profile Send private message
wschutz
PostPosted: Sat Mar 04, 2006 2:56 pm    Post subject: Reply with quote

Jedi Knight

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

using evmon (ms0k), I get this for a v53 fp9 and v6 fp1 qmgr on linux for a sender chl:

Reason Code : MQRC_CHANNEL_STOPPED
Event type : CHANNEL EVENT
Event Put Date : 2006/03/04
Event Put Time : 22:35:34
MQCA_Q_MGR_NAME : WSCHUTZ
MQCACH_CHANNEL_NAME : WSCHUTZ.TEST
MQCACH_XMIT_Q_NAME : TEST
MQCACH_CONNECTION_NAME : localhost(1430)
MQIACF_REASON_QUALIFIER : MQRQ_CHL_STOPPED_DISABLED
MQIACF_ERROR_IDENTIFIER : MQRQ_CHL_STOPPED_DISABLED
MQIACF_AUX_DATA_INT_1 : MQRQ_CHL_STOPPED_DISABLED
MQIACF_AUX_ERROR_DATA_INT_2 : MQRQ_CHL_STOPPED_DISABLED
MQCACF_AUX_ERROR_DATA_STR_1 : WSCHUTZ.TEST
MQCACF_AUX_ERROR_DATA_STR_2 :
MQCACF_AUX_ERROR_DATA_STR_3 :


for a svr channel, I get:

Reason Code : MQRC_CHANNEL_STOPPED
Event type : CHANNEL EVENT
Event Put Date : 2006/03/04
Event Put Time : 23:00:46
MQCA_Q_MGR_NAME : WSCHUTZ
MQCACH_CHANNEL_NAME : WSCHUTZ.TEST.SVR
MQCACH_XMIT_Q_NAME : TEST
MQCACH_CONNECTION_NAME : 127.0.0.1
MQIACF_REASON_QUALIFIER : MQRQ_CHL_STOPPED_DISABLED
MQIACF_ERROR_IDENTIFIER : MQRQ_CHL_STOPPED_DISABLED
MQIACF_AUX_DATA_INT_1 : MQRQ_CHL_STOPPED_DISABLED
MQIACF_AUX_ERROR_DATA_INT_2 : MQRQ_CHL_STOPPED_DISABLED
MQCACF_AUX_ERROR_DATA_STR_1 : WSCHUTZ.TEST.SVR
MQCACF_AUX_ERROR_DATA_STR_2 :
MQCACF_AUX_ERROR_DATA_STR_3 :
-----------------------------------------------------------
Reason Code :
Event type : CHANNEL EVENT
Event Put Date : 2006/03/04
Event Put Time : 23:00:46
MQCA_Q_MGR_NAME : WSCHUTZ
MQCACH_CHANNEL_NAME : WSCHUTZ.TEST.SVR
MQIACF_REASON_QUALIFIER : MQRQ_CHL_STOPPED_DISABLED


so this is a little different than what you're getting as I'm always getting a conname and xmit .... use evmon and compare results .... one more thing... in both cases, the "stop" command was issued from the end of the channel where the xmitq was ....
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
sotoka
PostPosted: Sat Mar 04, 2006 3:42 pm    Post subject: Reply with quote

Novice

Joined: 05 Feb 2006
Posts: 12

> I get this for a v53 fp9 and v6 fp1 qmgr on linux for a sender chl:

I don't have access to a UNIX box right now so can't tell if that makes
a difference.

[snip]

> so this is a little different than what you're getting as I'm always getting a > conname and xmit .... use evmon and compare results ....

Thanks for your help, wschutz!

However, it seems that evmon from MS0K does not support MQRC_CHANNEL_STOPPED_BY_USER event but only MQRC_CHANNEL_STOPPED.

If I modify evmon a little bit by adding

case MQRC_CHANNEL_STOPPED_BY_USER:
strcpy(rval, "MQRC_CHANNEL_STOPPED_BY_USER");
break;

somewhere into the dispReason function, I'm getting this

-----------------------------------------------------------
Reason Code : MQRC_CHANNEL_STOPPED_BY_USER
Event type : CHANNEL EVENT
Event Put Date : 2006/03/04
Event Put Time : 23:26:02
MQCA_Q_MGR_NAME : ETA.1
MQCACH_CHANNEL_NAME : TO2
MQIACF_REASON_QUALIFIER : MQRQ_CHL_STOPPED_DISABLED
-----------------------------------------------------------
Reason Code : MQRC_CHANNEL_STOPPED
Event type : CHANNEL EVENT
Event Put Date : 2006/03/04
Event Put Time : 23:26:02
MQCA_Q_MGR_NAME : ETA.1
MQCACH_CHANNEL_NAME : TO2
MQCACH_XMIT_Q_NAME : XQ.TO2
MQCACH_CONNECTION_NAME : 127.0.0.1(1415)
MQIACF_REASON_QUALIFIER : MQRQ_CHL_STOPPED_DISABLED
MQIACF_ERROR_IDENTIFIER : MQRQ_CHL_STOPPED_DISABLED
MQIACF_AUX_DATA_INT_1 : MQRQ_CHL_STOPPED_DISABLED
MQIACF_AUX_ERROR_DATA_INT_2 : MQRQ_CHL_STOPPED_DISABLED
MQCACF_AUX_ERROR_DATA_STR_1 : TO2
MQCACF_AUX_ERROR_DATA_STR_2 : ♦
MQCACF_AUX_ERROR_DATA_STR_3 : UALIFIER : MQRQ_CH☺☻'
-----------------------------------------------------------

I noticed that there are two messages being put onto the SYSTEM.ADMIN.CHANNEL.EVENT queue after I manually stop the channel (using MQ Explorer or via PCF). First one, put on by AMQPCSEA.EXE, is MQRC_CHANNEL_STOPPED_BY_USER. The second one, on put by runmqchl.exe is MQRC_CHANNEL_STOPPED. There are no problems with the latter (i.e. all parameters are present).

Well, that makes a subtopic now Why two events?

> one more thing... in both cases, the "stop" command was issued from
> the end of the channel where the xmitq was ....

Same here.
Back to top
View user's profile Send private message
sotoka
PostPosted: Sat Mar 04, 2006 3:48 pm    Post subject: Reply with quote

Novice

Joined: 05 Feb 2006
Posts: 12

> Well, that makes a subtopic now icon_smile.gif Why two events?

Hm, I guess I know why. MQRC_CHANNEL_STOPPED_BY_USER is created when user issues a STOP CHANNEL command and MQRC_CHANNEL_STOPPED is produced when channel actually stops. Right?
Back to top
View user's profile Send private message
wschutz
PostPosted: Sat Mar 04, 2006 3:52 pm    Post subject: Reply with quote

Jedi Knight

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

sotoka wrote:
> Well, that makes a subtopic now icon_smile.gif Why two events?

Hm, I guess I know why. MQRC_CHANNEL_STOPPED_BY_USER is created when user issues a STOP CHANNEL command and MQRC_CHANNEL_STOPPED is produced when channel actually stops. Right?
makes sense to me ....
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
sotoka
PostPosted: Sun Mar 05, 2006 2:01 am    Post subject: Reply with quote

Novice

Joined: 05 Feb 2006
Posts: 12

wschutz, would you be so kind and recompile evmon with this case statement
in the dispReason function?

Code:

case MQRC_CHANNEL_STOPPED_BY_USER:
    strcpy(rval, "MQRC_CHANNEL_STOPPED_BY_USER");
    break;


I think I'll contact our IBM representatives if you tell me that evmon also on your boxes returns only 3 parameters.

Thanks!
Back to top
View user's profile Send private message
wschutz
PostPosted: Sun Mar 05, 2006 5:14 am    Post subject: Reply with quote

Jedi Knight

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

Code:
-----------------------------------------------------------
Reason Code                   : MQRC_CHANNEL_STOPPED_BY_USER
Event type                    : CHANNEL EVENT
Event Put Date                : 2006/03/05
Event Put Time                : 12:52:13
MQCA_Q_MGR_NAME               : WSCHUTZ
MQCACH_CHANNEL_NAME           : WSCHUTZ.TEST.SVR
MQIACF_REASON_QUALIFIER       : MQRQ_CHL_STOPPED_DISABLED
-----------------------------------------------------------
Reason Code                   : MQRC_CHANNEL_STOPPED
Event type                    : CHANNEL EVENT
Event Put Date                : 2006/03/05
Event Put Time                : 12:52:14
MQCA_Q_MGR_NAME               : WSCHUTZ
MQCACH_CHANNEL_NAME           : WSCHUTZ.TEST.SVR
MQCACH_XMIT_Q_NAME            : TEST
MQCACH_CONNECTION_NAME        : 127.0.0.1
MQIACF_REASON_QUALIFIER       : MQRQ_CHL_STOPPED_DISABLED
MQIACF_ERROR_IDENTIFIER       : MQRQ_CHL_STOPPED_DISABLED
MQIACF_AUX_DATA_INT_1         : MQRQ_CHL_STOPPED_DISABLED
MQIACF_AUX_ERROR_DATA_INT_2   : MQRQ_CHL_STOPPED_DISABLED
MQCACF_AUX_ERROR_DATA_STR_1   : WSCHUTZ.TEST.SVR
MQCACF_AUX_ERROR_DATA_STR_2   :
MQCACF_AUX_ERROR_DATA_STR_3   :
however, this makes sense to me... I wouldn't expect that conname.xmitq would be in the MQRC_CHANNEL_STOPPED_BY_USER (as that comes the from the command and xmitq/conname are unresolved at that time), I would expect to find it in the MQRC_CHANNEL_STOPPED (which comes from the channel itself shutting down).

Does this cause a problem? You "are" getting the info, just in a different message than you expected....
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
sotoka
PostPosted: Sun Mar 05, 2006 5:28 am    Post subject: Reply with quote

Novice

Joined: 05 Feb 2006
Posts: 12

Quote:

however, this makes sense to me... I wouldn't expect that conname.xmitq would be in the MQRC_CHANNEL_STOPPED_BY_USER (as that comes the from the command and xmitq/conname are unresolved at that time), I would expect to find it in the MQRC_CHANNEL_STOPPED (which comes from the channel itself shutting down).


Thanks for that info! This clarifies much.

Quote:

Does this cause a problem? You "are" getting the info, just in a different message than you expected....


Not really, it's not a big problem at all. I've just noticed that actual behaviour differs from what the docs say and spent a couple of hours reviewing my code to be sure I wasn't doing anything silly. OK, I'll just
assume that the documentation is not 100% correct regarding this event...
Back to top
View user's profile Send private message
wschutz
PostPosted: Sun Mar 05, 2006 5:54 am    Post subject: Reply with quote

Jedi Knight

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

i think the doc's wrong...I've submited a feedback to the info people.....
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
sotoka
PostPosted: Sun Mar 05, 2006 6:46 am    Post subject: Reply with quote

Novice

Joined: 05 Feb 2006
Posts: 12

wschutz wrote:
i think the doc's wrong...I've submited a feedback to the info people.....


Guess I should create a signature for this forum and put the "Thanks wschutz!" in there
Back to top
View user's profile Send private message
wschutz
PostPosted: Sun Mar 05, 2006 7:02 am    Post subject: Reply with quote

Jedi Knight

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

actually, i was wrong here:
Quote:
using evmon (ms0k), I get this for a v53 fp9 and v6 fp1 qmgr on linux for a sender chl:
ms0k is out of date... Sam's mo01 version of "evmon" is the way to go....
_________________
-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 » IBM MQ API Support » MQRC_CHANNEL_STOPPED_BY_USER not returning some parameters
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.