9.5.1 ahf

Use the ahf command to generate diagnostic analysis report, generate AHF Balance reports, and query the version of AHF running on the local node.

Syntax

ahf category action [options]
category: {analysis,configuration,observer,software,data, security}
  • analysis: Use to analyze an environment for problems and provide recommendations for corrective actions.
  • configuration: Use to change AHF configuration.
  • observer: Use to interact with AHF processes.
  • software: Use to retrieve software information about AHF and Monthly Recommended Patches (MRP).
  • data: Use to retrieve information about AHF repositories.
  • security: Use to manage AHF users.

Parameters

Table 9-124 ahf Command Parameters

Parameter Description

-h, --help

--version, -v

--debug, -d

Show this help and exit.

Queries the version of AHF installed on the local node.

Show additional debug information in log file.

Category: software

  • Action: get-version
  • Options:
    • --component {ahf,tfa,compliance,all}
    • --local

Queries the version of AHF installed on the local node.

Category: software

  • Action:
    • get-mrp-level
    • compare-mrp-level
    • get-latest-mrp-level
    • apply-update
    • get-update-history
    • rollback-update
    • delete-update-backup
    • move
get-mrp-level: gets the Monthly Recommended Patches (MRP) level the Oracle home is at
  • Options:
    • --oracle-home ORACLE_HOME: gets the MRP level for the specified Oracle Home
    • -all: gets the MRP level for all Oracle Home on the system
compare-mrp-level: compares an Oracle home against a specific MRP level to retrieve installed and missing patches
  • Options:
    • --oracle-home ORACLE_HOME: Specify the Oracle home for which you want to query the information for
    • --mrp-level MRP_LEVEL: Specify the MRP level for which you want to check. Default: Latest applicable MRP level.
get-latest-mrp-level: gets the latest MRP level name
  • Option: --ru RU

    Specify the RU for which you want to query information.

apply-update: applies the update provided to the AHF installation on the local node
  • Option: --update-file <zip-file-name>

    Specify the zip file name.

get-update-history: gets information on applied updates.

rollback-update: rolls back the latest update applied to the AHF framework on the local node.

delete-update-backup: deletes the AHF update stored backup directories and their contents.

move: moves the AHF Home directory to a new location.

Category: software

  • Action:
    • validate-downgrade-installer
    • get-upgrade-history
    • downgrade
  • validate-downgrade-installer validate the AHF installer to be downgraded to.
  • get-upgrade-history gets the AHF software upgrade history.
  • downgrade requests AHF downgrade version.

Category: analysis

  • Action: create
  • AHF Insights Options: [--type insights] [--last n{m|h} | --for <DATETIME> | --from <DATETIME> --to <DATETIME>]

Generates AHF Insights analysis report.

Category: analysis

  • Action: create
  • AHF Balance Options: [--type impact] --scope [fleet|cluster|database] --name NAME

Generates AHF Balance reports: Fleet Report, Cluster Report, and Database Report.

Category: analysis

  • Action: explore
  • AHF Scope Options: [--with scope] [--from-file FILE]

Launches exploratory analysis with the specified tool.

Note:

The Autonomous Health Framework Scope (AHF Scope) feature of Cluster Health Advisor (CHA) is deprecated in Oracle Database 23ai.

To better align with evolving customer needs, Oracle is discontinuing AHF Scope and recommends using Autonomous Health Framework Insights (AHF Insights) as the replacement.

When AHF detects issues such as node evictions, instance evictions, or database performance degradation, it provides a comprehensive report through AHF Insights—highlighting the problem, identifying the root cause, and offering recommended actions.

Additionally, the Database Anomalies Advisor presents a timeline view of anomalies across hosts and database instances. Users can drill down into each finding to understand the underlying cause and suggested resolution.

Category: configuration

  • Action: set
  • AHF Balance Options: [--type impact][--connect-string CONNECT-STRING] [--user-name USER-NAME]

Configures a connection to an Oracle Enterprise Manager repository.

Category: data

  • Action: get-repository
  • Options: ,
    • --component {all,compliance,tfa}
    • --local

Retrieves information about AHF repositories.

--local: Retrieves information about AHF repositories only from the local node.

Category: data

  • Action: move
  • Options:
    • --to-json
    • --destination DESTINATION

move moves AHF Data directory to a new location.

Options:
  • --to-json prints the output in JSON format.
  • --destination DESTINATION specifies the destination directory to move AHF Data directory to.

Category: observer

  • Action: status

Retrieves the status of AHF components.

Category: security

Action:
  • add-user
  • remove-user
  • promote-user
  • demote-user
  • grant-role
  • revoke-role
  • list-users
  • reset-users
  • block-user
  • unblock-user

Manages AHF users.

Example 9-124 ahf software get-version --component all

ahf software get-version --component all
AHF version: 24.2.0
Build Timestamp: 20240224222447
TFA version: 24.2.0
Compliance version: 24.2.0
Compliance metadata version: 20240224