ahf data

Use the ahf data command to retrieve information about AHF repositories.

Syntax

ahf data action [options]
Action: get-repository
Option: --component {all,compliance,tfa}, --local, --to-json
Action: move
Options: --to-json, --destination DESTINATION
Action: get-latest-reports
Options: --to-json, --type TYPE
  • get-repository
    Gets the repository information.

    Options:

    • --to-json
      Prints the output in JSON format.
    • --local
      Gets information about the repositories for the local AHF installation.
    • --component {all,tfa,compliance}
      Gets repository information for the specified component. Valid values are tfa, compliance, and all.
  • move
    Moves the AHF Data directory to a new location.

    Options:

    • --to-json
      Prints the output in JSON format.
    • --destination DESTINATION
      Specifies the destination directory to which the AHF Data directory is moved.
  • get-latest-reports
    Retrieves the latest compliance report.

    Options:

    • --to-json
      Prints the output in JSON format.
    • --type TYPE
      Specifies the compliance report type to retrieve. Valid values are:

      • full-report
      • tier1
ahf data get-repository --component all
tfa
--------------------    -----
Repository parameter    Value
location                /opt/oracle.ahf/data/repository
max_size                6171
size                    7
free_size               6164
status                  OPEN

compliance
--------------------    -----
Repository parameter    Value
location                /opt/oracle.ahf/data/<host_name>/orachk/user_root/output
ahf data get-repository --component tfa
tfa
--------------------    -----
Repository parameter    Value
location                /scratch/repository
max_size                15000
size                    0
free_size               15000
status                  OPEN
ahf data get-repository --component compliance
compliance
--------------------    -----
Repository parameter    Value
location                /opt/oracle.ahf/data/<host_name>/orachk/user_root/output
ahf data get-latest-reports --type compliance
+---------------------------------------------------------------------------------------------+--------------------+-----------+-------------+
|                                                      Report  location                  | Collection Date    |Full report|Compliance Version| +---------------------------------------------------------------------------------------------+--------------------+-----------+-------------+
|/latest_compliance_report/orachk_testnode_orcl_070125_195057.html|01-Jul-2025 19:42:09| False     |25.7.0_20250630   |
+---------------------------------------------------------------------------------------------+--------------------+-----------+-------------+
|/latest_compliance_report/orachk_testnode_orcl_070125_200000.html|01-Jul-2025 20:00:00| True      |25.7.0_20250630   |
+---------------------------------------------------------------------------------------------+--------------------+-----------+-------------+