9.2.4.2 ahfctl setupgrade

Use the ahfctl setupgrade command to set upgrade parameters.

Syntax

ahfctl setupgrade 
[-h] 
[-all] 
[-swstage SWSTAGE] 
[-autoupgrade AUTOUPGRADE] 
[-upgradetime UPGRADETIME] 
[-fstype FSTYPE]
[-tmp_loc TMP_LOC] 
[-remove_installer REMOVE_INSTALLER] 
[-servicename SERVICENAME]
[-frequency FREQUENCY] 
[-debug] 
[-autoupdate AUTOUPDATE]

Note:

If you are not using the default port (443), then you must configure a custom port using the ahfctl setupload command to upgrade AHF successfully.

Parameters

Table 9-15 ahfctl setupgrade Command Parameters

Parameter Description

-all

Sets all the parameters.

-swstage SWSTAGE

Specify the software stage location.

For example: /opt/oracle.ahf

-autoupgrade AUTOUPGRADE

Specify to turn on or off autoupgrade.

For example: ahfctl setupgrade -autoupgrade <on/off>

-upgradetime UPGRADETIME

Specify the upgradetime in the format [H], [HH], or [HH:MM].

-fstype FSTYPE

Specify the stage location filesystem type.

For example: nfs/acfs/local.

-tmp_loc TMP_LOC

Specify the temporary location directory for AHF to extract the install archive. The specified directory must exist.

Default /tmp

-remove_installer REMOVE_INSTALLER

Specify this flag to remove AHF installer zip at stage location after auto upgrade. By default AHF does not remove the AHF installer zip.

Valid values: yes|no

-servicename

Specify the name of REST download service.

Default: ahf_upgrade_loc

-frequency

Specify the autoupgrade frequency in the range (1,30) days.

For example: 15

-debug

Specify the -debug option to enable debugging.

-autoupdate AUTOUPDATE

Specify to turn on or off to include or remove autoupdate configurations.

Valid values: ON||OFF

For example:
  • ahfctl setupgrade -autoupgrade on -swstage /opt/oracle.ahf -frequency 1 -autoupdate on
  • ahfctl setupgrade -autoupgrade on -swstage /opt/oracle.ahf -frequency 1 -autoupdate off

Example 9-20 Set upgrade configuration

ahfctl setupgrade -swstage /scratch/ahf_stage -autoupgrade on -frequency 21
AHF autoupgrade parameters successfully updated
Successfully synced AHF configuration

Example 9-21 Set all upgrade configuration

ahfctl setupgrade -all
Enter autoupgrade flag <on/off> : on
Enter software stage location : /scratch/ahf_stage
Enter auto upgrade frequency : 30
AHF autoupgrade parameters successfully updated
Successfully synced AHF configuration

Example 9-22 Turn off autoupgrade

ahfctl setupgrade -autoupgrade off
AHF autoupgrade parameters successfully updated
Successfully synced AHF configuration