5.16. 创建同步计划

同步计划检查并更新计划的日期和时间中的内容。在 Red Hat Satellite 6 中,您可以创建同步计划,并将产品分配给计划。

要使用 CLI 而不是 Web UI,请参阅 CLI 过程

流程

  1. 在 Satellite Web UI 中,导航到 Content > Sync Plans,再点击 New Sync Plan
  2. Name 字段中输入计划的名称。
  3. Description 字段中输入计划的描述。
  4. Interval 列表中,选择要运行计划的时间间隔。
  5. Start DateStart Time 列表中,选择何时开始运行同步计划。
  6. Save
  7. 单击 Products 选项卡,然后单击 Add。选择 Red Hat Enterprise Linux Server 产品并点 Add Selected

CLI 过程

  1. 运行以下命令来创建同步计划:

    # hammer sync-plan create \
    --name "Red Hat Products 2" \
    --description "Example Plan for Red Hat Products" \
    --interval daily \
    --sync-date "2016-02-01 01:00:00" \
    --enabled true \
    --organization "My_Organization"
  2. 为它分配 Red Hat Enterprise Linux Server 产品:

    # hammer product set-sync-plan \
    --name "Red Hat Enterprise Linux Server" \
    --sync-plan "Red Hat Products" \
    --organization "My_Organization"
  3. 查看机构的可用同步计划,以验证是否创建了同步计划:

    # hammer sync-plan list --organization "Default Organization"