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 Java / JMS » How to read system events?

Post new topic  Reply to topic
 How to read system events? « View previous topic :: View next topic » 
Author Message
lifeng
PostPosted: Wed Mar 12, 2008 11:53 am    Post subject: How to read system events? Reply with quote

Apprentice

Joined: 11 Jan 2008
Posts: 46

Hi,

I enabled the Authority events from QM Manager and generated event messages in the SYSTEM.ADMIN.QMGR.EVENT. But the only way I can find to read the message is to go to the Data tab of the property page of that message and read the mostly hex data (since the text radio button is disabled for some reason). Is there a better way to read this message?

Thanks

Lifeng
Back to top
View user's profile Send private message
lifeng
PostPosted: Wed Mar 12, 2008 1:11 pm    Post subject: Reply with quote

Apprentice

Joined: 11 Jan 2008
Posts: 46

As an example of what I asked about in the above post, I just got an MQRC_NOT_AUTHORIZED back from MQ and I looked at the message generated in SYSTEM.ADMIN.QMGR.EVENT queue, here is what I see:

07 00 00 00 24 00 00 00 ....$...
01 00 00 00 2C 00 00 00 ....,...
01 00 00 00 01 00 00 00 ........
01 00 00 00 F3 07 00 00 .......
05 00 00 00 04 00 00 00 ........
44 00 00 00 DF 07 00 00 D......
00 00 00 00 30 00 00 00 ....0...
51 4D 5F 51 49 43 4C 49 QM_QICLI
4E 4B 20 20 20 20 20 20 NK
20 20 20 20 20 20 20 20
20 20 20 20 20 20 20 20
20 20 20 20 20 20 20 20
20 20 20 20 20 20 20 20
03 00 00 00 10 00 00 00 ........
FC 03 00 00 01 00 00 00 .......
04 00 00 00 20 00 00 00 .... ...
D1 0B 00 00 00 00 00 00 .......
0C 00 00 00 6C 69 66 65 ....life
6E 67 2E 78 75 20 20 20 ng.xu
03 00 00 00 10 00 00 00 ........
01 00 00 00 0B 00 00 00 ........
04 00 00 00 30 00 00 00 ....0...
D0 0B 00 00 00 00 00 00 .......
1C 00 00 00 6F 72 6B 5C ....ork\
76 32 2E 30 2E 35 30 37 v2.0.507
32 37 5C 61 73 70 6E 65 27\aspne
74 5F 77 70 2E 65 78 65 t_wp.exe

besides the queue manager name, the text "lifeng.xu" which is what I added as the MCAUSER and the info in the very end about asp.net version, nothing really helps. Where is the information I am looking for, such as connecting user's ID, etc.?

Thanks

Lifeng
Back to top
View user's profile Send private message
marcin.kasinski
PostPosted: Wed Mar 12, 2008 2:21 pm    Post subject: Re: How to read system events? Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

You can read this messages with PCF lib.
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
fjb_saper
PostPosted: Wed Mar 12, 2008 3:16 pm    Post subject: Reply with quote

Grand High Poobah

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

Quote:
besides the queue manager name, the text "lifeng.xu" which is what I added as the MCAUSER and the info in the very end about asp.net version, nothing really helps. Where is the information I am looking for, such as connecting user's ID, etc.?

Why would you be worried about the connecting userid if you set the mcauser to 'lifeng.xu'.

You should be checking why 'lifeng.xu' has no authorizations on the qmgr.

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
lifeng
PostPosted: Wed Mar 12, 2008 6:34 pm    Post subject: Reply with quote

Apprentice

Joined: 11 Jan 2008
Posts: 46

Hi fjb_saper,

The reason why I want to know the connecting userid is because I DO NOT know the connecting userid. If I run the client program from machine that I logged on to, then I know the userid connecting to the MQ server will be my login. But in reality, the client program will be running on a server which nobody will be logged on. And my client program will be hosted by IIS/ASP.Net. So in order to set a right MCAUSER, without a MQ server side tracking, I can only guess what the userid would be. I tried things such as "ASPNET@my_domain", "ASPNET@my_machine_name", "NET WORKSERVICE@NT AUTHORITY", etc. ... But, of course, none of above worked. I always get MQRC_NOT_AUTHORIZED back. The string "lifeng.xu" is just one of those things I tried and failed.

I guess I don't have to read the event message, but I do need to know what the connecting userid the MQ Server will see, when the connection is requested by a client program that is hosted by a IIS6/Win2003 server that nobody logged on. I did a lot of search in looking for the answer to this question and couldn't find the correct answer. That's why I am trying to find some kind of MQ logging, tracking, event message... so I can see the real userid when the connection is called.

Thanks again for your response!

Lifeng
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Mar 12, 2008 7:58 pm    Post subject: Reply with quote

Grand High Poobah

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

lifeng wrote:
Hi fjb_saper,

The reason why I want to know the connecting userid is because I DO NOT know the connecting userid. If I run the client program from machine that I logged on to, then I know the userid connecting to the MQ server will be my login. But in reality, the client program will be running on a server which nobody will be logged on. And my client program will be hosted by IIS/ASP.Net. So in order to set a right MCAUSER, without a MQ server side tracking, I can only guess what the userid would be. I tried things such as "ASPNET@my_domain", "ASPNET@my_machine_name", "NET WORKSERVICE@NT AUTHORITY", etc. ... But, of course, none of above worked. I always get MQRC_NOT_AUTHORIZED back. The string "lifeng.xu" is just one of those things I tried and failed.

I guess I don't have to read the event message, but I do need to know what the connecting userid the MQ Server will see, when the connection is requested by a client program that is hosted by a IIS6/Win2003 server that nobody logged on. I did a lot of search in looking for the answer to this question and couldn't find the correct answer. That's why I am trying to find some kind of MQ logging, tracking, event message... so I can see the real userid when the connection is called.

Thanks again for your response!

Lifeng

You have been given 2 standard ways to resolve this problem:
Impersonation and setting the mcauser

What have you found out so far on those?


_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
lifeng
PostPosted: Thu Mar 13, 2008 5:55 am    Post subject: Reply with quote

Apprentice

Joined: 11 Jan 2008
Posts: 46

fjb_saper,

First of all, I just realized that I started this thread on a wrong sub-group. I shouldn't be posting in MQ Java, since I am using .Net. Sorry about this.

To answer your question about the 2 standard options, I have tried both options specified by http://www-1.ibm.com/support/docview.wss?uid=swg21195102, if that's what you mean. But that was for the 2063 MQRC_SECURITY_ERROR I was getting when I have both client program and MQ Server on the same machine. That issue is still there. Those options didn't work for me (detail is in http://www.mqseries.net/phpBB2/viewtopic.php?t=42242). So now I takeing my client program out of the MQ server box and I seem to get farther - I can connect and communicate with my queues IF I run the client program by LOGGING ON to the client box! And if I run client without logging on, then I get MQRC_NOT_AUTHORIZED error, instead of MQRC_SECURITY_ERROR.

As you can see, I have been struggling for quite a while over this connecting issue.

Thank you again.

Lifeng
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » How to read system events?
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.