Use the mqsireportresourcestats command to display current statistics gathering options for resources in the broker.
Use this command to view the status of statistics collection for the resource types listed in Resource statistics data.
You can run this command only if the broker is running.
>>-mqsireportresourcestats--| brokerSpec |----------------------> >--+-----------------------------+--+-------------------+-------> '- -e --integrationServerName-' '- -d --detailLevel-' >--+-------------------+--+---------------------+-------------->< '- -w --timeoutSecs-' '- -v --traceFileName-' brokerSpec |--+- brokerName ----------------+------------------------------| +- -n --brokerFileName--------+ | .-------------------------. | | V | | '-----+- -i --ipAddress-+---+-' +- -p --port------+ '- -q --qMgr------'
Use this option if multiple users want to connect to the same broker, or if you are using advanced connection parameters such as SSL.
To create this file, right-click the broker in the IBM® Integration Explorer and select Export *.broker file. When prompted, navigate to the location in which you want to save the file and enter the file name; the extension .broker is appended automatically when you click Save. Include the location (path) and file name when you specify this parameter. You must ensure that the location is accessible when you run this command.
If you want to run a command that uses SSL to administer a remote broker over a secured channel, you must specify the keystore and truststore password for the connection using the IBM_JAVA_OPTIONS environment variable. See Resolving problems when running commands for further information.
Use this option for connections to remote brokers that do not require advanced connection parameters.
If you choose this option, you must specify at least one of these three parameters; the order in which you specify them is insignificant. You cannot specify each parameter more than once.
Parameters that you omit assume default values:
If you do not specify -e, resource statistics status is reported for all integration servers on the broker.
If you try to connect to a remote broker by specifying the i, p, and q parameters, or by using a connection parameter file (.broker), the command attempts to use WebSphere® MQ Java™ client code. This option is not supported on z/OS, and returns the following error:
BIP1046E: Unable to connect with the broker (name)
The reported reason code is MQRC_ENVIRONMENT_ERROR. You must specify a local queue manager.
If the command completes successfully, one report message per resource type is returned for each integration server specified by the command. Each message has the general format:
BIP8940I Statistics settings for resource type type in integration server integration_server_name is state. [measurement]
where:
Request a report for the integration server default on broker BrokerA for statistics collection for all resources:
mqsireportresourcestats BrokerA -e default
Request a report for all integration servers on broker BrokerA for statistics collection for all resources:
mqsireportresourcestats BrokerA