6.4. CLI を使用して追加の SCAP コンテンツをアップロードする
追加の SCAP コンテンツ (自分で作成したコンテンツ、または他の場所で取得したコンテンツ) を Satellite Server にアップロードできます。Red Hat は、Red Hat から取得した SCAP コンテンツのサポートのみを提供することに注意してください。
前提条件
-
ユーザーアカウントに
create_scap_contents権限を持つロールが割り当てられている。 - SCAP データストリームファイルを取得している。
手順
-
SCAP データストリームファイルを Satellite Server 上のディレクトリー (
/usr/share/xml/scap/my_content/など) に配置します。 Satellite Server で次の Hammer コマンドを実行します。
hammer scap-content bulk-upload --type directory \ --directory /usr/share/xml/scap/my_content/ \ --location "My_Location" \ --organization "My_Organization"
$ hammer scap-content bulk-upload --type directory \ --directory /usr/share/xml/scap/my_content/ \ --location "My_Location" \ --organization "My_Organization"Copy to Clipboard Copied! Toggle word wrap Toggle overflow
検証
- 利用可能な SCAP コンテンツをリスト表示 します。SCAP コンテンツのリストに新しいタイトルが含まれています。