ahf configuration
Use the ahf configuration command to change AHF configuration.
AHF 26.3
Store Switch Configuration Using AHF CLI
AHF 26.3 introduces the ability to manage switch configurations directly through the AHF CLI.
Switch configurations can be set, retrieved, checked, or unset using intuitive commands. All configurations are securely stored in the AHF wallet to ensure enhanced security and centralized management. Administrators can configure individual switches, multiple specific nodes, or all switches as needed.
Set Switch Configuration
Set configuration for a single switch:
ahf configuration set --type switch --nodeSet configuration for all switches:
ahf configuration set --type switch --all-nodesSet configuration for specific switches using
--nodes:ahf configuration set --type switch --nodes node1,node2 # OR ahf configuration set --type switch --nodes node1 node2
Unset Switch Configuration
Unset configuration for a single switch:
ahf configuration unset --type switch --nodeUnset configuration for all switches:
ahf configuration unset --type switch --all-nodesUnset configuration for specific switches using
--nodes:ahf configuration unset --type switch --nodes node1,node2 # OR ahf configuration unset --type switch --nodes node1 node2
Get Switch Configuration Status
Get configuration for a single switch:
ahf configuration get --type switch --nodeGet configuration for all switches:
ahf configuration get --type switch --all-nodesGet configuration for specific switches using
--nodes:ahf configuration get --type switch --nodes node1,node2 # OR ahf configuration get --type switch --nodes node1 node2
Check Switch Configuration
Check configuration for a single switch:
ahf configuration check --type switch --nodeCheck configuration for all switches:
ahf configuration check --type switch --all-nodes
AHF 25.8
Automating Excluded Compliance Checks
AHF 25.8 introduces a new mechanism to automate the management of excluded compliance checks.
Previously, to skip certain checks in compliance reports, the excluded_check_ids.txt file had to be manually created on each node.
With this release, the process is automated, and updates are automatically propagated to all nodes.
- No need to manually create or distribute
excluded_check_ids.txtacross nodes. - Excluded check IDs can now be added, listed, replaced, or removed using the
ahf configurationcommands. - Changes are automatically propagated to all nodes.
Use case scenarios:
When
excluded_check_ids.txtexists with valid checksTo print the excluded check IDs:
ahf configuration get --property ahf.compliance.excluded-check-idsExample output:
Excluded checks: ahf.compliance.excluded-check-ids: ['CHECKID1', 'CHECKID2', 'CHECKID3']- When
excluded_check_ids.txtdoes not existTo exclude a check ID:
ahf configuration set --property ahf.compliance.excluded-check-ids --value CHECKID2Example output:
Successfully updated.This creates or updates the
excluded_check_ids.txtfile. - Overwriting the list of excluded checks
If the file already exists with valid checks, you can replace the list:
ahf configuration set --property ahf.compliance.excluded-check-ids --value CHECKID3 --replaceExample output:
Excluded checks: Successfully updated.This replaces the existing list with the new check ID(s).
Unsetting excluded checks
To remove specific excluded checks:
ahf configuration unset --type compliance --excluded-check-ids LIST_OF_EXCLUDED_CHECKSTo unset all excluded checks:
ahf configuration reset --property ahf.compliance.excluded-check-ids
AHF 25.5
Upgrade Configuration Management
The AHF commands for managing upgrade configurations have been replaced with new SDK CLI commands. You are encouraged to transition to the new SDK CLI commands, as the existing ahfctl commands will be deprecated and be removed in a future release.
The legacy ahfctl command line, which is also slated for deprecation, currently provides the following commands for managing AHF upgrades:
ahfctl getupgradeahfctl setupgradeahfctl unsetupgrade
The following new commands are implemented within the ahf configuration command category, offering a simplified way to manage AHF upgrade configurations. However, to ensure compatibility with future releases and to benefit from enhanced functionality, you must adopt the new SDK CLI commands for upgrade management.
To set AHF upgrade configuration parameters, run:
ahf configuration set --type upgrade [--software-stage SOFTWARE_STAGE] [--auto-upgrade AUTO_UPGRADE] [--upgrade-time UPGRADE_TIME][--file-system-type FILE_SYSTEM_TYPE] [-temporary-location TEMPORARY_LOCATION] [--remove-installer REMOVE_INSTALLER] [-frequency FREQUENCY] [--service-name SERVICE_NAME] [--auto-update AUTO_UPDATE]To get AHF upgrade configuration parameter details, run:
ahf configuration get --type upgrade [--to-json]To unset AHF upgrade configuration parameters, run:
ahf configuration unset --type upgrade [--software-stage SOFTWARE_STAGE] [--auto-upgrade AUTO_UPGRADE] [--upgrade-time UPGRADE_TIME][--file-system-type FILE_SYSTEM_TYPE] [-temporary-location TEMPORARY_LOCATION] [--remove-installer REMOVE_INSTALLER] [-frequency FREQUENCY] [--service-name SERVICE_NAME] [--auto-update AUTO_UPDATE]
AHF 25.1
Update Configuration Management
The AHF commands for managing update configurations have been replaced with new SDK CLI commands. You are encouraged to transition to the new SDK CLI commands, as the existing ahfctl commands will be deprecated and be removed in a future release.
The legacy ahfctl command line, which is also slated for deprecation, currently provides the following commands for managing AHF updates:
ahfctl setupdateahfctl getupdateahfctl unsetupdate
The following new commands are implemented within the ahf configuration command category, offering a simplified way to manage AHF update configurations. However, to ensure compatibility with future releases and to benefit from enhanced functionality, you must adopt the new SDK CLI commands for update management.
To set AHF update configuration parameters, run:
ahf configuration set --type update [--all] [--software-stage SOFTWARE_STAGE] [--auto-update AUTO_UPDATE] [--file-system-type FILE_SYSTEM_TYPE] [-frequency FREQUENCY] [--service-name SERVICE_NAME] [--update-time UPDATE_TIME]To get AHF update configuration parameter details, run:
ahf configuration get --type update --allTo unset AHF update configuration parameters, run:
ahf configuration unset [--all] [--software-stage SOFTWARE_STAGE] [--auto-update AUTO_UPDATE] [--file-system-type FILE_SYSTEM_TYPE] [-frequency FREQUENCY] [--service-name SERVICE_NAME] [--update-time UPDATE_TIME]
Syntax: ahf configuration
ahf configuration action [options]
set
Sets the configuration property and value.get
Gets the configuration property and value.unset
Unsets the configuration property and value.check
Checks the configuration.
ahf configuration set
ahf configuration set --type CONFIGURATION_TYPE [OPTIONS]
-h,--help
Show this help and exit.--to-json
Specify to display the output in JSON format.--typeTYPE
Specify the type of configuration to access.--nameNAME
Specify the name of the component or configuration.--propertyNAME
Specify the name of the property to set.--valueVALUE
Specify the value of the property.--type impact
Configure AHF Balance impact analysis.--user-nameUSER_NAME: Specify the Oracle Enterprise Manager Repository user name.Note:
Running this command prompts you to enter the password for the Oracle Enterprise Manager Repository user. The Oracle Enterprise Manager Repository user can be any Enterprise Manager (EM) user with the Target Privilege: View any Target. AHF Balance connects to an EM repository instance as the specified user.
--connect-stringCONNECT_STRING: Specify the connect string for the Oracle Enterprise Manager Repository.For example:
@[//]my EM host[:port][/my AHF EM service_name]Ensure that Transparent Application Failover (TAF) is not enabled for this service.
--type fleet-insights
Configure Fleet Insights.--urlURL: Specify the full Fleet Insights registration URL.--user-nameUSER_NAME: Specify the user name required by the command.--type repository
Configure the AHF repository.--locationLOCATION: Specify a new location for the repository.--sizeSIZE: Specify the maximum size of the repository in MB.--type goldengate
Configure Oracle GoldenGate.--all: Specify to set all parameters interactively.--host-nameHOST_NAME: Specify the fully qualified host name with domain name.--db-nameDB_NAME: Specify the database name.--portPORT: Specify the GoldenGate Service Manager port.--type upload
Configure an upload endpoint.--endpoint-type {https,bugdb,sqlnet,sftp}: Specify the upload endpoint type.--all: Specify to set all parameters interactively.--host-nameHOST_NAME: Specify the fully qualified host name with domain name.--user-nameUSER_NAME: Specify the user name required by the command.--password: Specify to prompt for a password.--urlURL: Specify the full registration or upload URL.--portPORT: Specify the service port number.--store-typeSTORE_TYPE: Specify the store type.--proxyPROXY: Specify the proxy URL.--connect-stringCONNECT_STRING: Specify the connect string for the Oracle Enterprise Manager Repository.--upload-tableUPLOAD_TABLE: Specify the upload table name.--no-authentication: Specify if no authentication is required.--https-tokenHTTPS_TOKEN: Specify the HTTPS token to log in.--https-headerHTTPS_HEADER: Specify the HTTPS header string.--request-typeREQUEST_TYPE: Specify the HTTPS request type.--type cell
Specify a node to configure a cell, or use the--all-nodesoption to configure all cells.For example:
ahf configuration set --type cell --node <nodename> --passwordahf configuration set --type cell --all-nodesNote:
Configurations set through the AHF CLI are securely stored in the AHF wallet.
You can specify a different password for each cell node. The password supplied when you run the
ahf configuration setcommand overrides an already stored password.--type smtp
Configure SMTP.--all: Specify to set allsmtpconfiguration parameters interactively.--host-nameHOST_NAME: Specify the name of the SMTP server, for example, smtphostname.--user-nameUSER_NAME: Specify the name of the SMTP user required by the command or API registration, for example, smtpuser.--password: Specify the password of the SMTP user.--fromFROM_EMAIL: Specify the email address of the sender.--toTO: Specify the email address of the recipient.--portPORT: Specify the port of the SMTP server, for example,44.--ccCC: Specify the CC email address.--bccBCC: Specify the BCC email address.--ssl: Specifytrueto enable SSL andfalseto disable SSL. Default:false.--no-authentication: Specifytrueto enable SMTP authentication andfalseto disable SMTP authentication. Default:false.--type update
Configure AHF automatic updates.--all: Specify to set all update configuration parameters in interactive mode.--software-stageSOFTWARE_STAGE: Specify the software stage location.--auto-updateAUTO_UPDATE: Specify to enable or disableautoupdate. Default:on. Valid values:on|off.--file-system-typeFILE_SYSTEM_TYPE: Specify the stage location file system type.--frequencyFREQUENCY: Specify theautoupdatefrequency in days in the range (1,30), for example,15.--service-nameSERVICE_NAME: Specify the name of the REST download service. Default:ahf_update_loc.--update-timeUPDATE_TIME: Specify the time for the update.--type upgrade
Configure AHF automatic upgrades.--all: Specify to set all upgrade configuration parameters in interactive mode.--software-stageSOFTWARE_STAGE: Specify the software stage location.--auto-upgradeAUTO_UPGRADE: Specify to enable or disableautoupgrade. Default:on. Valid values:on|off.--upgrade-timeUPGRADE_TIME: Specify the time for the upgrade.--file-system-typeFILE_SYSTEM_TYPE: Specify the stage location file system type.--temporary-locationTEMPORARY_LOCATION: Specify the temporary directory where AHF extracts the installation archive. The directory must exist. Default:/tmp.--remove-installerREMOVE_INSTALLER: Specify whether to remove the AHF installer ZIP from the stage location after an automatic upgrade. Valid values:yes|no. By default, AHF does not remove the AHF installer ZIP.--frequencyFREQUENCY: Specify theautoupgradefrequency in days in the range (1,30), for example,15.--service-nameSERVICE_NAME: Specify the name of the REST download service. Default:ahf_upgrade_loc.--auto-updateAUTO_UPDATE: Specify to enable or disableautoupdate. Default:on. Valid values:on|off.--type resource-limit
Configure AHF resource limits.--tool {tfa}: Specify the tool. Currently, onlytfais supported. Default:tfa.--cpuCPU: Specify a floating-point number, rounded to two decimal places, indicating the number of CPUs that can be used.CPU range:
0.5 <= value <= max_valueWhere:
valueis the floating-point number you specify.max_valueis the minimum of4andtotal number of CPUs * 0.75.
--kmemKMEM: Specify an integer in MB indicating the kernel memory that can be used.Kmem range:
1600 <= value <= max_valueWhere:
valueis the integer you specify.max_valueis the minimum of20480andtotal system memory * 0.75.
--swmemSWMEM: Specify an integer in MB indicating the memory plus swap that can be used.SWMEM range:
1600 <= value <= max_valueWhere:
valueis the integer you specify.max_valueis the minimum of20480andtotal system memory * 0.75.
--type switch
Configure switches.--node<nodename>: Sets configuration for a single switch.--all-nodes: Sets configuration for all switches.
Note:
--user-nameis the Oracle Enterprise Manager Repository user name if--type impact--user-nameis the API registration user if--type fleet-insights--user-nameis the upload configuration user if--type upload--user-nameis the GoldenGate service manager user if--type goldengate--nameis the component name if--type repository--nameis the configuration name if--type goldengate
Values supported for --property :
- Repository properties:
reposizeMBrepositorydir
- Global properties:
gather_ahf_feature_usage - User properties:
ahf.insights.max-collection-intervalahf.collectors.enhanced_os_metrics- Resource limit properties:
ahf.tfa.resource-cpuahf.tfa.resource-kmemahf.tfa.resource-swmem- Excluded check IDs:
ahf.compliance.excluded-check-ids
Syntax: ahf configuration get
ahf configuration get [OPTIONS]
--typeTYPE
Specify the type of configuration to get.Valid values:
goldengate: GoldenGate microservice configuration.upload: Upload configuration.
--nameCONFIG_NAME
Specify the unique configuration name for--type goldengateor--type upload.--propertyPROPERTY_NAME
Specify the name of the property.--type upload
Get upload configuration parameters.--endpoint-type {https,bugdb,sqlnet,sftp}: Specify the upload endpoint type.--all: Specify to get all parameters.--host-nameHOST_NAME: Specify the fully qualified host name with domain name.--user-nameUSER_NAME: Specify the user name required by the command.--password: Specify to prompt for a password.--urlURL: Specify the full registration or upload URL.--portPORT: Specify the service port number.--store-typeSTORE_TYPE: Specify the store type.--proxyPROXY: Specify the proxy URL.--connect-stringCONNECT_STRING: Specify the connect string for the Oracle Enterprise Manager Repository.--upload-tableUPLOAD_TABLE: Specify the upload table name.--no-authentication: Specify if no authentication is required.--https-tokenHTTPS_TOKEN: Specify the HTTPS token to log in.--https-headerHTTPS_HEADER: Specify the HTTPS header string.--request-typeREQUEST_TYPE: Specify the HTTPS request type.--type cell
Specify the node name to get the configuration status of a cell, or use the--all-nodesoption to get the configuration status of all cells.For example:
ahf configuration get --type cell --node <nodename>ahf configuration get --type cell --all-nodes
--type smtp
Get SMTP configuration parameters.--all: Specify to get allsmtpconfiguration parameters.--host-nameHOST_NAME: Specify the name of the SMTP server, for example, smtphostname.--user-nameUSER_NAME: Specify the name of the SMTP user required by the command or API registration, for example, smtpuser.--password: Specify the password of the SMTP user.--fromFROM_EMAIL: Specify the email address of the sender.--toTO: Specify the email address of the recipient.--portPORT: Specify the port of the SMTP server, for example,44.--ccCC: Specify the CC email address.--bccBCC: Specify the BCC email address.--ssl: Specifytrueto enable SSL andfalseto disable SSL. Default:false.--no-authentication: Specifytrueto enable SMTP authentication andfalseto disable SMTP authentication. Default:false.--type update
Get AHF update configuration parameters.--all: Specify to get details of all update configuration parameters.--type upgrade
Get AHF upgrade configuration parameters.--all: Specify to get details of all upgrade configuration parameters.--type switch
Get switch configuration.--node<nodename>: Gets configuration for a single switch.--all-nodes: Gets configuration for all switches.
Syntax: ahf configuration check
ahf configuration check [OPTIONS]
--typeTYPE
Specify the type of configuration to check.--to-json
Specify to display the output in JSON format.--nameCONFIG_NAME
Specify the configuration name to check when using--type goldengateor--type upload.--type cell
Specify the node name to validate the configuration of a cell, or use the--all-nodesoption to validate the configuration of all cells.For example:
ahf configuration check --type cell --node <nodename>ahf configuration check --type cell --all-nodes
Note:
Use the
--to-jsonoption to display the cell configuration status in JSON format.--type smtp
Check SMTP configuration parameters.--all: Specify to check allsmtpconfiguration parameters.--host-nameHOST_NAME: Specify the name of the SMTP server, for example, smtphostname.--user-nameUSER_NAME: Specify the name of the SMTP user required by the command or API registration, for example, smtpuser.--password: Specify the password of the SMTP user.--fromFROM_EMAIL: Specify the email address of the sender.--toTO: Specify the email address of the recipient.--portPORT: Specify the port of the SMTP server, for example,44.--ccCC: Specify the CC email address.--bccBCC: Specify the BCC email address.--ssl: Specifytrueto enable SSL andfalseto disable SSL. Default:false.--no-authentication: Specifytrueto enable SMTP authentication andfalseto disable SMTP authentication. Default:false.--type switch
Check switch configuration.--node<nodename>: Checks configuration for a single switch.--all-nodes: Checks configuration for all switches.
Syntax: ahf configuration unset
ahf configuration unset [OPTIONS]
--typeTYPE
Specify the type of configuration to unset.--type fleet-insights
Unset Fleet Insights configuration.--user-nameUSER_NAME: Specify the API registration user.--urlURL: Specify the full Fleet Insights registration URL.--type goldengate
Unset Oracle GoldenGate configuration.--nameCONFIG_NAME: Specify the configuration name.--type upload
Unset upload configuration.--endpoint-type {https,bugdb,sqlnet,sftp}: Specify the upload endpoint type.--all: Specify to unset all parameters.--host-nameHOST_NAME: Specify the fully qualified host name with domain name.--user-nameUSER_NAME: Specify the user name required by the command.--password: Specify to prompt for a password.--urlURL: Specify the full registration or upload URL.--portPORT: Specify the service port number.--store-typeSTORE_TYPE: Specify the store type.--proxyPROXY: Specify the proxy URL.--connect-stringCONNECT_STRING: Specify the connect string for the Oracle Enterprise Manager Repository.--upload-tableUPLOAD_TABLE: Specify the upload table name.--no-authentication: Specify if no authentication is required.--https-tokenHTTPS_TOKEN: Specify the HTTPS token to log in.--https-headerHTTPS_HEADER: Specify the HTTPS header string.--request-typeREQUEST_TYPE: Specify the HTTPS request type.--type cell
Specify the node name to delete the configuration for a cell, or use the--all-nodesoption to delete the configuration for all cells.For example:
ahf configuration unset --type cell --node <nodename>ahf configuration unset --type cell --all-nodes
--type smtp
Unset SMTP configuration parameters.--all: Specify to unset allsmtpconfiguration parameters.--host-nameHOST_NAME: Specify the name of the SMTP server, for example, smtphostname.--user-nameUSER_NAME: Specify the name of the SMTP user required by the command or API registration, for example, smtpuser.--password: Specify the password of the SMTP user.--fromFROM_EMAIL: Specify the email address of the sender.--toTO: Specify the email address of the recipient.--portPORT: Specify the port of the SMTP server, for example,44.--ccCC: Specify the CC email address.--bccBCC: Specify the BCC email address.--ssl: Specifytrueto enable SSL andfalseto disable SSL. Default:false.--no-authentication: Specifytrueto enable SMTP authentication andfalseto disable SMTP authentication. Default:false.--type update
Unset AHF update configuration parameters.--all: Specify to unset all update configuration parameters.--software-stageSOFTWARE_STAGE: Specify the software stage location.--auto-updateAUTO_UPDATE: Specify to enable or disableautoupdate. Default:on. Valid values:on|off.--file-system-typeFILE_SYSTEM_TYPE: Specify the stage location file system type.--frequencyFREQUENCY: Specify theautoupdatefrequency in days in the range (1,30), for example,15.--service-nameSERVICE_NAME: Specify the name of the REST download service. Default:ahf_update_loc.--update-timeUPDATE_TIME: Specify the time for the update.--type upgrade
Unset AHF upgrade configuration parameters.--all: Specify to unset all upgrade configuration parameters.--software-stageSOFTWARE_STAGE: Specify the software stage location.--auto-upgradeAUTO_UPGRADE: Specify to enable or disableautoupgrade. Default:on. Valid values:on|off.--upgrade-timeUPGRADE_TIME: Specify the time for the upgrade.--file-system-typeFILE_SYSTEM_TYPE: Specify the stage location file system type.--temporary-locationTEMPORARY_LOCATION: Specify the temporary directory where AHF extracts the installation archive. The directory must exist. Default:/tmp.--remove-installerREMOVE_INSTALLER: Specify whether to remove the AHF installer ZIP from the stage location after an automatic upgrade. Valid values:yes|no. By default, AHF does not remove the AHF installer ZIP.--frequencyFREQUENCY: Specify theautoupgradefrequency in days in the range (1,30), for example,15.--service-nameSERVICE_NAME: Specify the name of the REST download service. Default:ahf_upgrade_loc.--auto-updateAUTO_UPDATE: Specify to enable or disableautoupdate. Default:on. Valid values:on|off.--type switch
Unset switch configuration.--node<nodename>: Unsets configuration for a single switch.--all-nodes: Unsets configuration for all switches.
Syntax: AHF Balance
ahf configuration set --type CONFIGURATION_TYPE [OPTIONS]
Parameters
ahf configuration set Command Parameters
-h,--help
Show this help and exit.--typeCONFIGURATION_TYPE
Specify the type of configuration (impact) to access.--connect-stringCONNECT_STRING
Specify the connect string for the Oracle Enterprise Manager repository.--user-nameUSER_NAME
Specify the Oracle Enterprise Manager repository user name.
Note:
Running this command will prompt you to enter the password for the Oracle Enterprise Manager repository user. The Oracle Enterprise Manager repository user can be any Enterprise Manager (EM) user with Target Privilege: View any Target. AHF Balance connects to an EM repository instance as the specified user.
Store Exadata Infrastructure Details for Best Practice Checking
The ahf CLI stores the details of Exadata Dom0s, storage servers, and switches. These stored details are subsequently used for Best Practice checks.
AHF may not discover all Exadata infrastructure when run on Dom0. As a result, Best Practice checks might miss peer Dom0s, storage servers, and switches.
The ahf CLI provides the ability to save the details of Exadata Dom0s, storage servers, and switches, using the command:ahf configuration set --type cell --node {nodename} --password. The Best Practice checks will then use this saved configuration for full infrastructure analysis.
AHF discovers peer DomUs from the Oracle Cluster Registry. By merging Oracle Exachk reports from DomU and Dom0, it provides a comprehensive report for the entire Exadata rack.
To merge Oracle Exachk reports, run `exachk -merge *report_1*,*report_2*`.