2.51. hammer os


操作操作系统

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 更新

更新操作系统

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

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

© 2024 Red Hat, Inc.