Command reference / sec
CHKOBJITG
Check Object Integrity
Checks the objects owned by a user profile, the objects matching a path name, or all objects on the system for integrity violations: an altered command, a bad digital signature, a wrong domain, a tampered program or module, or a library with incorrect attributes. Objects with a finding are written to the output file in the QASYCHKI file format.
Allowed environments: *ALL.
Positional parameters: 2.
Restrictions
- Audit (*AUDIT) special authority is required (CPF222E).
- A value must be given for either USRPRF or OBJ, not both. This system requires OUTFILE as well, because every finding goes to the database file.
- CHKLIC(*YES/*ONLY) requires OBJ(*SYSTEM) and CHKSIG(*ALL); Licensed Internal Code signatures are not emulated.
Parameters
USRPRF
User profile
Specifies the user profiles whose owned objects are checked. The name may be generic; *ALL checks every profile. Cannot be used with OBJ.
Suggested / special values:
*ALL
OBJ
Object
Specifies the objects to check: *SYSTEM for all objects in all available ASPs, or a path name such as '/QSYS.LIB/MYLIB.LIB/ABC*.*'. Cannot be used with USRPRF.
Suggested / special values:
*SYSTEM
OUTFILE
File to receive output
Specifies the database file to which the findings are written. It is created with the QASYCHKI format when it does not exist; *LIBL and *CURLIB resolve as on other output-file commands. Required on this system.
Qualified parts (object, then library; write LIBRARY/OBJECT)
File
File
Library
Library
Suggested / special values:
*LIBL, *CURLIB
OUTMBR
Output member options
Specifies the member that receives the output and whether existing records are replaced or kept.
*FIRST- The first member of the file receives the records, and is cleared unless *ADD is specified.
*REPLACE- The system clears the existing member and adds the new records.
*ADD- The system adds the records to the end of the existing records.
Elements in order
Member
Member
Suggested / special values:
*FIRST
Replace or add records
Replace or add records
Allowed values:
*REPLACE, *ADD
CHKDMN
Check domain
Specifies whether object domain integrity is checked.
Allowed values:
*YES, *NO
CHKPGMMOD
Check program and module
Specifies whether the integrity of program and module objects is checked.
Allowed values:
*YES, *NO
CHKCMD
Check command
Specifies whether the integrity of command definitions is checked.
Allowed values:
*YES, *NO
CHKSIG
Check signature
Specifies whether the digital signatures of objects that can be signed are checked.
Allowed values:
*SIGNED, *ALL, *NONE
*SIGNED- Objects with a digital signature are checked; a signature that is not valid is logged.
*ALL- All objects that can be signed are checked; an object without a signature is logged as NOSIG.
*NONE- Digital signatures are not checked.
CHKLIB
Check library
Specifies whether the integrity of library attributes is checked.
Allowed values:
*YES, *NO
SCANFS
Scan file systems
Specifies whether scanned file systems are scanned or their existing scan status is returned. This system has no scan exit programs.
Allowed values:
*STATUS, *YES, *NO
SUBTREE
Directory subtree
Specifies whether the contents of a directory named by OBJ are checked. This system checks QSYS.LIB objects only.
Allowed values:
*NONE, *ALL
CHKLIC
Check Licensed Internal Code
Specifies whether Licensed Internal Code signatures are checked. Only valid with OBJ(*SYSTEM) and CHKSIG(*ALL); Licensed Internal Code is not emulated.
Allowed values:
*YES, *NO, *ONLY
Examples
CHKOBJITG USRPRF(JOEPGMR) OUTFILE(SECCHECK) CHKSIG(*ALL)
Checks all objects owned by JOEPGMR and writes the findings, including objects without a signature, to SECCHECK.
CHKOBJITG OBJ('/QSYS.LIB/LIB2.LIB/ABC*.*') OUTFILE(SECCHECK2) OUTMBR(*FIRST *REPLACE)
Checks the objects of LIB2 whose names begin with ABC.
Generated from os/cl/catalog/CHKOBJITG.json and os/cl/help/CHKOBJITG.json.