3.2. 附加 Satellite 基础架构订阅
注册 Satellite 服务器后,您必须识别您的订阅池 ID 并附加可用订阅。Red Hat Satellite Infrastructure 订阅提供对 Red Hat Satellite、Red Hat Enterprise Linux 和 Red Hat Software Collections(RHSCL)内容的访问。这是唯一需要的订阅。
Red Hat Satellite 基础架构包括在所有包含智能管理的订阅中。如需更多信息,请参阅红帽知识库解决方案 Satellite Infrastructure 订阅 MCT3718 MCT3719。
如果订阅没有附加到系统,则订阅会被分类。如果您无法找到可用的 Satellite 订阅,请参阅红帽知识库解决方案 如何确定在 Red Hat Subscription Manager 下注册的客户端使用哪个订阅? 运行脚本,以查看您的订阅是否被另一个系统消耗。
流程
确定 Satellite 基础架构订阅的池 ID:
subscription-manager list --all --available --matches 'Red Hat Satellite Infrastructure Subscription'
# subscription-manager list --all --available --matches 'Red Hat Satellite Infrastructure Subscription'Copy to Clipboard Copied! Toggle word wrap Toggle overflow 该命令显示类似如下的输出:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 记录订阅池 ID。您的订阅池 ID 与提供的示例不同。
将 Satellite Infrastructure 订阅附加到 Satellite 服务器运行的基本操作系统:
subscription-manager attach --pool=pool_id
# subscription-manager attach --pool=pool_idCopy to Clipboard Copied! Toggle word wrap Toggle overflow 该命令显示类似如下的输出:
Successfully attached a subscription for: Red Hat Satellite Infrastructure Subscription
Successfully attached a subscription for: Red Hat Satellite Infrastructure SubscriptionCopy to Clipboard Copied! Toggle word wrap Toggle overflow 可选:验证 Satellite Infrastructure 订阅是否已附加:
subscription-manager list --consumed
# subscription-manager list --consumedCopy to Clipboard Copied! Toggle word wrap Toggle overflow