fteDeleteMonitor: delete an MFT resource monitor

Use the fteDeleteMonitor command to stop and delete an existing Managed File Transfer resource monitor using the command line. Issue this command against the resource monitoring agent.


Purpose

Use the fteDeleteMonitor command to stop monitoring a resource and remove the monitor's definition from the monitoring agent. When you run this command, no more polls of the resource occur and no further tasks are started.

We can run the fteDeleteMonitor command from any system that can connect to the IBM MQ network and subsequently route to the agent's queue manager. Specifically for the command to run, we must have installed a Managed File Transfer component (either Service or Agent) on this system and we must have configured this system's Managed File Transfer to communicate with the IBM MQ network. If no connectivity details are available, the agent queue manager details are used for connection instead, provided these details are available.

Specify the optional -p parameter for this command only if we want to use a set of configuration options different from your default set. See Configuration options for more information.


Syntax

fteDeleteMonitor

fteDeleteMonitor-ma(monitoring_agent_name)  -mn (monitor_name)  -mm (monitoring_agent_qmgr_name)-mquseriduserID-mqpasswordpassword-p(configuration_options)


Parameters

    -ma (monitoring_agent_name
    Required. The name of the agent that performs the resource monitoring. This monitoring agent must also have been the source agent for the file transfer that we wanted to trigger.

    -mn (monitor_name)
    Required. The name that you assigned to this resource monitor. We can delete a resource monitor and then create a new monitor with the same name.

    -mm (monitoring_agent_qmgr_name)
    Optional. The name of the monitoring agent's queue manager. Because the monitoring agent and the source agent of the transfer the monitor triggered must be same, this queue manager is also your source agent's queue manager.

    -mquserid (userID)
    Optional. Specifies the user ID to authenticate with the command queue manager.

    -mqpassword (password)
    Optional. Specifies the password to authenticate with the command queue manager. We must also specify the -mquserid parameter. If you specify -mquserid, but do not specify -mqpassword, we will be prompted to supply the associated password. The password will not be displayed.

    -p (configuration_options)
    Optional. This parameter determines the set of configuration options to use to cancel the transfer. By convention use the name of a non-default coordination queue manager as the input for this parameter. The command then uses the set of properties files associated with this non-default coordination queue manager.

    If we do not specify this parameter, the set of configuration options based on the default coordination queue manager is used.

    -? or -h
    Optional. Displays command syntax.


Example

In this example, the resource monitor MONITOR1 with a monitoring (and file transfer source agent) AGENT1 is deleted:
fteDeleteMonitor -ma AGENT1 -mm QM_JUPITER -mn MONITOR1


Return codes

    0
    Command completed successfully.

    1
    Command ended unsuccessfully.

Parent topic: MFT commands


Related reference


Related information