Author |
Message
|
vam |
Posted: Mon May 02, 2011 1:31 pm Post subject: mca user id |
|
|
Acolyte
Joined: 16 Mar 2010 Posts: 70
|
any command to find mca userid in unix and windows ? |
|
Back to top |
|
 |
bruce2359 |
Posted: Mon May 02, 2011 2:58 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Yes, use the runmqsc control program to display the definition of the channel. Hers's the MQSC command: DISPLAY CHL(channelnamegoeshere). _________________ 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 |
|
 |
fjb_saper |
Posted: Mon May 02, 2011 8:25 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Let's take the extreme view.
The OP is running a Unix process under mqm and using runmqtrc against a Windows qmgr without a channel MCAUSERID set.
It would follow that the C program is passing the userid it is running under (namely mqm) and thus failing because this is not a valid Windows Id.
Set up a dedicated svrconn channel with MCAUSERID in windows (using a relevant windows id) for this process.
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
zpat |
Posted: Mon May 02, 2011 10:55 pm Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
If you want to see what MCA userid is actually being used on an active channel - display channel status (not definition). |
|
Back to top |
|
 |
bruce2359 |
Posted: Tue May 03, 2011 5:38 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
zpat wrote: |
If you want to see what MCA userid is actually being used on an active channel - display channel status (not definition). |
This will, in most instances, be the same userid named in the MCAUSER() attribute of the channel definition. _________________ 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 |
|
 |
zpat |
Posted: Tue May 03, 2011 6:16 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
But not if the defined MCA user is blank, or if you use a channel security exit.
In our case every channel definition has "nobody" in it and the actual MCA userid is always set by the security exit. |
|
Back to top |
|
 |
bruce2359 |
Posted: Tue May 03, 2011 6:44 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
I'm pondering how (un)common security exits are... _________________ 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 |
|
 |
zpat |
Posted: Tue May 03, 2011 7:04 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Displaying the channel status will give the answer in either case, if the channel is active. |
|
Back to top |
|
 |
|