検索

2.37. hammer host-registration

download PDF

ホストの登録

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

2.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

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

© 2024 Red Hat, Inc.