Check Content ConsistencyPermanent link for this heading

The availability and consistency of files in CAS areas can be checked by using the checkcas utility on the file server. For every entry in the CAS area, the content address is read and validated. Information about the results is stored as a structured report in the root of the CAS area.

On the file server the checkcas utility can be executed as follows.


[root@example 1.506]# checkcas -root MMCSVC1/
Fabasoft CheckCAS Version
Copyright (c) Fabasoft R&D GmbH, A-4020 Linz, 1988-2021.
Start at            : 2021-10-21T11:14:11
Directory           : MMCSVC1/
Report              : /var/opt/fabasoft/lib/mmc/1.506/MMCSVC1/logchecks/2021/10-21/check-2021-10-21T11-14-11.json
SKIP: directory /var/opt/fabasoft/lib/mmc/1.506/MMCSVC1/logscans
SKIP: directory /var/opt/fabasoft/lib/mmc/1.506/MMCSVC1/temp
SKIP: directory /var/opt/fabasoft/lib/mmc/1.506/MMCSVC1/logchecks
SKIP: directory /var/opt/fabasoft/lib/mmc/1.506/MMCSVC1/logs
FAIL: 79adac8c671790504a142ab2392cf927
Directory           : MMCSVC1/
Directories scanned : 59923
Directories ignored : 4
Files scanned       : 33471
Files ignored       : 0
Files hashed        : 33471
Files failed        : 1
Thread E/D          : 0/10
Start at            : 2021-10-21T11:14:11
Stop at             : 2021-10-21T11:14:14
Runtime             : 00:00:04 seconds.
Report written      : /var/opt/fabasoft/lib/mmc/1.506/MMCSVC1/logchecks/2021/10-21/check-2021-10-21T11-14-11.json, 451 bytes
Report updated      : /var/opt/fabasoft/lib/mmc/1.506/MMCSVC1/logchecks/latest.json
Check completed with errors, found 1 invalid files.

The latest log file is saved in the logchecks folder.
















         "detail":"Invalid hash."




Failed files are listed in faileddocumenthashes whereby hash indicates the failed file name (without extension) and detail contains the corresponding information.

As administrator it is possible to generate a report based on this log file by executing the COOSYSTEM@1.1:CheckContentConsistency action.


q="SELECT * FROM ContentObject WHERE true";
r.objname = "CheckContentConsistency - Demo";

The generated report object can be found and evaluated in Fabasoft Folio.