+

Search Tips | Advanced Search

fteListMonitors: list MFT resource monitors

Use the fteListMonitors command to list all of the existing resource monitors in a Managed File Transfer network using the command line.


Purpose

The fteListMonitors command lists existing resource monitors. We can filter the command output by specifying an agent name and a resource monitor name.

This command uses the coordination.properties file to connect to the coordination queue manager. For more information, see The MFT coordination.properties file.

We can use the -ox parameter to export a resource monitor to an XML file. For more information on how to use this XML file, see fteCreateMonitor: create an MFT resource monitor.

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


Syntax

fteListMonitors

fteListMonitors-p configuration_options -ma monitoring_agent_name  -mn  monitor_name -v -ox  xml_filename -oddirectory_name-mquseriduserID-mqpasswordpassword


Parameters


Example: list resource monitors

In this example, all resource monitors associated with the monitoring agent (and source agent for the file transfers associated with the monitor) AGENT1 are listed:
fteListMonitors -ma AGENT1 


Example: export one resource monitor to an XML file

In this example, a single resource monitor, MONITOR1, on AGENT1 is exported to the XML file filename1.xml by specifying an XML file name with the -ox parameter:
fteListMonitors -ma AGENT1 -mn MONITOR1 -ox filename1.xml 

Example: export one resource monitor to a specified directory

In this example, a single resource monitor, MONITOR1, on AGENT1 is exported to the directory that is specified by the -od parameter. Except for the difference in the XML file name format, this example is similar to using the -ox parameter.
fteListMonitors -ma AGENT1 -mn MONITOR1 -od /usr/mft/resmonbackup 

Examples: export a batch of resource monitors to an XML file in a specified directory

In all of the following examples, the resource monitors are exported to the directory that is specified by the -od parameter. Each resource monitor definition is saved to separate XML file with a name in the format agent name.monitor name.xml.

In this example, all resource monitors are exported to the specified directory:
fteListMonitors -od /usr/mft/resmonbackup
In this example, all resource monitors on AGENT1 are exported to the specified directory:
fteListMonitors -ma AGENT1 -od /usr/mft/resmonbackup

We can use wildcard matching to define which resource monitors to export by using an asterisk character (*) when you specify a pattern to match to agent names, or monitor names, or both.

In this example, all resource monitors on AGENT1 with names that match the pattern MON* are exported to the specified directory:
fteListMonitors -ma AGENT1 -mn MON* -od /usr/mft/resmonbackup
In this example, all resource monitors on agents with names that match the pattern AGEN* are exported to the specified directory:
fteListMonitors -ma AGEN* -od /usr/mft/resmonbackup
In this example, all resource monitors with names that match the pattern MON* on agents with names that match the pattern AGENT* are exported to the specified directory:
fteListMonitors -ma AGENT* -mn MON* -od /usr/mft/resmonbackup


Return codes