Differences between revisions 1 and 5 (spanning 4 versions)
Revision 1 as of 2012-10-23 00:37:10
Size: 2901
Editor: thog
Comment:
Revision 5 as of 2022-02-21 01:15:17
Size: 789
Editor: 58
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
readmin switches to display modified lines only readmin advance usage.
Line 3: Line 3:
-m<log_id>:<offset>:<size> === -c : display changed byte ===
Display altered bytes at the end of any ALT line , after the Tag, "ChgBytes:"
Line 5: Line 6:
Offset:
Run align on relevant file and find offset there
Size:
use n-number, t-text or nn for digits
Log ID:
#define COMP_LOG 1 // Company file log
#define CRED_LOG 2 // Supplier file log
#define DEBTR_LOG 3 // Customer file log
#define DRTYP_LOG 4 // Customer Type file log
#define GL_LOG 5 // General Ledger file log
#define DISC_LOG 6 // Special Customer/Product Group Discount file log
#define SMAN_LOG 7 // Salesman file log
#define CAT_LOG 8 // Category file log
#define STOCK_LOG 9 // Stock file log
#define STINFO_LOG 10 // Stock Information file log
#define MENU_LOG 11 // Menu file log
#define LAYAAD 12 /* for WB */
#define GRPAAD 13 /* for WB */
#define EMPAAD 14 /* for WB */
#define PRDAAD 15 /* for WB */#define DRINFO_LOG 19 // Customer Information file log
#define BOM_LOG 20 // Bills of Material file log
#define CAT_CNTL_LOG 21 // Cat control file log
#define SIZE_LOG 22 // Size file log
#define BRANCH_LOG 23 // Branch file log
#define EMP_LOG 24 // Employee file log
#define GLSUM_LOG 25 // General Ledger Summary Totals file log
#define GLSTAND_LOG 26 // General Ledger Standing Journals file log
#define CRTYP_LOG 27 // Supplier Type file log
#define PEDATE_LOG 28 // Period End Date file log
#define CRCARD_LOG 29 // Credit Card Hot List file log
#define COMM_LOG 30 // Comms file log
#define CONTL_LOG 31 // Company control file log
#define CRED_CNTL_LOG 32 // Supplier control file log
#define DEBTR_CNTL_LOG 33 // Customer control file log
#define GL_CNTL_LOG 34 // General Ledger control file log
#define TERMINAL_LOG 35 // Terminal details (contrl.dat)
#define SALESA_CNTL_LOG 36 // Sales Analysis control file log#define PRINTER_LOG 39 // Printer file log
#define TERM_CNTL_LOG 40 // Terminal control file log
#define BUTTON_LOG 41 // Button file log
#define DEMOG_LOG 42 // Demographic Questions and Responses
#define OPGRP_LOG 43 // Operator group file log
#define TERMS_LOG 44 // Terms record file log
#define TRAN_LOG 45 // Transaction file log
#define BRANCH_CNTL_LOG 46 // Discount/Layout/PettyCash control file log
#define COLOUR_LOG 47 // Colour file log
#define FREIGHT_LOG 48 // freight rate table log record
#define SURVEY_LOG 49 // survey responses log record
==== Example: ====
{{{
readmin -c
}}}
==== Output line: ====
{{{
160222 09:17:00 cc 10 stpost Alt STOCK_LOG 1 1002595 ECLIPSE CHAIR YELLOW CODE FABRIC 2609 ChgBytes: 124-125,3076-3077,3172,3333-3334,3336
}}}
=== -f <filename> : specify input log file ===
==== Example: ====
{{{
readmin -f log.22feb17-0
}}}
=== -m <logid:offset:datatype> ===
Search the log file for Alter logs, that changed a paticular field on one type of record.
Line 53: Line 22:
#define STOCK_CNTL_LOG 37 // Stock control file log
#define PRNTR_CNTL_LOG 38 // Printer type file log
logid is the control log identifier which you can easily find out using fdbstat.
Line 56: Line 24:
#define ACCAAD 16 /* for WB */
#define SCAAD 17 /* for WB */
#define CRINFO_LOG 18 // Supplier Information file log
{{{
fdbstat -v /u/cc/comp/file.dat
}}}
example out of fdbstat

{{{
}}}

readmin advance usage.

-c : display changed byte

Display altered bytes at the end of any ALT line , after the Tag, "ChgBytes:"

Example:

readmin -c

Output line:

160222 09:17:00  cc       10   stpost    Alt  STOCK_LOG  1  1002595         ECLIPSE CHAIR YELLOW CODE FABRIC              2609 ChgBytes: 124-125,3076-3077,3172,3333-3334,3336

-f <filename> : specify input log file

Example:

readmin -f log.22feb17-0

-m <logid:offset:datatype>

Search the log file for Alter logs, that changed a paticular field on one type of record.

logid is the control log identifier which you can easily find out using fdbstat.

fdbstat -v /u/cc/comp/file.dat

example out of fdbstat

readmin (last edited 2022-02-21 03:02:38 by 58)