imagetypeコマンド
imagetype
キーワードを指定してコマンドを使用し、イメージ・タイプを追加、削除、変更および管理します。
- rhpctl add imagetype
新しいイメージ・タイプおよびそれに関連付けられたユーザー・アクションを構成します。 - rhpctl allow imagetype
ユーザーまたはロールに対してイメージ・タイプへのアクセス権限を付与します。 - rhpctl delete imagetype
既存のイメージ・タイプを削除します。 - rhpctl disallow imagetype
ユーザーまたはロールからイメージ・タイプへのアクセス権限を削除します。 - rhpctl modify imagetype
イメージ・タイプの構成を変更します。 - rhpctl query imagetype
イメージ・タイプの構成を表示します。
親トピック: RHPCTLのコマンド・リファレンス
rhpctl add imagetype
新しいイメージ・タイプおよびそれに関連付けられたユーザー・アクションを構成します。
構文
rhpctl add imagetype -imagetype image_type -basetype {SOFTWARE |
ORACLEGISOFTWARE | ORACLEDBSOFTWARE | ORACLEGGSOFTWARE}
[-useractions user_action_list]
パラメータ
表A-45 rhpctl add imagetypeコマンドのパラメータ
パラメータ | 説明 |
---|---|
-imagetype image_type |
作成するイメージ・タイプの名前を指定します。 |
-basetype {SOFTWARE | ORACLEGISOFTWARE | ORACLEDBSOFTWARE | ORACLEGGSOFTWARE} |
作成するイメージ・タイプの基となるベース・イメージ・タイプを指定します。Oracle Databaseソフトウェアの場合は |
-useractions user_action_list |
ユーザー・アクションのカンマ区切りリストを指定します。 |
例
新しいイメージ・タイプを追加するには、次のようにします。
rhpctl add imagetype -imagetype DB122_PATCH_TYPE -basetype ORACLEDBSOFTWARE
親トピック: imagetypeコマンド
rhpctl allow imagetype
ユーザーまたはロールに対してイメージ・タイプへのアクセス権限を付与します。
構文
rhpctl allow imagetype -imagetype image_type {-user user_name [-client cluster_name] | -role role_name}
パラメータ
表A-46 rhpctl allow imagetypeコマンドのパラメータ
パラメータ | 説明 |
---|---|
-imagetype image_type |
ソフトウェア・タイプを指定します。Oracleデータベース・ソフトウェアの場合は |
-user user_name |
イメージ・タイプへのアクセス権限を付与するオペレーティング・システム・ユーザーを指定します。このパラメータまたは |
-client cluster_name |
必要に応じて、オペレーティング・システム・ユーザーが属するクライアント・クラスタの名前を指定できます( |
-role role_name |
|
親トピック: imagetypeコマンド
rhpctl delete imagetype
構文
rhpctl delete imagetype -imagetype image_type
使用上のノート
削除するイメージ・タイプを指定します。組込みイメージ・タイプは削除できません。
親トピック: imagetypeコマンド
rhpctl disallow imagetype
構文
rhpctl disallow imagetype -imagetype image_type {-user user_name [-client cluster_name] | -role role_name}
パラメータ
表A-47 rhpctl disallow imagetypeコマンドのパラメータ
パラメータ | 説明 |
---|---|
-imagetype image_type |
ソフトウェア・タイプを指定します。Oracleデータベース・ソフトウェアの場合は |
-user user_name |
イメージ・タイプへのアクセス権限を削除するオペレーティング・システム・ユーザーを指定します。このパラメータまたは |
-client cluster_name |
必要に応じて、オペレーティング・システム・ユーザーが属するクライアント・クラスタの名前を指定できます( |
-role role_name |
|
親トピック: imagetypeコマンド
rhpctl modify imagetype
構文
rhpctl modify imagetype -imagetype image_type -useractions user_action_list
パラメータ
表A-48 rhpctl modify imagetypeコマンドのパラメータ
パラメータ | 説明 |
---|---|
-imagetype image_type |
変更するイメージ・タイプの名前を指定します。Oracle Databaseソフトウェアの場合は |
-useractions user_action_list |
ユーザー・アクションのカンマ区切りリストを指定します。 |
親トピック: imagetypeコマンド
rhpctl query imagetype
構文
rhpctl query imagetype -imagetype image_type [-rhpserver rhps_regex]
パラメータ
表A-49 rhpctl query imagetypeコマンドのパラメータ
パラメータ | 説明 |
---|---|
-imagetype image_type |
問い合せるイメージ・タイプの名前を指定します。Oracle Databaseソフトウェアの場合は |
-rhpserver rhps_regex |
操作を実行する必要があるサーバーのクラスタ名と一致する正規表現を指定します。 |
使用上のノート
問い合せるイメージ・タイプの名前を指定します。Oracle Databaseソフトウェアの場合はORACLEDBSOFTWARE (デフォルト)、Oracle Grid Infrastructureソフトウェアの場合はORACLEGISOFTWARE、それ以外のソフトウェアの場合はSOFTWAREを使用します。カスタム・イメージ・タイプの場合、イメージ・タイプ名を使用します。
-rhpserver
パラメータは操作の実行場所を示し、-server
パラメータは操作の実行内容を示します。-rhpserver
を使用すると、指定した正規表現と名前が一致するサーバーでコマンドが実行されます。-server
が使用されている場合、コマンドは指定されたサーバーに関するものです。たとえば:
-
次のコマンドはローカルで実行され、
peerA
にレプリケートされたイメージ・タイプをリストしますrhpctl query imagetype -server peerA
-
次のコマンドは、
peerA
で実行され、peerA
に構成されているイメージのタイプをリストしますrhpctl query imagetype -rhpserver peerA
-
次のコマンドは、すべてのサーバーで実行され、各サーバーが
peerA
にレプリケートしたイメージ・タイプをリストしますrhpctl query imagetype -server peerA -rhpserver .+'
-rhpserver
オプションを使用してピア・サーバーに対するコマンドを発行する場合、コマンドを実行するユーザーはピア・サーバーの既存のユーザーであり、必要なロールを持っている必要があります。ピア・サーバーのユーザーがローカル・サーバーでコマンドを実行できるようにするには、rhpctl
grant
role
コマンドを実行して必要なロールをピア・サーバー・ユーザーに付与し、ユーザーが属しているピア・サーバーのクラスタ名を指定する必要があります。たとえば:
$ rhpctl grant role -role role_name -user user_name -client cluster_name
複数のユーザーを追加するには、次のコマンドを実行します。
$ rhpctl grant role -client cluster_name -maproles role=user_name[+user_name...][,role=user_name[+user_name...]...]
RHPCTLを使用してロールを付与する詳細は、rhpctl grant roleを参照してください
親トピック: imagetypeコマンド