Operations

Find the problem, then look after the system.

The problem log records what failed. IPL attributes, storage reclaim, integrity checks and service tools keep the system in shape.

Record and follow a problem

IBM i keeps a problem log that WRKPRB, DSPPRB, ANZPRB and CHGPRB share. A hardware outage recorded in SST, or an unmonitored function check in a job, creates an entry with its job, program and cause message. Learn400 follows the same lifecycle: *OPENED, *READY after local analysis, *ANSWERED when a disk is restored, then *CLOSED.

A small failing CL program shows the local path. Create the library and source file, add a member FAILED with PDM, then compile and call it. The DLTF fails with CPF2105, the unmonitored escape becomes the CPF9999 function check, and the CPA0701 inquiry ends the program with its default reply C.

CRTLIB APP TYPE(*TEST)
CRTSRCPF FILE(APP/QCLSRC) RCDLEN(112)
PGM
  DLTF FILE(QGPL/ABSENT)
ENDPGM
CRTCLPGM PGM(APP/FAILED) SRCFILE(APP/QCLSRC) SRCMBR(FAILED)
CALL APP/FAILED
WRKPRB STATUS(*OPENED)

The list shows the problem identifier, status, resource or program and description. On the WRKPRB panel, option 2 changes an entry, option 5 displays the details and option 8 works with it; on that Work with Problem display, option 20 closes the problem. Outside a display, DSPPRB prints the same information; its CHGPRB fields change the metadata:

DSPPRB MSGID(CPF999*) PGM(FAILED)
DSPPRB MSGID(CPF999*) PGM(FAILED) OUTPUT(*PRINT)
CHGPRB 0000000001 SEV(2) ASNUSER(QSYSOPR) TEXT('Investigate')
DSPPRB 0000000001 SEV(2 3) ASNUSER(QSYSOPR)

Substitute the identifier shown by your WRKPRB list. ANZPRB ANZTYPE(*LOCAL) opens the analysis panel in an interactive job; option 1 analyzes the selected entry, adds diagnostic details and changes *OPENED to *READY. Restoring the failed resource and closing the problem completes the cycle. Remote analysis and the symptom questionnaire are not implemented.

IPL attributes and queues

DSPIPLA shows the IPL attributes. CHGIPLA changes them for the next IPL; several are one-shot and reset themselves after that IPL. The attended IPL Options panel and the HMC activation path start from the same values.

DSPIPLA
CHGIPLA STRTCP(*NO) CLRJOBQ(*YES) CLROUTQ(*YES) STRPRTWTR(*NO) STRRSTD(*YES)
DSPIPLA OUTPUT(*PRINT)
WRKSPLF

Here the next IPL starts without TCP/IP, clears job and output queues, leaves print writers stopped and ends in restricted state. CLRJOBQ, CLROUTQ, CLRINCJOB and STRRSTD return to *NO after the IPL that uses them, and STRPRTWTR returns to *YES.

Reclaim storage and check objects

RCLSPLSTG DAYS(30)
RCLSPLSTG DAYS(*NONE) ASPGRP(*ALL)
RCLTMPSTG LIB(*ALL) DAYS(*NONE)
CHKOBJITG USRPRF(QSECOFR) OUTFILE(QGPL/SECCHECK) CHKSIG(*ALL)
DSPFFD FILE(QGPL/SECCHECK)

RCLSPLSTG deletes emptied spool storage members that have not been reused for DAYS days. RCLTMPSTG reclaims temporary decompressed copies of IBM-supplied menus and panels and sends CPF3B07 with the amount reclaimed. CHKOBJITG checks program and module data, user command definitions, library attributes and signatures, and writes its findings to a QASYCHKI file.

RCLOBJOWN checks the objects a profile owns and puts any object that is in no library into QRCL, a faster subset of RCLSTG. All subsystems must be inactive and commitment control must not be active, so run it on a restricted system:

RCLOBJOWN USRPRF(QSECOFR)

With subsystems active the command reports CPF8208. That is the documented state check, so it is the expected result when you try it on a running training system.

Service tools and network services

DSPSRVSTS
WRKSRVTBLE
ADDSRVTBLE SERVICE(MYSVC) PORT(9999) PROTOCOL(TCP) TEXT('My service') ALIAS(MYALIAS)
WRKSRVTBLE
RMVSRVTBLE SERVICE(MYSVC) PORT(9999) PROTOCOL(TCP)
WRKASPJOB

DSPSRVSTS shows the servicing job, the job servicing this one and whether a debug session is active. WRKSRVTBLE lists and prints the TCP/IP service table; F6 adds an entry and 4 removes one. DSPSRVSTS and ADDSRVTBLE need *ALLOBJ and *IOSYSCFG respectively. WRKASPJOB lists jobs using independent ASP devices; this system has none, so the list is empty.

Registration facility and function usage

WRKREGINF EXITPNT(QIBM_QTMF_SVR*)
ADDEXITPGM QIBM_QTMF_SVR_LOGON TCPL0100 1 APP/FAILED
WRKREGINF EXITPNT(QIBM_QTMF_SVR*)
RMVEXITPGM QIBM_QTMF_SVR_LOGON TCPL0100 1

An exit point names a call site and a format. Numbered programs run in sequence. The FTP server calls a registered QIBM_QTMF_SVR_LOGON TCPL0100 program at sign-on and uses its decision. Registration is shown immediately; any existing program can be registered for display, but only the FTP TCPL0100 return codes 0-4 are dispatched at runtime.

WRKFCNUSG FCNID(QIBM_QTMF*)
CHGFCNUSG QIBM_QTMF_SERVER_REQ_0 USER(QUSER) USAGE(*DENIED)
WRKFCNUSG FCNID(QIBM_QTMF*)
CHGFCNUSG QIBM_QTMF_SERVER_REQ_0 USER(QUSER) USAGE(*NONE)

Function usage limits an IBM-supplied function by default, group or user. FTP checks QIBM_QTMF_SERVER_REQ_0 (FTP Logon Server) at sign-on. USAGE(*NONE) removes a profile's explicit setting, leaving the default in force.

TCP/IP application attributes

CFGTCP
CHGFTPA NAMEFMT(*PATH) LISTFMT(*UNIX) INACTTIMO(*DFT)
CHGTELNA AUTOSTART(*NO)

CFGTCP shows the current FTP, Telnet, SMTP and interface settings. CHGFTPA and CHGTELNA persist their values in the TCP/IP configuration; the hosted FTP and TN5250 hosts apply the supported attributes to new connections. ALWSSL on either command controls whether TLS is allowed, refused or required. STRTCP and STRTCPSVR SERVER(*AUTOSTART) honour the autostart flags.

What is not supported yet

See also the IPL, service tools and HMC guide and the command pages for WRKPRB, CHGIPLA, CHKOBJITG and WRKREGINF.