Paul, changing all the Windows paths to Linux paths (/var/mqm/...) in the MO71 config file from our PCs allowed us to use that config file for MO72 running on Linux.
Still think it would be a good idea to add 2 flags related to Security Exits for MO72, in case people out there want to use MO72 without MO71 experience, or without building massive Client Channel tables. -Peter -----Original Message----- From: MQSeries List [mailto:[EMAIL PROTECTED] Behalf Of Paul Clarke Sent: Sunday, May 14, 2006 5:03 PM To: [email protected] Subject: Re: MO72 help Hi Peter, Glad it works now. Yes, as I said, I will have to have a strong word with the author of the document :-) Well, what'd'ya expect for free software :-) I'm not sure I agree that it's intuitive just to include the command string at the end of the parameter list. I can't think of any other applications where this would be the case. However, I shall look into adding a -C (or something) flag which allows a single one off command. Piping can often look pretty ugly - plus it's inefficient. I see no reason why you can't use the MQMON.CFG file on Linux. I believe I wrote the code so it should work, and I think I even tried it but it's a long time ago. By default it should look for MQMON.CFG in the same directory as the program but using the -f flag you can tell me where it is and then you can use -g flag. As you point out though, things like exit definitions would have to be changed to the Linux flavours and I'm not certain whether this would cause any problems. It shouldn't but then one never knows, Have a play and let me know if you have any problems; sadly I can't try it at the moment because none of my Linux boxes will let me in, Cheers, P. Paul G Clarke WebSphere Messaging Clients IBM Hursley MQSeries List <[email protected]> wrote on 14/05/2006 21:10:01: > ok, made progress. This works: > echo 'ALTER QLOCAL(HIG.HIGCONL1.LOCAL.QUEUE) GET(ENABLED)' | > /var/mqm/peter/mqsc -m HIGCONL1 -l -c PETER.CHANNEL -h MyServerName > > I personally have no need for MO72 to run in bindings mode. I was > just trying to make it work in what I thought was the simplest case, > local connection. The fact that the manual has a section that says > connect to the QM, or use -l to connect as a client made me think I > had that choice on any platform. Now I know better. Maybe a comment > in the manual explaining Windows only for bindings mode for now > would be a good idea. > > The parameter that allows a single command? Maybe. To me that was > intuitive, to try and put a command at the end of it. I figured out > the above echo and pipe way by looking at what one of my teammates > did on Windows. > > > But I do have another real requirement. Please add flags that allow > us to pass Security User Data and Security Exit so that we can call > exits. I use Capitalware's MQAUSX to secure all my SVRCONN channels. > When we ran this on Windows, no problem, we just used one of our > MO71 config files to supply all the connection parms, including > exits. Those MO71 config files won't work on the Linux server > (correct?), because all the Security Exit parms assume a Windows > path (C:\...) and not the /var/mqm/... I need on Linux. I know I > could just build a monster channel table for all my QMs, but that is > a maintenance nightmare. Wayne added 2 flags like this for me for > MS03 and it was a big help. Would real like this ability for MO72. > In the meantime, do you think somehow the MO71 config file might be > used on Linux if I changed all the C:\.... paths to /var/mqm/... > paths for exits? > > -Peter > > -----Original Message----- > From: MQSeries List [mailto:[EMAIL PROTECTED] Behalf > Of Paul Clarke > Sent: Sunday, May 14, 2006 4:47 AM > To: [email protected] > Subject: Re: MO72 help > > > Hi Peter, > > It may just be that I have to eat humble pie at this point. What the manual > doesn't make clear is that MO72 is essentially a client program. On Windows > you have the 'luxury' of being able to run in local bindings mode but that > is merely because things are a little easier on Windows. The problem is in > dynamically loading either the mqm or mqic32 library; it's not too bad I > think I just haven't got around to it. That's why my other SupportPacs like > MA01 and MO03 ship two versions of the executable, one local and one > client. The feeling with MO72 was that you only need a client version since > you have a locally bound program, RUNQMSC. Of course this was before I > enhanced the interface with the command script and perhaps even a locally > bound version would be useful, I'd be interested in your thoughts. > > Anyway, so if we concentrate on the client version and why you get MO72 > complaining about you parameters. What's the command bit "ALTER QM......" > at the end of the command line ? I don't support that do I ? Even on > Windows ? What happens if you don't have a command on the end. ? > > It's a useful idea, having a parameter which would issue a single command > that is. Would you like me to add that ? > > Cheers, > P. > > Paul G Clarke > WebSphere Messaging Clients > IBM Hursley > > > > MQSeries List <[email protected]> wrote on 13/05/2006 > 19:00:22: > > > Trying to run MO72 on MQ 6.0.1.0 on Linux.I tried to run as basic a > > command as possible: mqsc -m HIGCONL1. HIGCONL1 is the local QM, but > > MO72 keeps throwing me a 2058??? > > > > ******my mq version: > > ************************************************************ > > [EMAIL PROTECTED] peter]$ dspmqver > > Name: WebSphere MQ > > Version: 6.0.1.0 > > CMVC level: p600-100-051021 > > BuildType: IKAP - (Production) > > > > ******My OS: ************************************************************ > > > [EMAIL PROTECTED] peter]$ uname -a > > Linux isd-mqcht001 2.4.21-37.EL #1 Wed Sep 7 13:37:20 EDT 2005 i686 > > athlon i386 GNU/Linux > > [EMAIL PROTECTED] peter]$ > > > > ******Where I am: > ************************************************************ > > [EMAIL PROTECTED] peter]$ cd /var/mqm/peter > > [EMAIL PROTECTED] peter]$ pwd > > /var/mqm/peter > > > > ******Here's the mscs file: > > ************************************************************ > > [EMAIL PROTECTED] peter]$ ls -l > > total 728 > > -rwxr-xr-x 1 pp22503 isd 732874 May 13 10:16 mqsc > > > > ******running as mqm: > > ************************************************************ > > [EMAIL PROTECTED] peter]$ whoami > > mqm > > > > ******trying to run it, and it gives me a 2058: > > ************************************************************ > > [EMAIL PROTECTED] peter]$ ./mqsc -m HIGCONL1 > > Error connecting to 'HIGCONL1' RC(2058) QMgr name error. > > MQSC Ended > > > > ******But look, HIGCONL1 is valid: > > ************************************************************ > > [EMAIL PROTECTED] peter]$ dspmq > > QMNAME(HIGCONL1) STATUS(Running) > > > > ******plain runmqsc can get to the QM ok: > > ************************************************************ > > [EMAIL PROTECTED] peter]$ runmqsc HIGCONL1 > > 5724-H72 (C) Copyright IBM Corp. 1994, 2005. ALL RIGHTS RESERVED. > > Starting MQSC for queue manager HIGCONL1. > > > > end > > 1 : end > > No MQSC commands read. > > No commands have a syntax error. > > All valid MQSC commands were processed. > > ************************************************************************* > > > And if I try and run it as a client, I just keep getting the > > following errors complaining about the usage parms I'm passing, but > > they seem fine to me: > > [EMAIL PROTECTED] peter]$ /var/mqm/peter/mqsc -m HIGIDGL1 -l -c > > MO71.ADMIN -h AD1HFDMQLAB901 "ALTER QLOCAL(HIG.HIGIDGL1.LOCAL.QUEUE) > > GET(ENABLED)" > > MQSC Command Program by Paul Clarke [V1.2] Build:Oct 25 2004 > > Usage: MQSC <Optional flags as below> > > [-c <Channel Name>] > > [-e] Don't echo commands to output > > [-f <Location of MQMON.CFG file>] > > [-g] Use MQMON.CFG configuration file > > [-h <Host Name>] > > [-i <Input File>] > > [-l] Connect as client > > [-m <Queue Manager Name>] > > [-o <Output File>] > > [-p <Parameter String> > > [cols=<n> Number of columns] > > [width=<n> Width of output] > > [comp=<yes|no> Compress Attributes] > > [wait=<n> Wait Interval] > > [format=<yes|no> Formatting on] > > [prompt=<prompt string> %m for QMName] > > [-q <Command Queue> > > [-r <Reply Queue Name>] > > [-R <Reply Queue Model Prefix>] > > [-z] Queue Manager is z/OS > > MQSC Ended > > [EMAIL PROTECTED] peter]$ > > > > ???????????????????? > > When executed on a Windows server, MO72 works fine. > > -Peter > > > > > > ************************************************************************* > > This communication, including attachments, is > > for the exclusive use of addressee and may contain proprietary, > > confidential and/or privileged information. If you are not the intended > > recipient, any use, copying, disclosure, dissemination or distribution is > > strictly prohibited. If you are not the intended recipient, please notify > > the sender immediately by return e-mail, delete this communication and > > destroy all copies. > > ************************************************************************* > > Instructions for managing your mailing list subscription are > > provided in the Listserv General Users Guide available at > http://www.lsoft.com > > > > Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html > > Instructions for managing your mailing list subscription are provided in > the Listserv General Users Guide available at http://www.lsoft.com > Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html > > Instructions for managing your mailing list subscription are provided in > the Listserv General Users Guide available at http://www.lsoft.com > Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
