IBM System Management Facility (SMF) is a component of
IBM's
z/OS
z/OS is a 64-bit operating system for IBM z/Architecture mainframes, introduced by IBM in October 2000. It derives from and is the successor to OS/390, which in turn was preceded by a string of MVS versions.Starting with the earliest:
...
for
mainframe computer
A mainframe computer, informally called a mainframe or big iron, is a computer used primarily by large organizations for critical applications like bulk data processing for tasks such as censuses, industry and consumer statistics, enterpris ...
s, providing a standardised method for writing out records of activity to a file (or data set to use a z/OS term). SMF provides full "instrumentation" of all baseline activities running on that
IBM mainframe
IBM mainframes are large computer systems produced by IBM since 1952. During the 1960s and 1970s, IBM dominated the large computer market. Current mainframe computers in IBM's line of business computers are developments of the basic design of t ...
operating system, including I/O, network activity, software usage, error conditions, processor utilization, etc.
One of the most prominent components of z/OS that uses SMF is the IBM
Resource Measurement Facility {{Short description, Component of IBM z/OS
Resource Measurement Facility (RMF) is a performance monitor for the z/OS Operating System. It also collects data for long-term performance analysis and capacity planning. The product consists of the follo ...
(RMF). RMF provides performance and usage instrumentation of resources such as processor, memory, disk, cache, workload, virtual storage,
XCF and
Coupling Facility
In IBM System/390 and IBM Z mainframe computers, a Coupling Facility or CF is a piece of computer hardware or virtual machine that coordinates multiple processors.
A Parallel Sysplex
relies on one or more Coupling Facilities (CFs). A couplin ...
. RMF is technically a priced (extra cost) feature of z/OS.
BMC BMC may refer to:
Business and organizations
* Beard Miller Company, a US public accounting firm
* BioMed Central, a UK-based scientific publisher
* BMC Software, an American business service management software vendor
* BMC Switzerland, a Swiss b ...
sells a competing alternative, CMF.
SMF forms the basis for many monitoring and automation utilities. Each SMF record has a numbered type (e.g. "SMF 120" or "SMF 89"), and installations have great control over how much or how little SMF data to collect. Records written by software other than IBM products generally have a record type of 128 or higher. Some record types have subtypes - for example Type 70 Subtype 1 records are written by RMF to record CPU activity.
SMF record types
Here is a list of the most common SMF record types:
*RMF records are in the range 70 through to 79. RMF's records are generally supplemented - for serious performance analysis - by Type 30 (subtypes 2 and 3) address space records.
*
RACF
Introduction
RACF, ronounced Rack-Effshort for Resource Access Control Facility, is an IBM software product. It is a security system that provides access control and auditing functionality for the z/OS and z/VM operating systems. RACF was in ...
type 80 records are written to record security issues, i.e. password violations, denied resource access attempts, etc.
TopSecret, another security system, also writes type 80 records.
ACF2
ACF2 (Access Control Facility 2) is a commercial, discretionary access control software security system developed for the MVS (z/OS today), VSE (z/VSE today) and VM (z/VM today) IBM mainframe operating systems by SKK, Inc. Barry Schrager, Eberha ...
provides equivalent information in, by default, type 230 records but this SMF record type can be changed for each installed site.
*SMF type 89 records indicate software product usage and are used to calculate reduced sub-capacity software pricing.
*
IBM Db2
Db2 is a family of data management products, including database servers, developed by IBM. It initially supported the relational model, but was extended to support object–relational features and non-relational structures like JSON and ...
writes type 100, 101 and 102 records, depending on specific Db2 subsystem options.
*
CICS
IBM CICS (Customer Information Control System) is a family of mixed-language application servers that provide online transaction management and connectivity for applications on IBM mainframe systems under z/OS and z/VSE.
CICS family products ...
writes type 110 records, depending on specific CICS options.
*
Websphere MQ
IBM MQ is a family of message-oriented middleware products that IBM launched in December 1993. It was originally called MQSeries, and was renamed ''WebSphere MQ'' in 2002 to join the suite of WebSphere products. In April 2014, it was renamed ''IBM ...
writes type 115 and 116 records, depending on specific Websphere MQ subsystem options.
*
WebSphere Application Server for z/OS
IBM WebSphere Application Server for z/OS is one of the platform implementations of IBM's WebSphere Application Server family. The latest version is Version 9.0.
The open standard interfaces supported by WAS are common across all platforms provid ...
writes type 120. Version 7 introduced a new subtype to overcome shortcomings in the earlier subtype records. The new Version 7
120 Subtype 9 record provide a unified request-based view with lower overhead.
Evolving records
The major record types, especially those created by RMF, continue to evolve at a rapid pace. Each release of z/OS brings new fields. Different processor families and Coupling Facility levels also change the data model.
SMF data recording
SMF can record data in two ways:
* The standard and classical way: Using buffers the SMF
address space
In computing, an address space defines a range of discrete addresses, each of which may correspond to a network host, peripheral device, disk sector, a memory cell or other logical or physical entity.
For software programs to save and retrieve ...
, together with a set of preallocated
datasets (
VSAM Virtual Storage Access Method (VSAM) is an IBM DASD file storage access method, first used in the OS/VS1, OS/VS2 Release 1 (SVS) and Release 2 (MVS) operating systems, later used throughout the Multiple Virtual Storage (MVS) architecture and no ...
datasets) to use when a buffer fills up. The standard name for the datasets is SYS1.MANx, where x is a numerical suffix (starting from 0).
* The relatively new way: Using log streams. SMF utilizes System Logger to record collected data, which improves the writing rate and avoids buffer shortages. It has more flexibility, allowing the z/OS system to straightforwardly record to multiple log streams, and (using keywords on the dump program) allowing z/OS to read a set of SMF data once and write it many times.
Both the two ways can be declared for the use, but only one is used at a time in order to have the other as a fallback alternative.
This data is then periodically dumped to sequential files (for example, tape drives) using the IFASMFDP SMF Dump Utility (or IFASMFDL when using log streams). IFASMFDP can also be used to split existing SMF sequential files and copy them to other files. The two dump programs produce the same output, so it does not involve changes in the SMF records elaboration chain, other than changing the JCL with the call of the new dump utility.
SMF data collection and analysis
SMF data can be collected through IBM Z Operational Log and Data Analytics and IBM Z Anomaly Analytics with Watson. IBM Z Operational Log and Data Analytics collects SMF data, transforms it in a consumable format and then sends the data to third-party enterprise analytics platforms like the Elastic Stack and
Splunk
Splunk Inc. is an American software company based in San Francisco, California, that produces software for searching, monitoring, and analyzing machine-generated data via a Web-style interface.
Its software helps capture, index and correlate ...
, or to the included operational data analysis platform, for further analysis. IBM Z Anomaly Analytics with Watson collects SMF data from multiple IBM Z systems and subsystems, including IBM Db2 for z/OS, IBM CICS Transaction Server for z/OS and IBM MQ for z/OS, uses historical IBM Z metric and log data to build a model of normal operational behavior, and analyzes real-time operational data through comparison with the model of normal operations to detect and alert IT operations of anomalous behavior.
IBM Z Operational Log and Data Analytics collects SMF data in the following three ways, and IBM Z Anomaly Analytics with Watson collects SMF data in the first two of the following ways:
* In log stream mode with SMF in-memory buffer
When SMF is run in the log stream mode, the Common Data Provider in IBM Z Operational Log and Data Analytics and IBM Z Anomaly Analytics with Watson can be configured to collect SMF from the SMF in-memory buffer with the SMF real-time interface.
* In data set recording mode
When SMF is run in the data set recording mode, the Common Data Provider in IBM Z Operational Log and Data Analytics and IBM Z Anomaly Analytics with Watson collect and stream SMF data via a set of SMF user exits.
* In batch mode
The System Data Engine of the Common Data Provider in IBM Z Operational Log and Data Analytics can be run stand-alone in batch mode to read SMF data from a data set and then write it to a file. The System Data Engine batch jobs can be created to write SMF data to data sets and send SMF data to the Data Streamer.
SMF data can be analyzed on the following analytics platforms:
* Z Data Analytics platform, a component of IBM Z Operational Log and Data Analytics, which can help to visualize and search through a large number of Z operational data on a single pane of glass. The dashboards and saved searches provide insights into the operational data and help with early problem detection and problem diagnosis.
* Enterprise platforms such as
Splunk
Splunk Inc. is an American software company based in San Francisco, California, that produces software for searching, monitoring, and analyzing machine-generated data via a Web-style interface.
Its software helps capture, index and correlate ...
, the Elastic Stack,
Apache Kafka
Apache Kafka is a distributed event store and stream-processing platform. It is an open-source system developed by the Apache Software Foundation written in Java and Scala. The project aims to provide a unified, high-throughput, low-latency pla ...
, or Humio that can receive and process operational data for analysis. The platforms like the Elastic Stack and
Splunk
Splunk Inc. is an American software company based in San Francisco, California, that produces software for searching, monitoring, and analyzing machine-generated data via a Web-style interface.
Its software helps capture, index and correlate ...
do not include expert knowledge about z Systems and applications, but users can create or import their own analytics to run against the data.
* IBM Z Anomaly Analytics with Watson, a product that uses both log-based and metric-based machine learning technology to provide anomaly detection.
* IBM Db2 Analytics Accelerator for z/OS, a database application that provides query-based reporting.
* IntelliMagic Vision for z/OS, from IntelliMagic.
The platform can provide insights and recommended actions to the system owners, which are based on expert knowledge about z Systems and applications.
External links
IBM z/OS SMF ReferencePerformance Instrumentation Management Techniques wiki(requires "My developerWorks: Sign in" 20090224)
CA ACF2 for z/OS - 15.0 & 16.0 DocumentationCA Top Secret® for z/OS - 16.0 Documentation
References
* IBM Redbooks. ''ABCs of z/OS System Programming'' Volume 2, International Technical Support Organization, July 2008
* BMC CMF Monitor - http://www.bmc.com/products/proddocview/0,2832,19052_19429_23401_1365,00.html {{Webarchive, url=https://web.archive.org/web/20090314011811/http://www.bmc.com/products/proddocview/0,2832,19052_19429_23401_1365,00.html , date=2009-03-14
* Examples of SMF Reports - http://www.pacsys.com/smf/smf_example_list.htm
* ''Streaming z/OS IT Operational Data with IBM Z Common Data Provider''. Planet Mainframe. August 27, 2020
* IBM Z Operational Log and Data Analytics documentation - https://www.ibm.com/docs/en/z-logdata-analytics/5.1.0?topic=overview-z-common-data-provider
* IBM Z Operational Log and Data Analytics Product Page - https://www.ibm.com/products/z-log-and-data-analytics
* IBM Z Anomaly Analytics with Watson documentation - https://www.ibm.com/docs/en/z-anomaly-analytics/5.1.0
* IBM Z Anomaly Analytics with Watson Product page - https://www.ibm.com/products/z-anomaly-analytics
IBM mainframe operating systems, System Management Facilities