|
Size: 355
Comment:
|
Size: 1606
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 4: | Line 4: |
| Display altered bytes at the end of any ALT line , after the Tag, "ChgBytes:" ==== Example: ==== |
|
| Line 7: | Line 10: |
| will append the altered bytes to the ALT type log example possible output line. |
==== Output line: ==== |
| Line 14: | Line 14: |
| === -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 ==== logid is the control logid which you can easily find out using fdbstat. following example show logid for STOCK is 9 {{{ fdbstat -v /u/cc/comp/stock.dat Filename flags ssize/ vsize/ bucsiz/ 1stbuc/ # bucs/ lastbuc nulls log release prelen suflen keysize elsize maxnkey lastnod ok ? id alphalen stock.dat MASTER 3072 1024 4096 2 0 1147 9 64 }}} ==== offset ==== offset is the starting byte of the field in the record. which can be found by running align on any dec files in /u/ccr.xx/std/hdrs/ use stock.dec as an example {{{ align /u/ccr.16/std/hdrs/stock.dec }}} in the output you will get a list of in the following formats. {{{ 120 123 4 2 SHTDEC markup 124 127 4 2 SHTDEC supp_cost 128 129 2 2 SMLDEC supdisc 130 131 2 2 SMLDEC duty_rate }}} |
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
logid is the control logid which you can easily find out using fdbstat.
following example show logid for STOCK is 9
fdbstat -v /u/cc/comp/stock.dat
Filename flags ssize/ vsize/ bucsiz/ 1stbuc/ # bucs/ lastbuc nulls log release
prelen suflen keysize elsize maxnkey lastnod ok ? id alphalen
stock.dat MASTER 3072 1024 4096 2 0 1147 9 64
offset
offset is the starting byte of the field in the record. which can be found by running align on any dec files in /u/ccr.xx/std/hdrs/
use stock.dec as an example
align /u/ccr.16/std/hdrs/stock.dec
in the output you will get a list of in the following formats.
120 123 4 2 SHTDEC markup 124 127 4 2 SHTDEC supp_cost 128 129 2 2 SMLDEC supdisc 130 131 2 2 SMLDEC duty_rate
