検索

2.51. hammer os

download PDF

オペレーティングシステムを操作します。

Usage:
    hammer os [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 add-architecture              Associate an architecture
 add-provisioning-template     Associate provisioning templates
 add-ptable                    Associate a partition table
 create                        Create an operating system
 delete, destroy               Delete an operating system
 delete-default-template
 delete-parameter              Delete parameter for an operating system
 info, show                    Show an operating system
 list, index                   List all operating systems
 remove-architecture           Disassociate an architecture
 remove-provisioning-template  Disassociate provisioning templates
 remove-ptable                 Disassociate a partition table
 set-default-template
 set-parameter                 Create or update parameter for an operating system
 update                        Update an operating system

Options:
 -h, --help                    Print help

2.51.1. hammer os add-architecture

アーキテクチャーを関連付けます。

Usage:
    hammer os add-architecture [OPTIONS]

Options:
 --architecture ARCHITECTURE_NAME  Architecture name
 --architecture-id ARCHITECTURE_ID
 --id ID
 --title TITLE                     Operating system title
 -h, --help                        Print help

2.51.2. hammer os add-provisioning-template

プロビジョニングテンプレートを関連付けます。

Usage:
    hammer os add-provisioning-template [OPTIONS]

Options:
 --id ID
 --provisioning-template PROVISIONING_TEMPLATE_NAME          Name to search by
 --provisioning-template-id PROVISIONING_TEMPLATE_ID
 --provisioning-template-ids PROVISIONING_TEMPLATE_IDS       List of provisioning template ids
                                                             Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                             JSON is acceptable and preferred way for complex parameters
 --provisioning-template-search PROVISIONING_TEMPLATE_SEARCH Provisioning template name regex to search, all matching templates will be associated
 --provisioning-templates PROVISIONING_TEMPLATE_NAMES        List of provisioning template names
                                                             Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                             JSON is acceptable and preferred way for complex parameters
 --title TITLE                                               Operating system title
 -h, --help                                                  Print help

2.51.3. hammer os add-ptable

パーティションテーブルを関連付けます。

Usage:
    hammer os add-ptable [OPTIONS]

Options:
 --id ID
 --partition-table PARTITION_TABLE_NAME  Partition table name
 --partition-table-id PARTITION_TABLE_ID
 --title TITLE                           Operating system title
 -h, --help                              Print help

2.51.4. hammer os create

オペレーティングシステムを作成します。

Usage:
    hammer os create [OPTIONS]

Options:
 --architecture-ids ARCHITECTURE_IDS                   IDs of associated architectures
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --architectures ARCHITECTURE_NAMES                    Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --description DESCRIPTION
 --family FAMILY
 --major MAJOR
 --media MEDIUM_NAMES                                  Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --medium-ids MEDIUM_IDS                               IDs of associated media
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --minor MINOR
 --name NAME
 --os-parameters-attributes OS_PARAMETERS_ATTRIBUTES   Array of parameters
                                                       Comma separated list of values defined by a schema. See Option details section below.
                                                       JSON is acceptable and preferred way for complex parameters
 --partition-table-ids PARTITION_TABLE_IDS             IDs of associated partition tables
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --partition-tables PARTITION_TABLE_NAMES              Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --password-hash PASSWORD_HASH                         Root password hash function to use
                                                       Possible value(s): 'SHA256', 'SHA512', 'Base64', 'Base64-Windows', 'MD5'
 --provisioning-template-ids PROVISIONING_TEMPLATE_IDS IDs of associated provisioning templates
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --provisioning-templates PROVISIONING_TEMPLATE_NAMES  Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --release-name RELEASE_NAME
 -h, --help                                            Print help

Option details:
  Following parameters accept format defined by its schema (bold are required; <> contain acceptable type; [] contain acceptable value):

  --os-parameters-attributes  "name=<string>\,value=<string>, ... "

2.51.5. hammer os delete

オペレーティングシステムを削除します。

Usage:
    hammer os <delete|destroy> [OPTIONS]

Options:
 --id ID
 --title TITLE                 Operating system title
 -h, --help                    Print help

2.51.6. hammer os delete-default-template

Usage:
    hammer os delete-default-template [OPTIONS]

Options:
 --id OS ID                    Operatingsystem id
 --type TPL TYPE               Type of the provisioning template
 -h, --help                    Print help

2.51.7. hammer os delete-parameter

オペレーティングシステムのパラメーターを削除します。

Usage:
    hammer os delete-parameter [OPTIONS]

Options:
 --name NAME                             Parameter name
 --operatingsystem OPERATINGSYSTEM_TITLE Operating system title
 --operatingsystem-id OPERATINGSYSTEM_ID
 -h, --help                              Print help

2.51.8. hammer os info

オペレーティングシステムを表示します。

Usage:
    hammer os <info|show> [OPTIONS]

Options:
 --fields FIELDS                                 Show specified fields or predefined field sets only. (See below)
                                                 Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                 JSON is acceptable and preferred way for complex parameters
 --id ID
 --show-hidden-parameters SHOW_HIDDEN_PARAMETERS Display hidden parameter values
                                                 One of true/false, yes/no, 1/0.
 --title TITLE                                   Operating system title
 -h, --help                                      Print help

Predefined field sets:
  --------------------|-----|---------|-----
  FIELDS              | ALL | DEFAULT | THIN
  --------------------|-----|---------|-----
  Id                  | x   | x       | x
  Title               | x   | x       | x
  Release name        | x   | x       |
  Family              | x   | x       |
  Name                | x   | x       |
  Major version       | x   | x       |
  Minor version       | x   | x       |
  Partition tables/   | x   | x       |
  Default templates/  | x   | x       |
  Architectures/      | x   | x       |
  Installation media/ | x   | x       |
  Templates/          | x   | x       |
  Parameters/         | x   | x       |
  --------------------|-----|---------|-----

2.51.9. hammer os list

すべてのオペレーティングシステムの一覧を表示します。

Usage:
    hammer os <list|index> [OPTIONS]

Options:
 --architecture ARCHITECTURE_NAME                    Architecture name
 --architecture-id ARCHITECTURE_ID                   ID of architecture
 --fields FIELDS                                     Show specified fields or predefined field sets only. (See below)
                                                     Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                     JSON is acceptable and preferred way for complex parameters
 --medium MEDIUM_NAME                                Medium name
 --medium-id MEDIUM_ID                               ID of medium
 --order ORDER                                       Sort field and order, eg. ‘id DESC’
 --os-parameters-attributes OS_PARAMETERS_ATTRIBUTES Array of parameters
                                                     Comma separated list of values defined by a schema. See Option details section below.
                                                     JSON is acceptable and preferred way for complex parameters
 --page PAGE                                         Page number, starting at 1
 --partition-table PARTITION_TABLE_NAME              Partition table name
 --partition-table-id PARTITION_TABLE_ID
 --per-page PER_PAGE                                 Number of results per page to return, 'all' to return all results
 --provisioning-template PROVISIONING_TEMPLATE_NAME  Name to search by
 --provisioning-template-id PROVISIONING_TEMPLATE_ID ID of template
 --search SEARCH                                     Filter results
 -h, --help                                          Print help

Option details:
  Following parameters accept format defined by its schema (bold are required; <> contain acceptable type; [] contain acceptable value):

  --os-parameters-attributes  "name=<string>\,value=<string>, ... "

Predefined field sets:
  -------------|-----|---------|-----
  FIELDS       | ALL | DEFAULT | THIN
  -------------|-----|---------|-----
  Id           | x   | x       | x
  Title        | x   | x       | x
  Release name | x   | x       |
  Family       | x   | x       |
  -------------|-----|---------|-----

Search / Order fields:
  architecture        string
  description         string
  family              string
  major               string
  medium              string
  minor               string
  name                string
  params              string
  template            string
  title               string

2.51.10. hammer os remove-architecture

アーキテクチャーの関連付けを解除します。

Usage:
    hammer os remove-architecture [OPTIONS]

Options:
 --architecture ARCHITECTURE_NAME  Architecture name
 --architecture-id ARCHITECTURE_ID
 --id ID
 --title TITLE                     Operating system title
 -h, --help                        Print help

2.51.11. hammer os remove-provisioning-template

プロビジョニングテンプレートの関連付けを解除します。

Usage:
    hammer os remove-provisioning-template [OPTIONS]

Options:
 --id ID
 --provisioning-template PROVISIONING_TEMPLATE_NAME          Name to search by
 --provisioning-template-id PROVISIONING_TEMPLATE_ID
 --provisioning-template-ids PROVISIONING_TEMPLATE_IDS       List of provisioning template ids
                                                             Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                             JSON is acceptable and preferred way for complex parameters
 --provisioning-template-search PROVISIONING_TEMPLATE_SEARCH Provisioning template name regex to search, all matching templates will be disassociated
 --provisioning-templates PROVISIONING_TEMPLATE_NAMES        List of provisioning template names
                                                             Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                             JSON is acceptable and preferred way for complex parameters
 --title TITLE                                               Operating system title
 -h, --help                                                  Print help

2.51.12. hammer os remove-ptable

パーティションテーブルの関連付けを解除します。

Usage:
    hammer os remove-ptable [OPTIONS]

Options:
 --id ID
 --partition-table PARTITION_TABLE_NAME  Partition table name
 --partition-table-id PARTITION_TABLE_ID
 --title TITLE                           Operating system title
 -h, --help                              Print help

2.51.13. hammer os set-default-template

Usage:
    hammer os set-default-template [OPTIONS]

Options:
 --id OS ID                        Operatingsystem id
 --provisioning-template-id TPL ID Provisioning template id to be set
 -h, --help                        Print help

2.51.14. hammer os set-parameter

オペレーティングシステムのパラメーターを作成または更新します。

Usage:
    hammer os set-parameter [OPTIONS]

Options:
 --hidden-value HIDDEN_VALUE             Should the value be hidden
                                         One of true/false, yes/no, 1/0.
 --name NAME                             Parameter name
 --operatingsystem OPERATINGSYSTEM_TITLE Operating system title
 --operatingsystem-id OPERATINGSYSTEM_ID
 --parameter-type PARAMETER_TYPE         Type of the parameter
                                         Possible value(s): 'string', 'boolean', 'integer', 'real', 'array', 'hash', 'yaml', 'json'
                                         Default: "string"
 --value VALUE                           Parameter value
 -h, --help                              Print help

2.51.15. hammer os update

オペレーティングシステムを更新します。

Usage:
    hammer os update [OPTIONS]

Options:
 --architecture-ids ARCHITECTURE_IDS                   IDs of associated architectures
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --architectures ARCHITECTURE_NAMES                    Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --description DESCRIPTION
 --family FAMILY
 --id ID
 --major MAJOR
 --media MEDIUM_NAMES                                  Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --medium-ids MEDIUM_IDS                               IDs of associated media
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --minor MINOR
 --name NAME
 --os-parameters-attributes OS_PARAMETERS_ATTRIBUTES   Array of parameters
                                                       Comma separated list of values defined by a schema. See Option details section below.
                                                       JSON is acceptable and preferred way for complex parameters
 --partition-table-ids PARTITION_TABLE_IDS             IDs of associated partition tables
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --partition-tables PARTITION_TABLE_NAMES              Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --password-hash PASSWORD_HASH                         Root password hash function to use
                                                       Possible value(s): 'SHA256', 'SHA512', 'Base64', 'Base64-Windows', 'MD5'
 --provisioning-template-ids PROVISIONING_TEMPLATE_IDS IDs of associated provisioning templates
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --provisioning-templates PROVISIONING_TEMPLATE_NAMES  Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --release-name RELEASE_NAME
 --title TITLE                                         Operating system title
 -h, --help                                            Print help

Option details:
  Following parameters accept format defined by its schema (bold are required; <> contain acceptable type; [] contain acceptable value):

  --os-parameters-attributes  "name=<string>\,value=<string>, ... "
Red Hat logoGithubRedditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

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

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

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

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

会社概要

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

© 2024 Red Hat, Inc.