2.5.3.1 Oracle Autonomous Health Frameworkに自動的にパッチを適用するAHFCTL更新コマンドの実行
update
、setupdate
、getupdate
およびunsetupdate
コマンドを実行するには、AHFインストール・ユーザー権限が必要です。
- ahfctl update
ahfctl update
コマンドを使用して、AHF更新を自動的に適用します。 - ahfctl setupdate
ahfctl setupdate
コマンドを使用して、更新パラメータを設定します。 - ahfctl getupdate
ahfctl getupdate
コマンドを使用して、更新パラメータを取得します。 - ahfctl unsetupdate
ahfctl unsetupdate
コマンドを使用して、更新パラメータの設定を解除します。 - 更新の適用方法
新しいコンプライアンス・チェックおよびSRDCをMOS (My Oracle Support)またはRESTエンドポイントから自動的にダウンロードするようにAHFを構成します。
2.5.3.1.1 ahfctl update
ahfctl update
コマンドを使用して、AHF更新を自動的に適用します。
ノート:
ahfctl update
コマンドを実行するには、AHFインストール・ユーザー権限が必要です。
注意:
ダウンロードしたファイルは、本番にマウントされているファイルシステムにコピーする前に、必ず本番前システムでそのメタデータをテストしてください。- ステージング・サーバーで自動ダウンロードを構成します。
- ダウンロードしたメタデータを本番前システムでテストします。
- すべての本番システムで自動更新を構成します。
- 本番にマウントされているファイル・システムにそのテスト・メタデータzipをコピーして、更新を自動的に適用します。
構文
ahfctl update
[-h]
[-nomos]
[-debug]
パラメータ
表2-1 ahfctl updateコマンドのパラメータ
パラメータ | 説明 |
---|---|
|
MOSを構成しないように指定します。 |
|
デバッグを有効にするには、 |
例2-15 ソフトウェア・ステージングの場所で新しいAHFメタデータ更新が使用可能な場合
ahfctl update
Updated file /opt/oracle.ahf/exachk/.cgrep/versions.dat
Updated file /opt/oracle.ahf/exachk/rules.dat
Updated file /opt/oracle.ahf/exachk/.cgrep/collections.dat
Updated file /opt/oracle.ahf/exachk/messages/check_messages.json
Data files updated to 20220607 from 20220516
Please copy ahf_data_20220607.zip and run the command 'ahfctl applyupdate -updatefile ahf_data_20220607.zip' on the below mentioned nodes
scao05adm08
例2-16 RESTエンドポイント・パラメータが構成され、新しいAHFメタデータ更新がRESTエンドポイントで使用可能な場合
ahfctl update
Applying AHF metedata update...
AHF update zip is not available at stage location /opt/rajeev
Upload configuration check for: ahf_update_loc.
Parameters are configured correctly to upload.
ahf_data_20220607.zip successfully downloaded at /opt/rajeev
Updated file /opt/oracle.ahf/exachk/.cgrep/versions.dat
Updated file /opt/oracle.ahf/exachk/rules.dat
Updated file /opt/oracle.ahf/exachk/.cgrep/collections.dat
Updated file /opt/oracle.ahf/exachk/messages/check_messages.json
Data files updated to 20220607 from 20220601
Please copy ahf_data_20220607.zip and run the command 'ahfctl applyupdate -updatefile ahf_data_20220607.zip' on the below mentioned nodes
scao05adm08
2.5.3.1.2 ahfctl setupdate
ahfctl setupdate
コマンドを使用して、更新パラメータを設定します。
ノート:
ahfctl setupdate
コマンドを実行するには、AHFインストール・ユーザー権限が必要です。
構文
ahfctl setupdate
[-h]
[-all]
[-swstage SWSTAGE]
[-autoupdate AUTOUPDATE]
[-servicename SERVICENAME]
[-fstype FSTYPE]
[-frequency FREQUENCY]
パラメータ
表2-2 ahfctl setupdateコマンドのパラメータ
パラメータ | 説明 |
---|---|
|
すべてのパラメータを構成するように指定します。 |
|
ソフトウェア・ステージングの場所を指定します(たとえば、 |
|
自動更新を有効または無効にするように指定します。デフォルト: |
|
RESTダウンロード・サービスの名前を指定します。デフォルト: |
|
ステージングの場所のファイル・システム・タイプ( |
|
自動更新の頻度を日数の範囲(1から30)で指定します(例: 15)。 |
|
デバッグを有効にするには、 |
例2-17 更新構成の設定
ahfctl setupdate -swstage /opt/oracle.ahf -autoupdate on
例2-18 すべての更新パラメータの設定
ahfctl setupdate -all
Enter autoupdate flag <on/off> : on
Enter software stage location : /scratch/ahf_stage
Enter auto update frequency : 30
AHF autoupdate parameters successfully updated
Successfully synced AHF configuration
例2-19 自動更新の無効化
ahfctl setupdate -autoupdate off
AHF autoupdate parameters successfully updated
Successfully synced AHF configuration
2.5.3.1.3 ahfctl getupdate
ahfctl getupdate
コマンドを使用して、更新パラメータを取得します。
ノート:
ahfctl getupdate
コマンドを実行するには、AHFインストール・ユーザー権限が必要です。
構文
ahfctl getupdate
[-h]
[-all]
[-debug]
パラメータ
表2-3 ahfctl getupdateコマンドのパラメータ
パラメータ | 説明 |
---|---|
|
すべてのパラメータを取得するように指定します。 |
|
デバッグを有効にするには、 |
例2-20 すべての更新パラメータの取得
ahfctl getupdate -all
autoupdate : on
autoupdate.swstage : /opt/oracle.ahf
autoupdate.frequency : 30
autoupdate.servicename : [not set]
autoupdate.fstype : [not set]
2.5.3.1.4 ahfctl unsetupdate
ahfctl unsetupdate
コマンドを使用して、更新パラメータの設定を解除します。
ノート:
ahfctl unsetupdate
コマンドを実行するには、AHFインストール・ユーザー権限が必要です。
構文
ahfctl setupdate
[-h]
[-all]
[-swstage SWSTAGE]
[-autoupdate AUTOUPDATE]
[-servicename SERVICENAME]
[-fstype FSTYPE]
[-frequency FREQUENCY]
パラメータ
表2-4 ahfctl setupdateコマンドのパラメータ
パラメータ | 説明 |
---|---|
|
すべてのパラメータの設定を解除するように指定します。 |
|
ソフトウェア・ステージングの場所の設定を解除するように指定します。 |
|
自動更新フラグの設定を解除するように指定します。 |
|
RESTダウンロード・サービス名の設定を解除するように指定します。 |
|
ステージングの場所のファイル・システム・タイプの設定を解除するように指定します。 |
|
自動更新の頻度の設定を解除するように指定します。 |
|
デバッグを有効にするには、 |
例2-21 単一の更新パラメータの設定解除
ahfctl unsetupdate -swstage
Software stage location successfully removed
Successfully synced AHF configuration
例2-22 すべての更新構成の設定解除
ahfctl unsetupdate -all
AHF update parameters successfully removed
Successfully synced AHF configuration