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

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.

Type
*GENERIC
Required
No
Length
10
Case
Uppercase

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.

Type
*CHAR
Required
No
Length
512
Case
Uppercase

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.

Type
*QUAL
Required
No
Case
Uppercase
Qualified parts (object, then library; write LIBRARY/OBJECT)

File File

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

OUTMBR Output member options

Specifies the member that receives the output and whether existing records are replaced or kept.

Type
*ELEM
Required
No
Case
Uppercase
*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

Type
*NAME
Required
No
Default
*FIRST
Length
10
Case
Uppercase

Suggested / special values: *FIRST

Replace or add records Replace or add records

Type
*CHAR
Required
No
Default
*REPLACE
Length
8
Case
Uppercase

Allowed values: *REPLACE, *ADD

CHKDMN Check domain

Specifies whether object domain integrity is checked.

Type
*CHAR
Required
No
Default
*YES
Length
4
Case
Uppercase

Allowed values: *YES, *NO

CHKPGMMOD Check program and module

Specifies whether the integrity of program and module objects is checked.

Type
*CHAR
Required
No
Default
*YES
Length
4
Case
Uppercase

Allowed values: *YES, *NO

CHKCMD Check command

Specifies whether the integrity of command definitions is checked.

Type
*CHAR
Required
No
Default
*YES
Length
4
Case
Uppercase

Allowed values: *YES, *NO

CHKSIG Check signature

Specifies whether the digital signatures of objects that can be signed are checked.

Type
*CHAR
Required
No
Default
*SIGNED
Length
7
Case
Uppercase

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.

Type
*CHAR
Required
No
Default
*YES
Length
4
Case
Uppercase

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.

Type
*CHAR
Required
No
Default
*STATUS
Length
7
Case
Uppercase

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.

Type
*CHAR
Required
No
Default
*NONE
Length
5
Case
Uppercase

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.

Type
*CHAR
Required
No
Default
*NO
Length
5
Case
Uppercase

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.

IBM command documentation

Generated from os/cl/catalog/CHKOBJITG.json and os/cl/help/CHKOBJITG.json.