3.37. hammer host-registration


主机注册

Usage:
    hammer host-registration [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
 SUBCOMMAND                    Subcommand
 [ARG] ...                     Subcommand arguments

Subcommands:
 generate-command              Generate global registration command

Options:
 -h, --help                    Print help

3.37.1. hammer host-registration generate-command

生成全局注册命令

Usage:
    hammer host-registration generate-command [OPTIONS]

Options:
 --activation-key VALUE             Activation key for subscription-manager client, required for CentOS and Red Hat
                                    Enterprise Linux. For multiple keys use `activation_keys` param instead.
 --activation-keys LIST             Activation keys for subscription-manager client, required for CentOS and Red Hat
                                    Enterprise Linux. Required only if host group has no activation keys.
 --force BOOLEAN                    Clear any previous registration and run subscription-manager with –force.
 --hostgroup VALUE                  Hostgroup name
 --hostgroup-id NUMBER              ID of the Host group to register the host in
 --hostgroup-title VALUE            Hostgroup title
 --ignore-subman-errors BOOLEAN     Ignore subscription-manager errors for `subscription-manager register` command
 --insecure BOOLEAN                 Enable insecure argument for the initial curl
 --jwt-expiration NUMBER            Expiration of the authorization token (in hours)
 --lifecycle-environment VALUE      Name to search by
 --lifecycle-environment-id NUMBER  Lifecycle environment for the host.
 --location VALUE                   Set the current location context for the request
 --location-id NUMBER               Set the current location context for the request
 --location-title VALUE             Set the current location context for the request
 --operatingsystem VALUE            Operating system title
 --operatingsystem-id NUMBER        ID of the Operating System to register the host in. Operating system must have a
                                    `host_init_config` template assigned
 --organization VALUE               Set the current organization context for the request
 --organization-id NUMBER           Set the current organization context for the request
 --organization-title VALUE         Set the current organization context for the request
 --packages VALUE                   Packages to install on the host when registered. Can be set by `host_packages`
                                    parameter, example: `pkg1 pkg2`
 --remote-execution-interface VALUE Identifier of the Host interface for Remote execution
 --repo VALUE                       Repository URL / details, for example for Debian OS family: 'deb
                                    deb.example.com/ buster 1.0', for Red Hat OS family:
                                    'yum.theforeman.org/client/latest/el8/x86_64/'
 --repo-gpg-key-url VALUE           URL of the GPG key for the repository
 --setup-insights BOOLEAN           Set 'host_registration_insights' parameter for the host. If it is set to true,
                                    insights client will be installed and registered on Red Hat family operating
                                    systems
 --setup-remote-execution BOOLEAN   Set 'host_registration_remote_execution' parameter for the host. If it is set to
                                    true, SSH keys will be installed on the host
 --smart-proxy VALUE                Name to search by
 --smart-proxy-id NUMBER            ID of the Capsule. This Capsule must have enabled both the 'Templates' and
                                    'Registration' features
 --update-packages BOOLEAN          Update all packages on the host
 -h, --help                         Print help

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.