The IBM i OS issues thousands, possibly hundreds of thousands, of messgaes into the QSYSOPR queue every day. The challenge for event monitor software (like iEventMonitor) is figuring out which messages are important, usually through severity or message ID filtering. However, in some cases, a company might want to capture ALL queue activity. While out of scope for active system monitoring, it is possible to report on QSYSOPR activity natively.
To create the message listing, the IBM command is:
DSPMSG MSGQ(QSYSOPR) OUTPUT(*PRINT)
There are several options for filtering the output by message type, severity and others.
To keep a history log of the reports, create a multiple member free format file using a command like this:
CRTPF FILE(MYLIBR/MYLOG) RCDLEN(150) MAXMBRS(*NOMAX)
Then, each day the DSPMSG command is run, it can be followed with this command:
CPYSPLF FILE(QPDSPMSG) TOFILE(MYLIB/MYLOG) SPLNBR(*LAST) TOMBR(LOGmmddyy) MBROPT(*ADD)
Where mmddyy is unique to the date the process is run. This should be able to be set up easily in a CL script. Then, whenever you want to review the log for a given date, a unique member will be in the file to be reviewed.
RELATED POSTS
BROWSE KISCO U
PRODUCT CONTENT