SMF 123-1 zOS Connect - API Provider
    • 19 Mar 2024
    • 4 Minutes to read
    • Contributors
    • Dark
      Light

    SMF 123-1 zOS Connect - API Provider

    • Dark
      Light

    Article summary

    Introduction

    Using SMF records to monitor requests

    z/OSĀ® Connect EE can be configured to write SMF 123 records, which capture information about individual API provider, API requester and administration requests. This data can be used for auditing, workload monitoring, capacity planning, and problem determination.

    Monitoring API provider and API requester requests
    SMF 123 records have two subtypes and each subtype can have different versions.

    SMF type 123 subtype 1 recordsVersion 1 contains some basic information about both API provider and API requester requests.Version 2 supersedes version 1 and contains more detailed information about each API provider request, including information about which system of record (SOR) the request was sent to. The version 2 record contains data for multiple requests in one record, making it more efficient as the server information is captured once per record rather than for each request.SMF type 123 subtype 2 recordsVersion 2 supersedes subtype 1 version 1 and contains more detailed information about each API requester request, including information about what HTTP endpoint the request was sent to. The version 2 record contains data for multiple requests in one record, making it more efficient as the server information is captured once per record rather than for each request.

    Important: SMF 123 subtype 1 version 2 and SMF 123 subtype 2 version 2 together are known as version 2 of the SMF 123 records. Version 2 records contain data for multiple requests in a single SMF record. Therefore, the record is only written when either of the following conditions is met:

    The server processes the required number of requests to fill a record. Currently this is 20.
    The server is shutdown.
    z/OS Connect EE provides the audit interceptor to capture SMF 123 records, see Configuring the audit interceptor. By default the audit interceptor captures version 1 records. To enable version 2 records, you must specify the required attributes for API provider and API requester.

    CAUTION:
    SMF 123 version 2 records are not a compatible extension of the version 1 records. Therefore, before you select version 2 of the records, check that the tools you use to format SMF 123 records support the version 2 format.

    Monitoring administration requests
    The audit interceptor monitors all administration requests sent to z/OS Connect EE. This includes administration requests for APIs, services and API requester resources.

    Note: All administration requests are classified as API provider requests and are therefore written as SMF 123 subtype 1 records.

    API provider data from SMF type 123 subtype 1 version 2 records.
    The SMF type 123 subtype 1 version 2 record is used to capture enhanced data for individual API provider requests.
    API requester data from SMF type 123 subtype 2 version 2 records.
    The SMF type 123 subtype 2 version 2 record is used to capture enhanced data for individual API requester requests.
    Request data from SMF type 123 subtype 1 version 1 records
    The SMF type 123 subtype 1 version 1 record is used to capture some basic data for individual requests.

    zOS Connect is a product used to make easier the interface between user applications and mainframe, and auditing is made through SMF record 123.

    SMF 123 has 2 subtypes, subtype 1 used to list API Provider fields and subtype 2, used to list API requester fields.

    Both subtypes can be produced with less and simple information, what is called VERSION 1, which is the default, and with more details and with more data (VERSION 2). To produce VERSION 2 SMF records is necessary to modify the configuration in zOS Connect parameters.

    Fields

    Stored in zcoap

    SMF FieldDB Column nameDescriptionUnit
    zcohd_record_typeValue is always ZC01
    SMF123_SIDzcohd_sidSystem ID from the SID parameter
    SMF123_DATEzcohd_recorded_datetimeDate when record was moved into the SMF buffer
    SERVER_SYSTEM (V2)zcohd_server_systemSystem name (CVTSNAME)
    SERVER_SYSPLEX (V2)zcohd_server_sysplexSysplex name (ECVTSPLX)
    SERVER_JOBIDzcohd_server_job_idJob ID of the server (JSABJBID)
    SERVER_JOBNAME (V2)zcohd_server_jobnameJob name of the server (JSABJBNM)
    SERVER_STOKEN (V2)zcohd_server_stokenSToken of the server (ASS-BSTKN)
    SMF123_SERVER_CONFIG_DIR (V2)zcohd_server_config_dirThe path to where server.xml for the server is located, this includes the server name
    SMF123_SERVER_VERSION (V2)zcohd_server_versionVersion of the server <v.r.m.f>
    TIME_ZC_ENTRYzcoap_dttm_zc_entryARRIVAL DATE/TIME, FORMAT dd/mm/yyyy hh:mm:ss.ddd
    TIME_ZC_EXITzcoap_dttm_zc_exitCompletion datetime
    SMF123S1_TIME_SOR_SENTzcoap_dttm_sor_sentDatetime when the request was ready
    SMF123S1_TIME_SOR_RECVzcoap_dttm_sor_recvDatetime when response was received
    SMF123S1_HTTP_RESP_CODEzcoap_http_resp_codeHTTP response code
    SMF123S1_RESP_FLAGSzcoap_http_resp_flagsResponse flags
    SMF123S1_USER_NAMEzcoap_user_nameDistributed or SAF ID
    SMF123S1_USER_NAME_MAPPEDzcoap_user_name_mappedIf a distributed ID was sent on the request and is mapped to a SAF username, then this value is the authenticated SAF username. Otherwise, this value is blank
    SMF123S1_CLIENT_IP_ADDRzcoap_client_api_addrClient IP address
    SMF123S1_API_NAMEzcoap_api_nameAPI name
    SMF123S1_API_VERSIONzcoap_api_versionAPI version
    SMF123S1_SERVICE_NAMEzcoap_service_namez/OS asset name
    SMF123S1_SERVICE_VERSIONzcoap_service_versionz/OS asset version
    SMF123S1_REQ_METHODzcoap_req_methodMethod GET/POST/PUT/DELETE
    SMF123S1_REQ_QUERY_STRzcoap_req_query_strQuery string
    SMF123S1_REQ_TARGET_URIzcoap_req_target_uriTarget URI
    SMF123S1_REQ_PAYLOAD_LENzcoap_req_payload_lenRequest payload lengthbyte
    SMF123S1_RESP_PAYLOAD_LENzcoap_resp_payload_lenResponse payload lengthbyte
    SMF123S1_SOR_REFERENCEzcoap_sor_referenceReference to the element in server.xml that identifies the connection to the system of record
    SMF123S1_SOR_IDENTIFIERzcoap_sor_identifierSystem of record identifier
    SMF123S1_REQ_IDzcoap_req_idRequest identifier that is unique within a z/OS Connect server instance
    SMF123S1_REQ_TYPEzcoap_req_typeRequest Type
    1. UNKNOWN
    2. API
    3. SERVICE
    4. ADMIN
    SMF123S1_SP_NAMEzcoap_sp_nameType of the z/OS asset

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.