Using System Management Facility

System management facility (SMF) is a z/OS service aid used to collect information from various z/OS subsystems. This information is dumped and reported periodically, for example, hourly. We can use SMF with the WebSphere MQ trace facility to collect data from WebSphere MQ. In this way we can monitor trends, for example, in system utilization and performance, and collect accounting information about each user ID using WebSphere MQ.

To record performance statistics (record type 115) to SMF specify the following in the SMFPRMxx member of SYS1.PARMLIB or with the SETSMF z/OS operator command.

SYS(TYPE(115))

To record accounting information (record type 116) to SMF specify the following in the SMFPRMxx member of SYS1.PARMLIB or with the SETSMF z/OS operator command.

SYS(TYPE(116))

We can turn on or off the recording of accounting information at the queue or queue manager level using the ACCTQ parameter of the DEFINE QLOCAL, DEFINE QMODEL, ALTER QLOCAL, ALTER QMODEL, DEFINE QMGR, or ALTER QMGR commands. See WebSphere MQ Script (MQSC) Command Reference for details of these commands.

To use the z/OS command SETSMF, either PROMPT(ALL) or PROMPT(LIST) must be specified in the SMFPRMxx member. See the OS/390 MVS Initialization and Tuning Reference and the OS/390 MVS System Commands manuals for more information.

You must also set the SMFSTAT and SMFACCT parameters to YES; this is described in Using CSQ6SYSP.

We can specify the interval at which WebSphere MQ collects statistics and accounting data in one of two ways:

SMF must be running before we can send data to it. For more information about SMF, see the MVS System Management Facilities (SMF) manual.