![]() Standalone Logtool for MPE/iX: CommandsCommand SummaryCommands are inputs executed immediately after they are received. There are three categories of input commands available to the user:
Definitions and ConventionsAll keywords, commands and options may be abbreviated to the shortest number of characters that make the reserved word unique. Delimiters for keywords and options include spaces and/or semicolons. The delimiter for items in a list is a comma. The user may be prompted from time to time for certain data. If one of several specific responses is required (a YES or NO question, for example), the valid responses will be indicated in parentheses. In all instances, a default response is indicated in square brackets. This response may be selected simply by pressing Return. For example, a user who is deleting a system log file might be asked the question:Purge LOG3251.pub.sys (Y/N) [N] ?Valid responses include Y and N. Simply pressing the Return key selects the default response, N. If the text of a command is too long to fit on one line, the user may use continuation lines to complete entry of the command. To accomplish this task, the user simply places an ampersand (&) character as the last character of the line. LOGTOOL will then prompt the user for the rest of the input. A command may consist of numerous continuation lines provided that the total length of the text entered does not exceed 255 characters. For example: LOGTOOL>select log=100/400, 234/599 ;type= 101, 105, 109 & LOGTOOL>name=hp7935,hp7933The LOGTOOL prompt appears slightly different to indicate that a continuation line is expected. Command lines may include comments if desired. The beginning of a comment is indicated by the "{" character. A "}" or Return terminates the comment (i.e., For Return everything after the "{" is ignored). The continuation character "&" within a comment is ignored. For example: LOGTOOL>status { This is a comment } LOGTOOL>select log=1,2 { This is line 1's comment } & LOGTOOL>ldev=4 { Note the "&" above was recognized! }Typing a user interrupt while LOGTOOL is performing a lengthy task (i.e., producing a report or selecting out a subset of error log records) will cause that task to be interrupted. The user may be asked in some cases to choose either to abort or to continue the current task. If the user decides to terminate the task and there was output being directed to a disk file (a report, for example), that file will be closed and preserved as is. Any appropriate cleanup is performed and the user will be returned to the LOGTOOL> prompt. The following notation appears throughout the remainder of this document. This notation is also used when performing the HELP HELP command. Notations Table
ParametersThe following list of parameters will be used to define the functions and options of the LOGTOOL package. The Command Descriptions section of this document makes constant reference to the terms defined here.
Command DescriptionsThis section explains the standard set of LOGTOOL commands available to the user. (An additional set of commands used in connection with Record Definition Files is explained in the section in this document named Record Definition Files )Each description contains the command explanation, syntax definition, parameter definition and an example. DISPLAYLOGThe DISPLAYLOG command displays I/O and diagnostic log entries as they are logged into the host system log file. The user can terminate this command by hitting a user interrupt. This command accepts a parameter which is a list of either LDEV or PDEV numbers of an I/O device(s). If this parameter is given, only the I/O and diagnostic log entries for those devices will be displayed. Otherwise, all I/O and diagnostic log entries will be displayed.Syntax: DISPLAYLOG [;LDEV=<LDEV_list>] [;PDEV=<PDEV_list>]Parameters: LDEV= <DEV_list> - This is a list of logical names for I/O devices for which the user would like to see log entries displayed. Example: LDEV=1,2,5,10 {For MPE/iX} PDEV= <PDEV_list> - This is a list of PDEV numbers for I/O devices for which the user would like to see log entries displayed. Example: PDEV=1.1, 1.2, 1.2.3, 1.2.1, 3.2.1.1Command Example: LOGTOOL>displaylog I/O ERROR PRODUCT NAME: HP7935H PDEV: 8.0.1 LDEV: 2 DEVICE CLASS: Hard Disc I/O EVENT CLASS: Software LLIO STATUS: $DFD700C6 MPE/XL I/O Status: Proc. Num. = -41, Error Num. = -33, Subsystem = 198 RETRY SCHEME: Summarized Retries WILL RETRY: NO I/O RESULT: I/O Failed RUN AUTODIAG: NO RETRY COUNT: 5 MGR PORT NUM.: -82 TRANS. NUM. : 1279 # HDWR BYTES: 20 HARDWARE STATUS: Status = Unit = 0 Volume = 0 No units with status pending >>>>>>>>>> Access Errors <<<<<<<<<< Drive is not ready for access New target address is : Vector address = Cylinder = 0 Head = 0 Sector = 0 Block address = 0 DATA LEN: 52 MGR CODE: 121 STATUS INFORMATION: 0 COMMAND BUFFER: 1 2 3 4 5 6 7 8 9 10 11 12 == == == == == == == == == == == == 1: 40 01 00 0A 20 10 00 00 00 00 00 08 @ . . . . . . . . . . 13: 34 34 34 18 00 00 00 00 02 00 00 00 4 4 4 . . . . . . . . . MSG DESCRIPTOR: 4 MESSAGE ID: -1000 TRANSACTION NUM.: 1277 PORT NUMBER: -82 COMMAND RESIDUE: 0 DATA RESIDUE: -1 STATUS RESIDUE: 0 <hit user interrupt> LOGTOOL> EXITThe EXIT command causes LOGTOOL to terminate returning control to the MPE/iX user interface.Syntax: EXIT Example: LOGTOOL >EXIT LOGTOOL Exiting .... HELPHelp for any of the LOGTOOL commands may be obtained by using the HELP command. Using the SYNTAX option prints only the syntax of the command. Typing HELP all by itself produces a general description and a list of commands. The symbols used in the HELP syntax output are defined in the Notations table.Syntax: HELP [<command name> [;SYNTAX]]Optional Parameters:
LOGTOOL>HELP The System and Memory Log Analysis Tool (LOGTOOL) enables the user to perform numerous functions on the various system log files. These functions include deleting/clearing of log files and displaying the contents of log files. LOGTOOL will allow the user to manipulate two types of log files. o System log files: Contains information logged by the host operating system. o The Memory log file: contains information concering memory errors obtained from memory controller hardware. LOGTOOL is available in multi-user mode, but the user will be required to execute at diagnostic security 1 to perform some functions. LOGTOOL command summary: Command Name Description ================= ================================================= SUSPEND Return control to MPE/iX - Suspend LOGTOOL EXIT Exit LOGTOOL - return to MPE/iX REDO Edit the last line of text entered HELP Gives help on running LOGTOOL LIST List contents of a system error log DISPLAYLOG Display I/O entries as information is logged PURGESYSLOG Delete from disc the specified system error logs PURGEWORK Delete from disc the specified "work" files LAYOUT Read in layout file ALTFIELD Specify which fields are to be displayed in report SELECT Select specified records from system log files STATUS Report on status of all system log files SUMMARIZE Summarize contents of a system log file. SWITCHLOG Cause the system to start a new system log file MEMCLR Clears MEMLOGP log file. MEMTIMER Alter timer value of MEMLOGP process. MEMRPT Display contents of Memory Log File. TYPES Describes System Log File "types" ================= ================================================= Any command, keyword, or option may be entered by specifying the shortest number of characters which makes the name unambiguous. Keywords and options may be separated by spaces and/or semicolons. LOGTOOL> ALTFIELDThe ALTFIELD command allows the user to identify which fields of a log record are to be displayed in a report generated by the LIST command. LOGTOOL will assume that all fields of all record types are to be displayed unless this command is used to indicate otherwise. Disabling or enabling the display of a field will only effect the fields given in the field label list. All other fields within the record types given by the TYPE parameter will remain unchanged. If the ALL reserved word is used with either the DISABLE or ENABLE keywords, all the fields in the record types given by the TYPE parameter will be changed to the appropriate setting. If the format of a record type is redefined by using the LAYOUT command, all fields for that record type will be re-enabled.Syntax: ALTFIELD TYPE=<type list> ;DISABLE = <field label list> | ENABLE = <field label list>Parameters: TYPE=<type list> - The TYPE keyword is used to specify which log record types (id's) the fields given in the DISABLE or ENABLE parameter applies to. Log record Id's range from 0 to 255. If this TYPE is not used, all log record types will be considered. <type list> ::= <type number range> | <type number range>,<type list> <type number range> ::= <type number> | <type number>/<type number> <type number> ::= integer value Ex: TYPE=101,104,106 DISABLE = <field label list> - Specifies which fields are not to be displayed in a report generated by the LIST command. Quotes are only required for field labels which contain embedded blanks. <field label list> ::= <field label range> | <field label range>,<field label list> | ALL <field label range ::= <field label> | <field label>/<field label> <field label> ::= text | "text" Ex: DISABLE="NL CHECKSUM"/"SL CHECKSUM" ENABLE = <field label list> - Specifies which fields are to be displayed in a report generated by the LIST command. Quotes are only required for field labels which contain embedded blanks. <field label list> ::= <field label range> | <field label range>,<field label list> | ALL <field label range ::= <field label> | <field label>/<field label> <field label> ::= text | "text" Ex: ENABLE = PDEV/"LLIO STATUS"Command Example: LOGTOOL> altfield type=111 disable="retry scheme"/"mgr code" LOGTOOL> LAYOUTThe LAYOUT command will allow the user to define the format of a particular log entry, which may be found in the system log file. This command requires special files containing the definition of some log file record entries defined in a special language. Please refer to the Record Definition File Formatting section for more detailed information.Once the record definitions have been accepted, LOGTOOL will display the record entry as specified when performing a LIST command. If any syntax errors are detected by the LAYOUT command, the errors will be displayed to the user and the record definition will not be accepted. Upon completion of the record definition file processing, LAYOUT will display the number of errors detected, the number of record definition accepted and the number of tag definitions accepted. If the APPEND option is given, LOGTOOL will append the new record definitions to the record decoding files (LAYOUTF and LAYMSG). These decoding files are used as a data base of record definitions. The record definitions in the record decoding files will be used by all users when performing a LIST command. If the APPEND option is not given, the record definitions given will be used only by the current session of LOGTOOL and will be lost upon exiting LOGTOOL. During the processing of a record definition file, if a record definition already exists, the user will be prompted to determine if the previous definition should be overwritten. If the answer YES is given, the previous definition will be destroyed. This prompting can be disabled by giving the NOVERIFY option and the overwrite case is assumed. To execute this command, the user must possess at least diagnostic security 1. (It is assumed that the record definition files given are located in the diagnostic directory -- DIAG.SYS on MPE/iX.) Syntax: LAYOUT FILES=<file_list> [;VERIFY | ;NOVERIFY] [;APPEND]Optional Parameters: FILES - <file_list> The FILES keyword is used to specify the names of the record definition files to be processed. File is assumed to reside in the diagnostic directory -- DIAG.SYS on MPE/iX. <file_list> ::= <file_name> | <file_name> , <file_list> Example: FILE=laympexl, layio APPEND - If given, specifies that the record definitions given are to be saved permanently in LOGTOOL's record decoding file. VERIFY|NOVERIFY - Specifies if the user is to be asked to overwrite record definitions which already exist.Example: LOGTOOL>layout file=laytemp;noverify Processing ID 101 ... Processing ID 102 ... Processing ID 103 ... ========================================= End processing of layout file LAYTEMP.DIAG.SYS 0 Errors encountered 3 out of 3 record'IDs were accepted. 0 out of 0 tag'IDs were accepted. LOGTOOL> LISTThe LIST command allows the user to generate a report which will display the contents of the system log files. The user can use the LIST command to display all of the records contained in the system log files, or can specify which individual log records are to be displayed using various command options. The report from the LIST command may be sent to a file, line printer, or to the terminal (default).In order for a log record to be included in the report, it must match all of the selection criteria specified. The user can define the selection criteria by using the TYPE keyword, DATE or TIME options, or field label keywords.
If no selection criteria are given, all log records found will be included in the report. After all the selected log records have been displayed, this report will be terminated with a summary indicating the number of log records selected. Please note that if LOGTOOL cannot find a record definition for a log record type, the entire log record will be displayed in HEX. To execute this command, the user must posses at least diagnostic security level 1. Syntax LIST LOG=<log list> | FILES=<file list> [;OUTFILE=<file name>] [;TYPE=<type list>] [;<field label>=<data list>] [;DATE] [;TIME] [;WIDE] [;HEXDUMP]Parameters: LOG=<log list> - The LOG keyword specifies which log files to base the report on. Use the STATUS command to obtain a list of the system log files available on the host system. <log list> ::= <log number range> | <log number range> , <log list> <log number range> ::= <log number> | <log number>/<log number> <log number> ::= integer value Ex: LOG=100/105, 150 FILES=<file list> - The FILES keyword is optionally used in place of the LOG keyword. The file list must be a list of "work" files (created by the SELECT command). Note: All "work" files are created in the diagnostic directory (DIAG.SYS on MPE/iX). <file list> ::= <file name> | <file name> , <file list> <file name> ::= Alpha-numeric text (starting with an alpha) Ex: FILE=file1,file8,junk,work OUTFILE=<file name> - The OUTFILE keyword lets the user direct the report to a file or the line printer. Note: All files created by using the OUTFILE parameter will reside in the diagnostic directory (DIAG.SYS on MPE/iX). <file name> ::= Alpha-numeric text (starting with an alpha) | LP Ex: OUTFILE=listfile or OUTFILE=lp {Output to printer} TYPE=<type list> - The TYPE keyword is used to specify which log record types (id's) to select for the report. Log record Id's range from 0 to 255. If this TYPE is not used, all log record types will be considered. <type list> ::= <type number range> | <type number range>,<type list> <type number range> ::= <type number> | <type number>/<type number> <type number> ::= integer value Ex: TYPE=101,104,106 <field label>=<data list> - Field label keywords allow the user to select log records based on the data present in the log record. Quotes are only required for field labels and data items which contain embedded blanks or reserved words used as part of the LIST command syntax. If a quote is needed as part of the field label, entering a quote twice ("") will be interpreted as a single quote as part of the field label. For fields which are always displayed as hex arrays or can be displayed as hex arrays by using the HEXDUMP option, the index construct will allow users to select log records by individual array elements. To use the index construct, the field label must be followed by the array element index number enclosed in square brackets. Please note that all arrays start with an element index of 1. The selection criteria specified by a field label keyword will only be met if the data item and the data found in the log record match exactly. If the selection criteria are not met, the record will not be displayed. All field labels and text data items will be upshifted before the evaluation is performed. <field label> ::= text | "text" | text[<index>] | "text"[<index>] <index> ::= integer value starting at 1 <data list> ::= <data item> | <data item> , <data list> <data item> ::= integer value | text | "text" Ex: Ldev=1,7 "PRODUCT NAME"=HP7935 JSNAME=JREPORT "Hardware status"[1]=4 DATE - The DATE option will cause the user to be prompted for a range of dates. Only those log records falling into one of the specified date ranges will be included in the report. Default is the current day. Ex: Enter the starting date [01/01/86] ? 02/02/86 Enter the ending date [<starting date>]? 02/03/86 Do you have more dates (Y/N) [N] ? n TIME - The TIME option will cause the user to be prompted for a range of times. Only those log records falling into one of the specified time ranges will be included in the report. Default is the current time. Ex: Enter the starting time [12:47 PM]? 1:00 PM Enter the ending time [<starting time>]? 5:00 PM Do you have more to enter (Y/N) [N] ? n WIDE - The WIDE option is used when the output is directed to a device which has 120 or more columns. If the output device is LP, this option is automatically set. HEXDUMP - The HEXDUMP option is applicable only for I/O and diagnostic records. If used, the hardware status and diagnostic error stack is dumped in HEX rather than being decoded into text statements.Command Examples: LOGTOOL> list log=1 out=demo Processing LOG0001.PUB.SYS ... Total records checked = 52. Records selected = 52. LOGTOOL>LIST Report Example: The following is an example display of a log file (LOG0039.PUB.SYS) through the LOGTOOL LIST command. SYSTEM ERROR LOG REPORT ======================= Report Date/Time: FRI, APR 27, 1990 - 5:09 PM =============================================================================== TUE, APR 10, 1990 9:11 AM LOG0039.PUB.SYS SYSTEM (PIN 19) CONSOLE LOG (OUTPUT)SYSTEM LOG FILE #39 IS ON USER: MANAGER GROUP: PUB ACCOUNT: SYS JSNAME: =============================================================================== TUE, APR 10, 1990 9:11 AM LOG0039.PUB.SYS SYSTEM (PIN 2) NM FILE CLOSE NUM. LOGICAL READS: 3 NUM. BYTES READ: 2048 NUM. LOGICAL WRITES:1 NUM. BYTES WRITTEN: 256 FILE NAME: PEGCMD GROUP NAME: PEGASUS ACCOUNT NAME: FVSTOOLS CREATOR NAME: MGR USER NAME: MANAGER USER GROUP: PUB USER ACCOUNT: SYS UFID: 1 2 3 4 5 6 7 8 9 10 11 12 == == == == == == == == == == == == 1: 05 5A 00 03 06 0E 6A 13 00 01 B0 B4 . Z . . . . j . . . . . 13: 0C 04 2C A7 03 97 D3 96 . . , . . . . . CLOSE DISP.: No Change OPEN DOMAIN: Old Perm File FILE SIZE (BYTES): 8192 FILE OPEN COUNT: 2 =============================================================================== TUE, APR 10, 1990 9:11 AM LOG0039.PUB.SYS SYSTEM (PIN 19) I/O ERROR PRODUCT NAME: HP7935H PDEV: 8.0.1 LDEV: 2 DEVICE CLASS: Hard Disc I/O EVENT CLASS: Software LLIO STATUS: $DFD700C6 MPE/XL I/O Status: Proc. Num. = -41, Error Num. = -33, Subsystem = 198 RETRY SCHEME: Summarized Retries WILL RETRY: NO I/O RESULT: I/O Failed RUN AUTODIAG: NO RETRY COUNT: 5 MGR PORT NUM.: -82 TRANS. NUM. : 1279 # HDWR BYTES: 20 HARDWARE STATUS: Status = Unit = 0 Volume = 0 No units with status pending >>>>>>>>>> Access Errors <<<<<<<<<<<\esc> Drive is not ready for access New target address is : Vector address = Cylinder = 0 Head = 0 Sector = 0 Block address = 0 DATA LEN: 52 MGR CODE: 121 STATUS INFORMATION: 0 COMMAND BUFFER: 1 2 3 4 5 6 7 8 9 10 11 12 == == == == == == == == == == == == 1: 40 01 00 0A 20 10 00 00 00 00 00 08 @ . . . . . . . . . . 13: 34 34 34 18 00 00 00 00 02 00 00 00 4 4 4 . . . . . . . . . MSG DESCRIPTOR: 4 MESSAGE ID: -1000 TRANSACTION NUM.: 1277 PORT NUMBER: -82 COMMAND RESIDUE: 0 DATA RESIDUE: -1 STATUS RESIDUE: 0 =============================================================================== TUE, APR 10, 1990 9:11 AM LOG0039.PUB.SYS SYSTEM (PIN 19) CONSOLE LOG (OUTPUT)SYSTEM LOG FILE #38 IS 4% FULL USER: MANAGER GROUP: PUB ACCOUNT: SYS JSNAME: =============================================================================== TUE, APR 10, 1990 9:11 AM LOG0039.PUB.SYS #J4 (PIN 40) PROCESS CREATION PROGRAM FILE NAME: PEGCMD.PEGASUS.FVSTOOLS PID INITIATED: 180388626434 PRIORITY: 6911 SPACE ID: 561 PARENT ID: 171798691842 NM_HEAP_SIZE: 81920000 PROCESS CAP BA: YES PROCESS CAP IA: YES PROCESS CAP PM: NO PROCESS CAP MR: NO PROCESS CAP DS: NO PROCESS CAP PH: NO USER: MGR GROUP: SU ACCOUNT: FVSTEST JSNAME: SUSLG01J =============================================================================== TUE, APR 10, 1990 9:11 AM LOG0039.PUB.SYS #J4 (PIN 42) NM FILE CLOSE NUM. LOGICAL READS: 0 NUM. BYTES READ: 0 NUM. LOGICAL WRITES:0 NUM. BYTES WRITTEN: 268 FILE NAME: O124 GROUP NAME: OUT ACCOUNT NAME: HPSPOOL CREATOR NAME: MGR FVSTEST USER NAME: MGR USER GROUP: SU USER ACCOUNT: FVSTEST UFID: 1 2 3 4 5 6 7 8 9 10 11 12 == == == == == == == == == == == == 1: 05 5A 00 03 06 0E 6A 13 00 0D 9E B4 . Z . . . . j . . . . . 13: 32 02 08 26 01 F8 A2 3A 2 . . & . . . : CLOSE DISP.: No Change OPEN DOMAIN: Old Perm File FILE SIZE (BYTES): 524288 FILE OPEN COUNT: 6 =============================================================================== TUE, APR 10, 1990 9:11 AM LOG0039.PUB.SYS #J4 (PIN 42) PROCESS TERMINATION CPU TIME(MILLI-SEC):458 STACK SIZE (8 BITS):393216 HEAP SIZE ( 8 BITS):81920000 CM STACK (16 BITS): 4686 TERMINATION TYPE: Normal USER: MGR GROUP: SU ACCOUNT: FVSTEST JSNAME: SUSLG01J =============================================================================== TUE, APR 10, 1990 9:11 AM LOG0039.PUB.SYS #J4 (PIN 40) PROCESS CREATION PROGRAM FILE NAME: PEGCMD.PEGASUS.FVSTOOLS PID INITIATED: 94489280515 PRIORITY: 6911 SPACE ID: 561 PARENT ID: 171798691842 NM_HEAP_SIZE: 81920000 PROCESS CAP BA: YES PROCESS CAP IA: YES PROCESS CAP PM: NO PROCESS CAP MR: NO PROCESS CAP DS: NO PROCESS CAP PH: NO USER: MGR GROUP: SU ACCOUNT: FVSTEST JSNAME: SUSLG01J =============================================================================== TYPE DESCRIPTION COUNT ====== ==================== ========== 115 CONSOLE LOG 2 105 NM FILE CLOSE 2 111 I/O ERROR 1 141 PROCESS CREATION 2 104 PROCESS TERMINATION 1 ====== ==================== ========== MEMCLRThe MEMCLR command will clear the memory error log file of all data. It is recommended that the user generate a memory report using the MEMRPT command before entering this command. For systems that support a page deallocation table (PDT), the memory file will be cleared and then rebuilt using entries from the PDT. This command will not clear the PDT. To execute this command, the user must possess at least diagnostic security level 1.Syntax: MEMCLRExample: LOGTOOL>memclr LOGTOOL> MEMRPTThe MEMRPT command produces a summary report of the memory errors detected by the memory logging process (MEMLOGP). Error information will be displayed for each memory controller present on the system. To execute this command, the user must possess at least diagnostic security level 1.The following is a list of the types of error information displayed:
For systems that do not support memory page deallocation, this command will always display the entire contents of the memory log file, even if the DETAIL option is not used. Syntax: MEMRPT [OUTFILE=<file name>] [;DETAIL] [;WIDE]Optional Parameters: OUTFILE=<file name> - The output from the command is directed to the user's terminal unless the OUTFILE keyword is present. <file_name> ::= Alphanumeric text (starting with an alpha) | LP Example: OUTFILE=listfile DETAIL - Display the entire contents of the memory log file, including data for errors that did not cause a memory page to be deallocated. WIDE - The WIDE option is used when the output is directed to a device which has 120 or more columns. If the output device is LP, this option is automatically set.Example: LOGTOOL>memrpt outfile=lp LOGTOOL>Memory Report Example The following memory report will be generated from an HP3000/930 system with three memory controllers: MEMORY ERROR LOGGING REPORT SYSTEM START TIME -- WED, JUL 22, 1989, 2:36 PM LAST ERROR CHECK TIME -- WED, JUL 22, 1989, 3:29 PM LOGGING TIME INTERVAL -- 3600 seconds MEMORY CONTROLLER # 1 ----------------------------------------------------------------------------- |SLOT| CHIP | BIT | 1 ST ERROR | LAST ERROR | ERROR | LOG BY | | NUM| ID | NUM | DETECTED AT | DETECTED AT | COUNT | PROCESS | |---------------------------------------------------------------------------| | *** NO MULTI BIT ERRORS HAVE BEEN DETECTED *** | ---------------------------------------------------------------------------- | *** NO SINGLE BIT ERRORS HAVE BEEN DETECTED *** | ----------------------------------------------------------------------------- MEMORY CONTROLLER # 2 ----------------------------------------------------------------------------- |SLOT| CHIP | BIT | 1 ST ERROR | LAST ERROR | ERROR | LOG BY | | NUM| ID | NUM | DETECTED AT | DETECTED AT | COUNT | PROCESS | |---------------------------------------------------------------------------| | A |u3105 |20/ 7| 07/22/87 3:04 PM | 07/22/87 3:05 PM | 3 | MEMLOGP | ----------------------------------------------------------------------------- | *** NO MULTI BIT ERRORS HAVE BEEN DETECTED *** | ----------------------------------------------------------------------------- MEMORY CONTROLLER # 3 ---------------------------------------------------------------------------- |SLOT| CHIP | BIT | 1 ST ERROR | LAST ERROR | ERROR | LOG BY | | NUM| ID | NUM | DETECTED AT | DETECTED AT | COUNT | PROCESS | |---------------------------------------------------------------------------| | *** NO MULTI BIT ERRORS HAVE BEEN DETECTED *** | ---------------------------------------------------------------------------- | *** NO SINGLE BIT ERRORS HAVE BEEN DETECTED *** | ----------------------------------------------------------------------------- MEMTIMERThe MEMTIMER command alters the time interval between successive interrogation of the memory controllers to determine if any memory errors occurred. This error information, from the memory controllers, is logged into the memory log file. The default value (3600 seconds) is retained while the system is down. Altering this timer causes MEMLOGP to update the log file immediately and then periodically thereafter according to the new interval. The user must possess at least diagnostic security 1 to execute this command.Syntax: MEMTIMER SECONDS=<#seconds>Optional Parameters: SECONDS= <#seconds> - The time between memory log scans Example: SEC=3600Example LOGTOOL>memtimer sec=9600 LOGTOOL> PURGESYSLOGThe PURGESYSLOG command will delete from disc the specified system log file(s). Included is a verify mode ( default ) which will ask the user to confirm the deletion of each file specified before the program actually purges it from the system. The user must possess at least diagnostic security 1 to execute this instruction.Syntax: PURGESYSLOG LOG=<log list> [;VERIFY | ;NOVERIFY]Optional Parameters: LOG= <log_list> - The LOG keyword specifies which log files to purge. Example: LOG=1000/1400,3418/3590,3400,4 VERIFY|NOVERIFY - The VERIFY option is default for this command. It causes the user to be prompted before each log file is deleted. If NOVERIFY is selected, the specified log files will be purged without query.Limitations: This command affects only the system log files. Example: LOGTOOL>purgesyslog log=4232/4235 Purge LOG4232.PUB.SYS (Y/N) [N] ? Y ...Deleted LOG4232.PUB.SYS Purge LOG4233.PUB.SYS (Y/N) [N] ? Y ...Deleted LOG4233.PUB.SYS LOG4234.PUB.SYS was missing Purge LOG4235.PUB.SYS (Y/N) [N] ? N ...Kept LOGTOOL> PURGEWORKThis command will delete from disc the specified "work" file(s). These working log files are created by using the SELECT command. There are no naming conventions for these files. LOGTOOL can, however, tell the difference between a "work" file and files of any other type. In otherwords, this is NOT a general file purge command. Included is a verify mode (default) which will ask the user to confirm the deletion of each file specified before the program actually purges it from the system. All work files are currently created in the diagnostic directory (DIAG.SYS on MPE/iX).Syntax: PURGEWORK FILES=<file list> [;VERIFY | ;NOVERIFY]Optional Parameters: FILES= <file_list> - The FILES keyword is used to specify the names of the work files to purge. Example: FILE=stuff,junk,foo VERIFY|NOVERIFY - The VERIFY option is default for this command. It causes the user to be prompted before each work file is deleted. If NOVERIFY is selected, the specified work files will be purged without query.Limitations: Example: LOGTOOL>purgework file=subset1,subset2,junkfile,logtool Purge SUBSET1.DIAG.SYS (Y/N) [N] ? Y ...Deleted SUBSET1.DIAG.SYS SUBSET2.DIAG.SYS does not exist Purge JUNKFILE.DIAG.SYS (Y/N) [N] ? N ...Kept LOGTOOL.DIAG.SYS is not a work file - skipped LOGTOOL> REDOThe REDO command allows you to edit any of the last 4 lines of input entered to LOGTOOL. If redo is given with no parameters, the last command given can be edited. If the "?" is given, a list of the last 4 commands given will be displayed. The user can also give a redo index number or an offset number to indicate which command on the redo stack is to be modified.Syntax: REDO [? | <index> | <offset>]Parameters: ? - Will display redo stack to user. <index> - A positive number of the command to be modified. <offset> - A negative number indicating the offset from the last command given. "redo -1" is equivalent to "redo."The valid edit characters are:
Command Example: LOGTOOL>sel log=1,,4,5 type=11 ldev=1,2 outfile=myoutfile LOG FILE NUMBER EXPECTED. (LTERR 614) LOGTOOL>redo >sel log=1,,4,5 type=11 ldev=1,2 outfile=myoutfile > d >sel log=1,4,5 type=11 ldev=1,2 outfile=myoutfile > i,3 >sel log=1,4,5 type=11 ldev=1,2,3 outfile=myoutfile > ddd >sel log=1,4,5 type=11 ldev=1,2,3 outfile=myfile > 12 >sel log=1,4,5 type=12 ldev=1,2,3 outfile=myfile > LOGTOOL>sel log=1,4,5 type=12 ldev=1,2,3 outfile=myfile ( Logtool now processes the corrected "select" command ... ) SELECTThe SELECT command allows the user to create a "work" file containing a subset of the log records found in the system log files. Currently, the work file will created in the diagnostic directory (DIAG.SYS on MPE/iX).In order for a log record to be included in the work file, it must match all of the selection criteria specified. The user can define the selection criteria by using the TYPE keyword, DATE or TIME options, or field label keywords.
If no selection criteria are given, all log records found will be included in the work file. To execute this command, the user must possess at least diagnostic security level 1. Syntax: SELECT LOG=<log list> ;OUTFILE= <file name> [;TYPE=<type list>] [;<field label>=<data list>] [;DATE] [;TIME] [;APPEND]Parameters: LOG=<log list> - The LOG keyword specifies which log files to base the report on. Use the STATUS command to obtain a list of the system log files available on the host system. <log list> ::= <log number range> | <log number range> , <log list> <log number range> ::= <log number> | <log number>/<log number> <log number> ::= integer value Ex: LOG=100/105, 150 OUTFILE=<file name> - The OUTFILE keyword lets the user specify the work file name. <file_name> ::= Alpha-numeric text (starting with an alpha) Ex: OUTFILE=listfile TYPE=<type list> - The TYPE keyword is used to specify which log record types (id's) to select for the report. Log record Id's range from 0 to 255. If this TYPE is not used, all log record types will be considered. <type list> ::= <type number range> | <type number range>,<type list> <type number range> ::= <type number> | <type number>/<type number> <type number> ::= integer value Ex: TYPE=101,104,106 <field label>=<data list> - Field label keywords allow the user to select log records based on the data present in the log record. Quotes are only required for field labels and data items which contain embedded blanks or reserved words used as part of the SELECT command syntax. If a quote is needed as part of the field label, entering a quote twice ("") will be interpreted as a single quote as part of the field label. For fields which are always displayed as hex arrays or can be displayed as hex arrays by using the HEXDUMP option, the index construct will allow users to select log records by individual array elements. To use the index construct, the field label must be followed by the array element index number enclosed in square brackets. Please note that all arrays start with an element index of 1. The selection criteria specified by a field label keyword will only be met if the data item and the data found in the log record match exactly. All field labels and text data items will be upshifted before the evaluation is performed. <field label> ::= text | "text" | text[<index>] | "text"[<index>] <index> ::= integer value starting at 1 <data list> ::= <data item> | <data item> , <data list> <data item> ::= integer value | text | "text" Ex: Ldev=1,7 "PRODUCT NAME"=HP7935 JSNAME=JREPORT "Hardware status"[1]=4 DATE - The DATE option will cause the user to be prompted for a range of dates. Only those log records falling into one of the specified date ranges will be included in the report. Default is the current date. Ex: Enter the starting date [01/01/86] ? 02/02/86 Enter the ending date [<starting date>]? 02/03/86 Do you have more dates (Y/N) [N] ? n TIME - The TIME option will cause the user to be prompted for a range of times. Only those log records falling into one of the specified time ranges will be included in the report Ex: Enter the starting time [12:47 PM]? 1:00 PM Enter the ending time [<starting time>]? 5:00 PM Do you have more to enter (Y/N) [N] ? n APPEND - The APPEND option will append data to the file specified in the OUTFILE parameter.Command Example: LOGTOOL>select log=1,2 type=100,105 outf=subset1 Processing LOG0001.PUB.SYS ... Processing LOG0002.PUB.SYS ... Total records checked = 109. Records selected = 2. LOGTOOL> STATUSThe STATUS command displays a list of the currently existing system log files. The system log file currently being used by the system is indicated by the presence of a "*" after the file name. If no options are given, only the log file names will be displayed. If the DETAIL option is given, the log file name, the number of records within that log file and the date/time of the first log entry will be displayed.Syntax: STATUS [DETAIL]Optional Parameter: DETAIL - Causes detailed information (# of records and date/time of first log entry) for all of the system log files to be displayed.Example: LOGTOOL>status System Log Files: ================= LOG0001 LOG0002 LOG0003 LOG0004 LOG0005* LOGTOOL>status detail Log File Rec #1 Rec #1 Total Name Date Time #Records ========== ============ ======== ======== LOG0001 11/10/86 10:49 PM 52 LOG0002 11/17/86 12:46 PM 57 LOG0003 0 LOG0004 11/22/86 7:22 AM 10 LOG0005* 12/01/86 8:30 AM 10 LOGTOOL> SUMMARIZEThe SUMMARIZE command allows the user to generate a summary report based on the contents of the system log files. The user can use the SUMMARIZE command to generate a simple summary report, which will display the number of each type of log record present in the log files, or can specify that the content of the system log files are to be summarized based on particular fields of a log record using the FIELD keyword. The summary report from the SUMMARIZE command may be sent to a file, line printer, or to the terminal (default).In order for a log record to be considered during the generation of a summary report, it must match all of the selection criteria specified. The user can define the selection criteria by using the TYPE keyword, DATE or TIME options, or field label keywords.
If no selection criteria is given, all log records present in the system log files will be considered during the generation of the summary report. The SUMMARIZE command can produce two types of summary report.
Syntax: LIST LOG=<log list> | FILES=<file list> [;OUTFILE=<file name>] [;TYPE=<type list>] [;<field label>=<data list>] [;FIELD=<field label list>] [;DATE] [;TIME] [;WIDE] [;HEXDUMP]Parameters: LOG=<log list> - The LOG keyword specifies which log files to base the report on. Use the STATUS command to obtain a list of the system log files available on the host system. <log list> ::= <log number range> | <log number range> , <log list> <log number range> ::= <log number> | <log number>/<log number> <log number> ::= integer value Ex: LOG=100/105, 150 FILES=<file list> - The FILES keyword is optionally used in place of the LOG keyword. The file list must be a list of "work" files (created by the SELECT command). Note: All "work" files are created in the diagnostic directory (DIAG.SYS on MPE/iX). <file list> ::= <file name> | <file name> , <file list> <file name> ::= Alpha-numeric text (starting with an alpha) Ex: FILES=file1,file8,junk,work OUTFILE=<file name> - The OUTFILE keyword lets the user direct the report to a file or the line printer. Note: All files created by using the OUTFILE parameter will reside in the diagnostic directory (DIAG.SYS on MPE/iX) <file name> ::= Alpha-numeric text (starting with an alpha) | LP Ex: OUTFILE=listfile or OUTFILE=lp {Output to printer} TYPE=<type list> - The TYPE keyword is used to specify which log record types (id's) to select for the report. Log record Id's range from 0 to 255. If this TYPE is not used, all log record types will be considered. <type list> ::= <type number range> | <type number range>,<type list> <type number range> ::= <type number> | <type number>/<type number> <type number> ::= integer value Ex: TYPE=101,104,106 <field label>=<data list> - Field label keywords allow the user to select log records based on the data present in the log record. Quotes are only required for field labels and data items which contain embedded blanks or reserved words used as part of the SUMMARIZE command syntax. If a quote is needed as part of the field label, entering a quote twice ("") will be interpreted as a single quote as part of the field label. For fields which are always displayed as hex arrays or can be displayed as hex arrays by using the HEXDUMP option, the index construct will allow users to select log records by individual array elements. To use the index construct, the field label must be followed by the array element index number enclosed in square brackets. Please note that all arrays start with an element index of 1. The selection criteria specified by a field label keyword will only be met if the data item and the data found in the log record match exactly. All field labels and text data items will be upshifted before the evaluation is performed. <field label> ::= text | "text" | text[<index>] | "text"[<index>] <index> ::= integer value starting at 1 <data list> ::= <data item> | <data item> , <data list> <data item> ::= integer value | text | "text" Ex: Ldev=1,7 "PRODUCT NAME"=HP7935 JSNAME=JREPORT "Hardware status"[1]=4 FIELD=<field label list> - The FIELD keyword is used to specify which fields of a log record are to be summarized by the SUMMARIZE command. Quotes are only required for field labels which contain embedded blanks. <field label list> ::= <field label list>,<field label> | <field label> <field label> ::= text | "text" Ex: FIELD=ldev,"Hardware status",jsname DATE - The DATE option will cause the user to be prompted for a range of dates. Only those log records falling into one of the specified date ranges will be included in the report. Default is the current day. Ex: Enter the starting date [01/01/86] ? 02/02/86 Enter the ending date [<starting date>]? 02/03/86 Do you have more dates (Y/N) [N] ? n TIME - The TIME option will cause the user to be prompted for a range of times. Only those log records falling into one of the specified time ranges will be included in the report. Default is the current time. Ex: Enter the starting time [12:47 PM]? 1:00 PM Enter the ending time [<starting time>]? 5:00 PM Do you have more to enter (Y/N) [N] ? n WIDE - The WIDE option is used when the output is directed to a device which has 120 or more columns. If the output device is LP, this option is automatically set. HEXDUMP - The HEXDUMP option is applicable only for I/O and diagnostic records. If used, the hardware status and diagnostic error stack is dumped in HEX rather than being decoded into text statements.Command Examples: LOGTOOL> summarize log=9/10 SUMMARY SYSTEM ERROR LOG REPORT =============================== Report Date/Time: TUE, MAR 31, 1990 - 10:34 AM TYPE DESCRIPTION COUNT ====== ==================== ========== 103 JOB TERMINATION 1 105 FILE CLOSE 3 108 SPOOLING 1 111 I/O ERROR 45 115 CONSOLE LOG 12 ====== ==================== ========== LOGTOOL> summarize log=9/10;type=111;field="hardware status","ldev" SUMMARY SYSTEM ERROR LOG REPORT =============================== Report Date/Time: TUE, MAR 31, 1990 - 10:34 AM ============================================================================= TUE, MAR 31, 1990 10:34 AM LOG0009.PUB.SYS SYSTEM (PIN 28) I/O ERROR (NUMBER OF RECORDS = 44) LDEV: 2 HARDWARE STATUS: Status = Unit = 0 Volume = 0 No units with status pending >>>>>>>>>> Access Errors <<<<<<<<<<<\esc> Drive is not ready for access New target address is : Vector address = Cylinder = 0 Head = 0 Sector = 0 Block address = 0 ============================================================================= TUE, MAR 31, 1990 10:36 AM LOG0009.PUB.SYS SYSTEM (PIN 28) I/O ERROR (NUMBER OF RECORDS = 1) LDEV: 2 HARDWARE STATUS: Status = Unit = 0 Volume = 0 No units with status pending >>>>>>>>>> Access Errors <<<<<<<<<<<\esc> Received an address which exceeds device bounds New target address is : Vector address = Cylinder = 0 Head = 0 Sector = 0 Block address = 0 ============================================================================= TYPE DESCRIPTION COUNT ====== ==================== ========== 111 I/O ERROR 45 ====== ==================== ========== LOGTOOL> SUSPENDThe SUSPEND command returns control to the MPE/iX user interface. LOGTOOL is temporarily suspended and may be resumed by typing EXITSyntax: SUSPENDExample: LOGTOOL>suspend LOGTOOL in SUSPEND - [Type EXIT to continue] MPE_PROMPT> (any MPE/iX commands) MPE_PROMPT> exit LOGTOOL resuming from SUSPEND mode ... LOGTOOL> SWITCHLOGThe SWITCHLOG command causes a new system log file to be opened and the old one to be closed. The LOGTOOL STATUS command may be used to obtain the new log file name. To execute this command, the user must possess at least diagnostic security level 1. {For MPE/iX, the display from the SHOWLOG command and SWITCHLOG command will appear on the system console).Syntax: SWITCHLOGLimitations: This command affects only the system log files. Examples: LOGTOOL>switchlog LOGTOOL> TYPESThe TYPES command lists all the record identifiers currently defined within LOGTOOL. This command is useful for users who wish to display specific types of log records, or need specific information concerning how a log record will be formatted. When this command is executed without any options or keyword, the record ID number and the record label used when the log entry is displayed, will be listed. If the DETAIL option is given, the full definition of the record ID will be given. The information displayed will conform to the data given when the record definition file was processed. If the SUMMARY option is given, a list of all field label keywords, data field labels, and whether the field will be displayed in a LIST report, will be displayed for each log record. If the user needs information for a specific log record, the TYPE= keyword may be used to display information for a specify log record ID.Syntax: TYPES [TYPE=<type list>] [;DETAIL | ;SUMMARY]Parameter: TYPE=<type list> - The TYPE keyword is used to specify which log record types (id's) to display information for. Log record Id's range from 0 to 255. If this TYPE is not used, all log record types will be displayed. <type list> ::= <type number range> | <type number range>,<type list> <type number range> ::= <type number> | <type number>/<type number> <type number> ::= integer value Ex: TYPE=101,104,106 DETAIL - Causes detailed information for each record ID to be displayed. SUMMARY - Causes the field label keywords and data field labels to be displayed for each field of a record ID.Command Example: LOGTOOL> types Type Description ------ --------------------- 100 LOG FAILURE 101 SYSTEM UP 102 JOB INITIATION 103 JOB TERMINATION 104 PROCESS TERMINATION 105 NM FILE CLOSE 106 SYSTEM SHUTDOWN 107 POWER FAILURE 111 I/O ERROR 112 PHY. MOUNT/DISMOUNT 113 LOG. MOUNT/DISMOUNT 114 TAPE LABEL 115 CONSOLE LOG 116 PROGRAM FILE EVENT 120 NM SPOOLING 121 FILE QUARANTINE EVNT 130 AIFs 131 ADD PROCESSOR LAUNCH 134 PASSWORD CHANGE 135 SYS LOGGING CONFIG 136 RESTORE 137 PRINTER ACCESS FAIL 138 ACD CHANGE 139 STREAM INITIATION 140 USER LOGGING 141 PROCESS CREATION 143 CHGROUP 144 FILE OPEN 146 MAINTENANCE REQUEST 148 UPS MONITOR LOG 150 DIAGNOSTIC INFO 151 HPMC 152 LPMC 160 CM FILE CLOSE 205 NM FILE CLOSE 227 CHDIR 228 PROCESS ADOPTION 229 FILE OWNER CHANGE 234 PASSWORD CHANGES 236 RESTORE 238 ACD CHANGE 240 USER LOGGING 241 PROCESS CREATION 242 SECURITY CONFIG CHG 244 FILE OPEN 245 CI COMMAND LOG 305 NM FILE CLOSE 344 FILE OPEN LOGTOOL>
|