What to do if ftePingAgent times out and reports a BFGCL0214I message
ftePingAgent is a useful command-line utility provided with IBM® MQ Managed File Transfer that enables you check whether an agent is reachable, and whether it is able to respond to requests.
How the command works
- Connects to the command queue manager for the Managed File Transfer (MFT) topology.
- Creates a temporary reply queue on the command queue manager.
By default, the temporary queue has a name that starts with the prefix
WMQFTE
. However, you can change this by setting the dynamicQueuePrefix property in The MFT command.properties file for the installation. - Sends a Ping MFT agent request message to the queue SYSTEM.FTE.COMMAND.agent_name on the agent queue manager, through the command queue manager. The request message contains the name of the temporary reply queue.
- Waits for a reply message to arrive on the temporary reply queue.
One of the threads within an agent is the CommandHandler
. This thread gets
messages from the SYSTEM.FTE.COMMAND.agent_name queue of the agent, and processes them.
If this thread receives a message containing a Ping MFT agent request, it builds an MFT agent reply message, and sends it to the temporary queue on the command queue manager. This message goes through the agent's queue manager.
BFGCL0213I: agent <agent_name> responded to ping in 0.088 seconds.
What to do if the command times out
BFGCL0214I: agent AGENT1 didn't respond to ping after 5 seconds.
- The first thing to do is check that the agent is running. If it is not, it can not respond to the Ping MFT agent request sent by the command.
- If the agent is running and busy processing requests, it is possible that it might take longer
than five seconds to get the Ping MFT agent
request and send back the reply.To see if this is the case you should rerun the ftePingAgent command again, using the -w parameter to specify a longer wait interval. For example, to specify a 60 second wait interval, issue the following command:
ftePingAgent -w 60 AGENT1
- If the command still times out, check the path through the IBM MQ network between the command queue manager and the agent queue manager. If one or more channels in the path have failed, the Ping MFT agent request message and/or the MFT agent reply message will be stuck on a transmission queue somewhere. In this situation, you should restart the channels and re-run the ftePingAgent command.
- Whether the Ping MFT agent message ever reaches the SYSTEM.FTE.COMMAND.agent_name queue.
- If the agent picks up the message up from the queue, and sends back an MFT agent reply message.
- Enable queue manager traces on both the command and agent queue managers.
- Enable trace on the agent dynamically using the trace specification
com.ibm.wmqfte=all
.The way to do this depends upon the platform the agent is running on. For agents running on:- IBM MQ for Multiplatforms, see Collecting a Managed File Transfer agent trace dynamically.
- IBM MQ for z/OS®, see Collecting a Managed File Transfer for z/OS agent trace dynamically.
- Next, run the ftePingAgent command with trace enabled, using the trace
specification
com.ibm.wmqfte=all
. For information about tracing the command on:- IBM MQ for Multiplatforms, see Tracing Managed File Transfer commands on Multiplatforms.
- IBM MQ for z/OS, see Tracing Managed File Transfer for z/OS commands.
When the command times out, stop the agent trace and the queue manager trace. The agent and queue manager traces, along with the trace from the command, should then be made available to IBM support for analysis.