The collection of accounting information is controlled by a set of queue manager, and queue attributes.
The collection of MQI accounting information is controlled by the queue manager attribute, ACCTMQI. To change the value of this attribute you can use the MQSC command, ALTER QMGR, and specify the parameter, ACCTMQI. This parameters can have the following values:
For example, to enable MQI accounting information collection use the following MQSC command:
ALTER QMGR ACCTMQI(ON)
The collection of queue accounting information is controlled by the queue attribute, ACCTQ, and the queue manager attribute, ACCTQ. To change the value of the queue attribute, you can use the MQSC command, ALTER QLOCAL and specify the parameter ACCTQ.
The queue attribute, ACCTQ, can have the following values:
The queue manager attribute, ACCTQ, can have the following values:
To enable accounting information collection for the queue, Q1, use the following MQSC command:
ALTER QLOCAL(Q1) ACCTQ(ON)
To enable accounting information collection for all queues that specify the queue attribute ACCTQ as QMGR, use the following MQSC command:
ALTER QMGR ACCTQ(ON)
If the queue manager attribute, ACCTQ, is set to NONE, the collection of queue accounting information is disabled for all queues, regardless of the queue attribute ACCTQ.
The collection of both MQI and queue accounting information can also be modified at the connection level by specifying the ConnectOpts parameter on the MQCONNX call. By altering the value of ConnectOpts, it is possible to override the effective value of the queue manager attributes ACCTMQI and ACCTQ.
ConnectOpts can have the following values:
If the value of the queue manager attribute ACCTMQI is not specified as OFF, then this attribute has no effect.
If the value of the queue manager attribute ACCTMQI is not specified as ON, then this attribute has no effect.
If the value of the queue manager attribute ACCTQ is not specified as OFF, then this attribute has no effect.
If the value of the queue manager attribute ACCTQ is not specified as ON, then this attribute has no effect.
These overrides are by disabled by default. To enable them, set the queue manager attribute ACCTCONO to ENABLED. To enable accounting overrides per connection use the following MQSC command:
ALTER QMGR ACCTCONO(ENABLED)
Accounting messages are generated upon the disconnection of the application from the queue manager, either upon the execution of the MQDISC operation, or implicity by the queue manager upon the recognition of the termination of the application.
Intermediate accounting messages are also written for long running WebSphere MQ applications when the interval since the connection was established or since the last intermediate accounting message that was written exceeds the configured interval. The queue manager attribute, ACCTINT, specifies the time, in seconds, after which intermediate accounting messages can be automatically written. Accounting messages are only generated when the application interacts with the queue manager, so applications that remain connected to the queue manager for long periods without executing MQI requests will not generate accounting messages until the execution of the first MQI request following the completion of the accounting interval.
The default accounting interval is 1800 seconds (30 minutes). For example, to change the accounting interval to 900 seconds (15 minutes) use the following MQSC command:
ALTER QMGR ACCTINT(900)
Notices |
Downloads |
Library |
Support |
Feedback
![]() ![]() |
csqzax0595 |