Procedure
- If your integration node is running on Linux, UNIX, or Windows systems, set up the correct
command environment. For details of how to complete this task, see Setting up a command environment.
- Run one of the following commands:
- To start or stop collecting resource statistics for a specific
integration server, or for all integration servers, run the mqsichangeresourcestats command
with the appropriate parameters.
For example, to start collecting
resource statistics for the default integration server for an
integration node that is named IBNODE, enter the
following
command:
mqsichangeresourcestats IBNODE -c active -e default
For
example, to stop collecting resource statistics for all
integration servers on an integration node that is named
IBNODE, enter the
following
command:
mqsichangeresourcestats IBNODE -c inactive
For further examples, see mqsichangeresourcestats command.
- To check the status of resource collection, run the mqsireportresourcestats command
with the appropriate parameters.
For example, to view status for
the default integration server on
IBNODE,
enter:
mqsireportresourcestats IBNODE -e default
For
further examples, see the mqsireportresourcestats command.
What to do next
You can view the resource statistics in the web user interface; see Viewing resource statistics data in the web user interface.
You can write a program that subscribes to a publication (single XML message)
that returns the resource statistics data. For an example of the publication
message, see Example XML output.