MQ

MQ

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Unable to find dspmqerr Application file in MQ 9.0

    Posted Thu June 16, 2022 06:39 AM
    Hi,

    I was trying to check the queue log error file in MQ 9.0 using
    dspmqerr -m QMgrName Filename


    I'm unable to check this because dspmqerr application file is not available in bin folder.



    I checked in bin and all folders I wasn't find that. In previous versions its availble but not in latest or 9.0 version.

    Kindly, give me the resolution to check the logs in my local.



    ------------------------------
    Abhiram Emmadishetty
    ------------------------------


  • 2.  RE: Unable to find dspmqerr Application file in MQ 9.0

    Posted Thu June 16, 2022 06:53 AM

    The command you are looking for is an MQ Appliance only command. It only exists on the MQ Appliance because you cannot directly interact with the file system on an appliance. When you run MQ on commodity hardware, such as the Windows box illustrated in your question, you can look at the file system as much as you like.

    If you want something similar you might like the command file I wrote called mqerror.cmd with the following contents:-

    @REM first parameter into this batch file is the target qmgr
    @if "%1" EQU "" (
    @start notepad %MQ_DATA_PATH%\errors\AMQERR01.LOG
    ) ELSE (
    @start notepad %MQ_DATA_PATH%\qmgrs\%1\errors\AMQERR01.LOG
    )

    If it doesn't do what you want, you can always edit it to do whatever you need.

    Cheers,
    Morag



    ------------------------------
    Morag Hughson
    MQ Technical Education Specialist
    MQGem Software Limited
    Website: https://www.mqgem.com
    ------------------------------



  • 3.  RE: Unable to find dspmqerr Application file in MQ 9.0

    Posted Thu June 16, 2022 07:19 AM
    Hi,

    Ya understood. Where can i check the MQ logs in my local machine.

    Currently, I've an MQ based application ready and tested successful. After completion of testing, I need to check the MQ log. Where can i find it?

    As well as how can i check the MQ error log on CP4I?

    ------------------------------
    Abhiram Emmadishetty
    ------------------------------



  • 4.  RE: Unable to find dspmqerr Application file in MQ 9.0

    Posted Thu June 16, 2022 07:51 AM

    As you can see from my example script, the error log for a queue manager is in:

    %MQ_DATA_PATH%\qmgrs\%1\errors\AMQERR01.LOG

    where %1 is the queue manager name.

    Morag
    Morag



    ------------------------------
    Morag Hughson
    MQ Technical Education Specialist
    MQGem Software Limited
    Website: https://www.mqgem.com
    ------------------------------



  • 5.  RE: Unable to find dspmqerr Application file in MQ 9.0

    Posted Thu June 16, 2022 11:47 PM
    Hi,

    As you've shared  mqerror.cmd , How can i use this and in which location.

    @REM first parameter into this batch file is the target qmgr
    @if "%1" EQU "" (
    @start notepad %MQ_DATA_PATH%\errors\AMQERR01.LOG
    ) ELSE (
    @start notepad %MQ_DATA_PATH%\qmgrs\%1\errors\AMQERR01.LOG
    )
    Kindly, give me in detail like location, path/ it's navigation.

    Thanks

    ------------------------------
    Abhiram Emmadishetty
    ------------------------------



  • 6.  RE: Unable to find dspmqerr Application file in MQ 9.0

    Posted Fri June 17, 2022 12:41 AM

    Hi Abhiram,

    It's a Windows cmd file. It only works on Windows. I suspect it would be quite simple to make an equivalent Linux shell script. I keep it in my tools directory which is in my path. It's a handy thing to have a known place that is in your path where you can keep handy tools like this. Where you put it doesn't matter though so long as it is in your path.

    Create a file called mqerror.cmd (or call it anything else that makes sense to you if you want a different name, just ensure it has the .cmd file extension) and copy my provided contents into the file. Save it.

    Now from the command, either just type:

    mqerror

    which will then run notepad to show your the system/client error log.

    Or type:-

    mqerror MQG1

    (where MQG1 is my queue manager name - replace it with your own queue manager name) and that will run notepad to show you the queue manager error log.

    I am not sure what else I can tell you. It is a very simple Windows cmd file.

    Please ask any specific questions that I have not covered.

    Cheers,
    Morag



    ------------------------------
    Morag Hughson
    MQ Technical Education Specialist
    MQGem Software Limited
    Website: https://www.mqgem.com
    ------------------------------



  • 7.  RE: Unable to find dspmqerr Application file in MQ 9.0

    Posted Fri June 17, 2022 02:45 AM
    Hi Morag,

    Got the log file error. 

    Sharing the error below:

    ----- amqccita.c : 1755 -------------------------------------------------------
    17-06-2022 12:06:54 - Process(13640.13) User(SYSTEM) Program(taFlowEngine.exe)
    Host(PIPLMUMDT034) Installation(Installation1)
    VRMF(9.2.3.0)
    Time(2022-06-17T06:36:54.381Z)
    ArithInsert1(11001)
    CommentInsert1(quickstart-cp4i-test-ibm-mq.cp4i-portall.svc)
    CommentInsert2(TCP/IP)
    CommentInsert3(SB.SVRCONN)

    AMQ9202E: Remote host not available, retry later.

    EXPLANATION:
    The attempt to allocate a conversation using TCP/IP to host
    'quickstart-cp4i-test-ibm-mq.cp4i-portall.svc' for channel SB.SVRCONN was not
    successful. However the error may be a transitory one and it may be possible to
    successfully allocate a TCP/IP conversation later.

    In some cases the remote host cannot be determined and so is shown as '????'.
    ACTION:
    Try the connection again later. If the failure persists, record the error
    values and contact your systems administrator. The return code from TCP/IP is
    11001 (X'0'). The reason for the failure may be that this host cannot reach the
    destination host. It may also be possible that the listening program at host
    'quickstart-cp4i-test-ibm-mq.cp4i-portall.svc' was not running. If this is the
    case, perform the relevant operations to start the TCP/IP listening program,
    and try again.
    ----- amqccita.c : 1755 -------------------------------------------------------



    The above error message is visible frequently.
    Kindly, give me the resolution for this.

    Thanks

    ------------------------------
    Abhiram Emmadishetty
    ------------------------------



  • 8.  RE: Unable to find dspmqerr Application file in MQ 9.0

    Posted Fri June 17, 2022 06:58 AM

    I'm not sure I can tell you any more than the error message already tells you. Here's how I read it.

    You are running an MQ Client program called taFlowEngine.exe to connect to a queue manager on a remote system over TCP/IP. The channel name you are trying to use is SB.SVRCONN and the hostname you are trying to use to connect over TCP/IP to the queue manager machine is quickstart-cp4i-test-ibm-mq.cp4i-portall.svc.

    The TCP/IP connect call failed to connect to that system and gave you a Windows TCP/IP return code of 11001 which, when you look it up in Windows TCP/IP documentation tells you that it means WSAHOST_NOT_FOUND.

    Host not found.
    No such host is known. The name is not an official host name or alias, or it cannot be found in the database(s) being queried. This error may also be returned for protocol and service queries, and means that the specified name could not be found in the relevant database.

    This suggests that the DNS server your client machine is using cannot find the hostname quickstart-cp4i-test-ibm-mq.cp4i-portall.svc in order to translate it into an IP address to make the connection.

    What should you do?

    Check that you have correctly specified the queue manager machine's hostname, and if you have, ensure that your client machine is connected to a DNS server that can resolve it.

    Cheers,
    Morag



    ------------------------------
    Morag Hughson
    MQ Technical Education Specialist
    MQGem Software Limited
    Website: https://www.mqgem.com
    ------------------------------