Standalone Logtool for MPE/iX
false : (buff : packed array [1..io_var_len-4] of char);
end; {io_var_rec_type}
The previous record structure is used when logging information to the system log file. This record must be translated
into a LOGTOOL record definition file which will be processed by LOGTOOL and incorporated into its data base. The
following is a listing of a file named LAYLLIO, which contains the record definition for the above PASCAL record.
RECORD`ID 111
RECORD`LENGTH 16224
N`FIELDS 25
RECORD`LABEL "I/O ERROR"
FIELD`FORMAT {1 product_name} (320,string)
{2 pdev} (320,string)
{3 ldev} (320,string)
{4 dev_class_code} (16,int,10)
{5 diag_msg_class} (8,int,10) (8,junk)
{7 llio_stat} (0,int, 10 ) (32,lliostat)
{9 log_all_retries} (7,junk) (1,int,10)
{11 retry_again} (7,junk) (1,int,10)
{13 io_worked} (7,junk) (1,int,10)
{15 run_autodiag} (7,junk) (1,int,10)
{17 retry_count} (16,int,10)
{18 mgr_port_num } (16,junk) (32,int,16)
{20 tran_num} (32,int,16)
{21 hdwr_len} (16,int,10)
{22 reserved} (16,junk)
{23 hdwr } (320,hardstat)
{24 datalen} (16,int,10)
{25 mgrcode} (16,int,10,tag,14688)
{---IO_VAR portion }
VAR`LABELS [ 1 ] "PRODUCT NAME:"
[ 2 ] "PDEV:"
[ 3 ] "LDEV:"
[ 4 ] "DEVICE CLASS:"
[ 5 ] "I/O EVENT CLASS:"
[ 8 ] "LLIO STATUS:"
[ 10 ] "RETRY SCHEME:"
[ 12 ] "WILL RETRY:"
[ 14 ] "I/O RESULT:"
[ 16 ] "RUN AUTODIAG:"
[ 17 ] "RETRY COUNT:"
[ 19 ] "MGR PORT NUM.:"
[ 20 ] "TRANS. NUM. :"
[ 21 ] "# HDWR BYTES:"
[ 23 ] "HARDWARE STATUS:"
[ 24 ] "DATA LEN:"
[ 25 ] "MGR CODE:"
VALUE`LABELS
[ 5 ] (0,"Hardware"; 1,"Software"; 2,"Other")
[ 4 ] (0,"Hard Disc"; 1,"Mag Tape"; 2,"Terminal";
4,"Plotter"; 7,"Bus Converter" 13,"Crd Rdr";
16,"DTC"; 19,"Term. Mux."; 21,"Printer";
22,"CA"; 23,"DA")
[ 10 ] (1,"Log Each Retry"; 0,"Summarized Retries")
[ 12 ] (1,"YES"; 0,"NO" )
[ 14 ] (1,"I/O Successful"; 0,"I/O Failed")
[ 16 ] (1,"YES"; 0,"NO" )
Now that the record definition file for the header is complete, it can be installed using LOGTOOL. The user must enter
the Diagnostic User Interface (DUI) to access LOGTOOL. The following LOGTOOL session will perform this task:
:logtool
************************************************************
***** *****
***** LOGTOOL *****
***** *****
***** (C) Copyright Hewlett Packard Co. 1987 *****
***** All Rights Reserved. *****
***** Version A.00.00 *****
***** *****
************************************************************
Welcome, Today is MON, August 10, 1987 at 12:30 PM