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
Expand all | Collapse all

Multi-instance MFT Agent setup.

  • 1.  Multi-instance MFT Agent setup.

    Posted Thu February 23, 2023 10:02 AM

    Hello Team,

    Could you please share configuring a multi-instance MFT Agent setup document. 



    ------------------------------
    yagnakishore arikati
    ------------------------------


  • 2.  RE: Multi-instance MFT Agent setup.

    Posted Fri February 24, 2023 04:10 AM

    Hi ,
    You can use this link https://www.ibm.com/docs/en/ibm-mq/9.0?topic=use-configuring-multi-instance-queue-manager-work-mft  .

    Thanks ,
    Manisha Kohli



    ------------------------------
    Manisha Kohli
    ------------------------------



  • 3.  RE: Multi-instance MFT Agent setup.

    Posted Fri February 24, 2023 06:55 AM

    Thanks for link Manisha,

    I was done this setup in two servers (active & passive) but in both server agents status is active active. Is the any way to agent will be active and standby. 



    ------------------------------
    yagnakishore arikati
    ------------------------------



  • 4.  RE: Multi-instance MFT Agent setup.

    Posted Fri February 24, 2023 08:55 AM

    Hi ,

    You can refer to link https://www.ibm.com/docs/en/ibm-mq/9.1?topic=transfer-highly-available-agents-in-managed-file

    for information on Active and Standby agents in a HA setup

    Thanks

    Veena R



    ------------------------------
    VEENA RAMACHANDRAN
    ------------------------------



  • 5.  RE: Multi-instance MFT Agent setup.

    Posted Fri February 24, 2023 08:55 AM

    Hi 

    You can use link  https://www.ibm.com/docs/en/ibm-mq/9.1?topic=transfer-highly-available-agents-in-managed-file

    for information on Active and Standby Agent in HA setup



    ------------------------------
    VEENA RAMACHANDRAN
    ------------------------------



  • 6.  RE: Multi-instance MFT Agent setup.

    Posted Fri February 24, 2023 04:32 PM

    Title: Highly available agents in Managed File Transfer

      URL: https://www.IBM.com/docs/en/ibm-mq/9.3?topic=managers-highly-available-agents-in-managed-file-transfer

    No option exists on the fteCreateAgent command to difine an agent as highly available.

    Title: fteCreateAgent (create an MFT agent)

      URL: https://www.IBM.com/docs/en/ibm-mq/9.3?topic=reference-ftecreateagent-create-mft-agent

    Nor is there an option on the fteStartAgent, or fteStopAgent commands about a highly available agent.

    However, there are agent properties related to highly available agents.

      Title: The MFT agent.properties file

        URL: https://www.IBM.com/docs/en/ibm-mq/9.3?topic=reference-mft-agentproperties-file

    Section: High availability properties

        URL: https://www.IBM.com/docs/en/ibm-mq/9.3?topic=reference-mft-agentproperties-file#properties__highav_props

    • highlyAvailable
    • standbyPollInterval
    • standbyStatusDiscardTime
    • standbyStatusExpiry
    • standbyStatusPublishInterval

      If the highlyAvailable property in the agent.properties file is present and has a value of true, when the agent is started, it will attempt to obtain exclusive access to agent queues on the agent queue manager.  If it is unable to do so, it will be in standby mode (i.e., awaiting for exclusive access to be available).  Until that occurs, it will not become the active agent instance.

      So, to create a highly available agent, you need to use the fteCreateAgent command to identify how each agent instance will connect to the agent queue manager.  Then, you need to edit the agent.properties file, and add this property:

    highlyAvailable=true

      Once this has been done you can use the fteStartAgent to start the active agent.

      You then need to replicate this information (all of the MFT properties files) on the standby agent system.

      When you use the fteStartAgent, it will attempt to obtain exclusive access to the agent queues on the queue manager and realize that it needs to be in standby mode until it needs to become the active agent instance.



    ------------------------------
    Bob
    ------------------------------



  • 7.  RE: Multi-instance MFT Agent setup.

    Posted Mon February 27, 2023 11:45 AM

    Hi Bob

    Thank you for sharing information. I will be trying to implement. 



    ------------------------------
    yagnakishore arikati
    ------------------------------



  • 8.  RE: Multi-instance MFT Agent setup.

    Posted Thu March 02, 2023 04:23 AM

    Hi Bob,

    Q: Is the setup MFT agents in both active and standby server?



    ------------------------------
    yagnakishore arikati
    ------------------------------



  • 9.  RE: Multi-instance MFT Agent setup.

    Posted Thu March 02, 2023 02:46 PM

    Yagnakishore:

      Please explain what you mean.  If you are asking if one Agent is active and the other is in standby, then the answer is yes.  They use a queue on the agent Queue Manager to determine which is / should be active.  The agent that can't get exclusive access to the queue will be in standby mode until it obtains the exclusive access to the queue.  This should only occur when the "active" agent fails for some reason and relinquishes control to the queue.

      Hopefully this provides you with the information for which you were looking.

    Bob



    ------------------------------
    Bob
    ------------------------------



  • 10.  RE: Multi-instance MFT Agent setup.

    Posted Fri March 03, 2023 06:20 AM

    Hi Bob,

    Thanks for responding,

    We are unable to make MFT switchover successfully. Followed below steps:

    1. Created HA Queue manager in active server 
    2. In active server we ran the fteSetupCoordination, fteSetupCommands and fteCreateAgent -x commands and added  
      highlyAvailable=true
      standbyPollInterval=5
      standbyStatusDiscardTime=600
      standbyStatusExpiry=30
      standbyStatusPublishInterval=300 in
      agent properties
    3. Added HA Qmgr information in Standby server.
    4. We have copied MFT property files from node1 (coordination.properties, command.properties, agent.properties) on node 2 we manually created log folder.
    5. Started Queue manger and MFT agent on Node1 (Active Server). 
      Failover scenario:
      1. When we switch Qmgr (endmqm -s QMGR) to the node2, Qmgr running on Node2 but agent running on node1, status checking with ftePingAgent command.
      2. Can you please help us, is their any specific command to start or switch the HA  MFT agent

    Thank you in advance,



    ------------------------------
    yagnakishore arikati
    ------------------------------



  • 11.  RE: Multi-instance MFT Agent setup.

    Posted Fri March 03, 2023 10:13 AM

    Have you looked at:  Configuring a multi-instance queue manager to work with MFT

    to see if setting the standby QM IP address info helps?



    ------------------------------
    Honda Bhyat
    Land O Lakes FL
    ------------------------------



  • 12.  RE: Multi-instance MFT Agent setup.

    Posted Fri March 10, 2023 10:26 PM

    Hello Honda Bhyat,

    Thanks for the <wt-ignore uuid="19c1f7b8-151b-4323-9e81-8c53ba40b8dc" source="wt-feature-result">response.</wt-ignore>

    Yes, I <wt-ignore uuid="932b358c-e5f9-45e5-8490-bfcfa721aa19" source="wt-feature-result">followed</wt-ignore> <wt-ignore uuid="c26d1069-777c-4441-88da-0bb7b8be42a3" source="wt-feature-result">the same configuration.</wt-ignore> The only concern is when we switch the multi instance queue manager from the active node to standby node queue manager is coming <wt-ignore uuid="e9dea0a1-44a3-490f-a249-3ed2b2a4ed51" source="wt-feature-result">automatically. However,</wt-ignore> MFT agent is coming up still it is running on node 1. <wt-ignore uuid="39fecf07-413c-4b56-b118-e55a704930b5" source="wt-feature-result">Agents should also be switched with queue managers.</wt-ignore>



    ------------------------------
    yagnakishore arikati
    ------------------------------



  • 13.  RE: Multi-instance MFT Agent setup.

    Posted Fri March 03, 2023 12:07 PM

    Yagnakishore:

      This type of issue is better served by the IBM Software Support process.  Please create a new case for the IBM MQ Distributed team .

    Title: IBM Customer Community Portal
      URL: https://www.ibm.com/mysupport

      Use the Open a case button and fill in the details.  Feel free to ask that it be assigned to Bob Gibson based upon our discussion up to this point.  Please also provide the fteRAS output from the agent system and the runmqras output from the agent queue manager system.

    Title: fteRAS (collect MFT troubleshooting information)

      URL: https://www.IBM.com/docs/en/ibm-mq/9.3?topic=reference-fteras-collect-mft-troubleshooting-information

    Note: If you normally specify the -p command line option when starting the agent, please use this same -p option when using the fteRAS command.

    Title: runmqras (collect IBM MQ troubleshooting information)

      URL: https://www.IBM.com/docs/en/ibm-mq/9.3?topic=reference-runmqras-collect-mq-troubleshooting-information

      For example:

    runmqras -qmlist QMname -section defs

      Note: Please specify the actual queue manager name where QMname is shown on the sample command above.



    ------------------------------
    Bob Gibson - IBM Software Support - MQ Distributed
    ------------------------------



  • 14.  RE: Multi-instance MFT Agent setup.

    Posted Fri March 10, 2023 03:19 AM

    Hi Bob

    By any chance couldn't help with out raising PMR case. The only concern is Agent is won't come up with qmgr from active to standby node in multi instance setup. since we have enable below values in agent properties file in both nodes. 

    highlyAvailable=true
    standbyPollInterval=5
    standbyStatusDiscardTime=600
    standbyStatusExpiry=30
    standbyStatusPublishInterval=300



    ------------------------------
    yagnakishore arikati
    ------------------------------