LOGANALYZER Examples shows examples of LOGANALYZER commands.
Table 43. LOGANALYZER Examples
Command |
Result |
---|---|
LOG and LOG ALL |
Retrieves all entries. |
LOG "SUMLOG/281/091701/000207" |
Retrieves the same information as LOG, except the information is from the specified SUMLOG file. |
LOG 5/11/2001 |
Retrieves all entries for the date 5/11/2001. |
LOG 1200 TO 1700 MIX 345 |
Retrieves all entries for mix number 345 from 1200 to 1700. |
LOG 095734 TO 095745 FILE |
Retrieves all file OPEN, CLOSE, and INTERVAL entries from the time period 09:57:34 through 09:57:45. |
LOG ABORT EOT UNSORTED |
Reports in chronological order all programs that terminated abnormally. |
LOG ABORT UNSORTED CREATE "LOG/M" |
Copies in chronological order all the log entries associated with programs that terminated abnormally to a file called LOG/M. |
LOG FILE and LOG IO |
Retrieves all file OPEN, CLOSE, and INTERVAL entries. |
LOG JOB “MYJOB” |
Retrieves all entries for jobs named MYJOB and their tasks. |
RUN *SYSTEM/LOGANALYZER("JOB ""MYJOB"""); |
Retrieves the same entries as LOG JOB “MYJOB”. This example shows the use of a double set of quotation marks for embedded strings in a RUN command. |
LOG NSP |
Retrieves all data comm error records. |
LOG MAINT DC |
Retrieves all data comm I/O error entries. |
LOG MAINT DK |
Retrieves all maintenance log entries for memory disk units. |
LOG MAINT 99 |
Retrieves all maintenance log entries for a peripheral unit with a unit number of 99. |
LOG MAINT MT 97 60 |
Retrieves all maintenance log entries for magnetic tape units 97 and 60. |
LOG IOERRONLY MT 97 60 |
Retrieves maintenance log entries for magnetic tape units 97 and 60. Excludes condition errors such as statistical data dumps and unload complete reports operations from other tape errors. |
LOG MAINT PK IOSUMMARY |
Gives a table summarizing all IOERROR records for all disks. |
LOG IOERRONLY PK IOSUMMARY |
Gives a table summarizing the IOERROR records for all disks and excludes condition errors such as First Actions. |
LOG MAINT PK DUMPEXTRD |
Retrieves all mainframe errors and peripheral errors for disk devices and includes the raw extended result descriptor for each entry. |
LOG 0900 TO 1000 BNAV2 APPEND "SUMLOG/BNA/ENTRIES" |
Retrieves all BNA version 2 entries dated between 9:00 a.m. and 10:00 a.m. of the current day, and inserts them at the end of the already existing file SUMLOG/BNA/ENTRIES. |
LOG MAINFRAME UNSORTED |
Retrieves all mainframe log records and reports them in chronological order rather than sorting them first by type and then by job number. |
LOG JOB 1260 THRU 1380 MAINT |
Retrieves all mainframe error, peripheral error, and hardware configuration log records for jobs numbered within the range 1260 to 1380. |
LOG PRINTER IOSUMMARY |
Lists the table that summarizes IOERROR log entries and sends the report to a printer. |
LOG OPERATOR DS FREE ACQUIRE |
Retrieves all entries which record the use of the system commands DS, FREE, or ACQUIRE. |
LOG ERRORS BOT EOT MSG |
Retrieves all beginning of task, end of task, and system message entries that are associated with tasks that terminated with syntax errors. |
LOG BOJ EOJ BOT EOT MSG FIND "=(XYZ)=" |
Retrieves all beginning of job, end of job, beginning of task, end of task, and system message entries that contain the string (XYZ). |
LOG MSG FIND "=RECOVERY=REMOVED=" |
Retrieves all system message entries that contain both the words RECOVERY and REMOVED. The entries are retrieved only if the word RECOVERY precedes REMOVED. However, the two words can be separated by any amount of text. |
LOG MSGNW (TCPIP BNAV2) |
Reports network messages from the TCP/IP and BNA version 2 networks in a brief format. |
LOG STATUS |
Reports all the log entries generated by tasks that took program dumps, used the SORT intrinsic, or resumed after a suspension. |
LOG MIX 1257 STATUS |
Reports all status entries for the task with mix number 1257. |
LOG T "LOG/OUT" MSG |
Retrieves all system message entries and writes them to the file called LOG/OUT. |
LOG T 'LOG/"OUT.TXT"' MSG |
Retrieves all system message entries and writes them to the file called LOG/"OUT.TXT". |
RUN *SYSTEM/LOGANALYZER ("T 'LOG/ ""OUT.TXT""' MSG") |
Retrieves the same entries as LOG T 'LOG/"OUT.TXT"' MSG. This example shows the use of a double set of quotation marks for embedded strings in a RUN command. |
LOG UC. RESULT SUCCESS |
Retrieves all log records that are successful actions and not related to security, that is, that have been logged with a log result value of SUCCESS (0). |
LOG UC. RESULT FAILURE |
Retrieves all log records that are failed actions and not related to security, that is, that have been logged with a log result value of FAILURE (1). |
LOG UC. RESULT RELEVANT |
Retrieves all log records that are security relevant, that is, that have been logged with a log result value of RELEVANT (2). |
LOG UC. RESULT VIOLATION |
Retrieves all log records that are security violations, that is, that have been logged with a log result value of VIOLATION (3). |
LOG UC. RESULT RELEVANT VIOLATION |
Retrieves all log records that are either security relevant, or security violations, that is, that have been logged with a log result value of either RELEVANT (2) or VIOLATION (3). |