9.2.14.1 ahftcl redact
Use the ahftcl redact
command to sanitize sensitive data in
regular files, zip files and directories.
Syntax
Note:
- The
ahftcl redact
command is not supported on Microsoft Windows. - Automatic Service Request Data Collections are not redacted.
ahfctl redact
[-h]
[-i I]
[-o O]
[-m {mask,sanitize}] [-l {system,database,userdata,all} [{system,database,userdata,all} ...]]
Usage
ahfctl redact -i file_name -o out_dir -m mask
ahfctl redact -i dir_name -m sanitize -l system database
Parameters
Table 9-40 ahfctl redact Command Parameters
Parameter | Description |
---|---|
|
Redacts the specified file or directory. Specify a regular file, zip file, or directory. Works with targets in the working directory or full path to the target. |
|
Full path to output directory (If not specified, then defaults to in-place redaction) |
|
Specify a redaction mode. Redaction modes:
|
|
Redact only the subset of entities based on the level
specified.
|
Example 9-37 Redacting a regular file
ahfctl redact -i stbm000004-vm15.tfa_Thu_Jul_22_13_24_56_UTC_2021.zip.txt -m mask
AHF is redacting
/opt/oracle.ahf/data/repository/testcollection/stbm000004-vm15.tfa_Thu_Jul_22_13_24_56_UTC_2021.zip.txt
Successfully redacted file
/opt/oracle.ahf/data/repository/testcollection/owlo000004-vm15.tfa_Thu_Jul_56_53_62_13_UTC_2021.zip.txt
Example 9-38 Redacting a zip file
ahfctl redact -i testzip.zip -o dirtest -l system database
AHF is redacting /opt/oracle.ahf/data/repository/testcollection/testzip.zip
Successfully redacted zip
/opt/oracle.ahf/data/repository/testcollection/dirtest/redacted_testzip.zip
Example 9-39 Redacting a directory
ahfctl redact -i test -m mask -l system userdata
AHF is redacting /opt/oracle.ahf/data/repository/testcollection/test
Successfully redacted dir /opt/oracle.ahf/data/repository/testcollection/test