이 콘텐츠는 선택한 언어로 제공되지 않습니다.

Chapter 58. os


Manipulate operating system

Usage

# hammer os [OPTIONS] SUBCOMMAND [ARG] ...
Copy to Clipboard Toggle word wrap

Options

  • -h, --help – Print help

58.1. os add-architecture

Associate an architecture

Usage

# hammer os add-architecture [OPTIONS]
Copy to Clipboard Toggle word wrap

Options

  • --architecture VALUE – Architecture name
  • --architecture-id NUMBER
  • --id VALUE
  • --title VALUE – Operating system title
  • -h, --help – Print help

58.2. os add-provisioning-template

Associate provisioning templates

Usage

# hammer os add-provisioning-template [OPTIONS]
Copy to Clipboard Toggle word wrap

Options

  • --id VALUE
  • --provisioning-template VALUE – Name to search by
  • --provisioning-template-id NUMBER
  • --provisioning-template-ids LIST – List of provisioning template ids
  • --provisioning-template-search VALUE Provisioning template name regex to search, all matching templates will be associated
  • --provisioning-templates LIST – List of provisioning template names
  • --title VALUE – Operating system title
  • -h, --help – Print help

58.3. os add-ptable

Associate a partition table

Usage

# hammer os add-ptable [OPTIONS]
Copy to Clipboard Toggle word wrap

Options

  • --id VALUE
  • --partition-table VALUE – Partition table name
  • --partition-table-id NUMBER
  • --title VALUE – Operating system title
  • -h, --help – Print help

58.4. os create

Create an operating system

Usage

# hammer os create [OPTIONS]
Copy to Clipboard Toggle word wrap

Options

  • --architecture-ids LIST – IDs of associated architectures
  • --architectures LIST
  • --description VALUE
  • --family VALUE
  • --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
  • --major VALUE
  • --media LIST
  • --medium-ids LIST – IDs of associated media
  • --minor VALUE
  • --name VALUE
  • --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
  • --os-parameters-attributes SCHEMA Array of parameters
  • --partition-table-ids LIST – IDs of associated partition tables
  • --partition-tables LIST
  • --password-hash ENUM – Root password hash function to use Possible value(s): SHA512, SHA256, Base64, Base64-Windows, MD5
  • --provisioning-template-ids LIST IDs of associated provisioning templates
  • --provisioning-templates LIST
  • --release-name VALUE
  • -h, --help – Print help

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

  • --os-parameters-attributes "name=<string>,value=<string>, …​ "

58.5. os delete

Delete an operating system

Usage

# hammer os <delete|destroy> [OPTIONS]
Copy to Clipboard Toggle word wrap

Options

  • --id VALUE
  • --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
  • --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
  • --title VALUE – Operating system title
  • -h, --help – Print help

58.6. os delete-default-template

Usage

# hammer os delete-default-template [OPTIONS]
Copy to Clipboard Toggle word wrap

Options

  • --id VALUE – Operatingsystem id
  • --type VALUE – Type of the provisioning template
  • -h, --help – Print help

58.7. os delete-parameter

Delete parameter for an operating system

Usage

# hammer os delete-parameter [OPTIONS]
Copy to Clipboard Toggle word wrap

Options

  • --name VALUE – Parameter name
  • --operatingsystem VALUE – Operating system title
  • --operatingsystem-id NUMBER
  • -h, --help – Print help

58.8. os info

Show an operating system

Usage

# hammer os <info|show> [OPTIONS]
Copy to Clipboard Toggle word wrap

Options

  • --fields LIST – Show specified fields or predefined field sets only. (See below)
  • --id VALUE
  • --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
  • --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
  • --show-hidden-parameters BOOLEAN Display hidden parameter values
  • --title VALUE – Operating system title
  • -h, --help – Print help

Predefined field sets

Expand
FIELDSALLDEFAULTTHIN

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

 

58.9. os list

List all operating systems

Usage

# hammer os <list|index> [OPTIONS]
Copy to Clipboard Toggle word wrap

Options

  • --architecture VALUE – Architecture name
  • --architecture-id VALUE – ID of architecture
  • --fields LIST – Show specified fields or predefined field sets only. (See below)
  • --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
  • --medium VALUE – Medium name
  • --medium-id VALUE – ID of medium
  • --order VALUE – Sort and order by a searchable field, e.g. <field> DESC
  • --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
  • --os-parameters-attributes SCHEMA Array of parameters
  • --page NUMBER – Page number, starting at 1
  • --partition-table VALUE – Partition table name
  • --partition-table-id VALUE – ID of partition table
  • --per-page VALUE – Number of results per page to return, all to return all results
  • --provisioning-template VALUE – Name to search by
  • --provisioning-template-id VALUE ID of template
  • --search VALUE – Filter results
  • -h, --help – Print help

Predefined field sets

Expand
FIELDSALLDEFAULTTHIN

Id

x

x

x

Title

x

x

x

Release name

x

x

 

Family

x

x

 

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

  • --os-parameters-attributes "name=<string>,value=<string>, …​ "

Search and order fields

  • architecture – string
  • description – string
  • family – string
  • id – integer
  • major – string
  • medium – string
  • minor – string
  • name – string
  • params – string
  • template – string
  • title – string

58.10. os remove-architecture

Disassociate an architecture

Usage

# hammer os remove-architecture [OPTIONS]
Copy to Clipboard Toggle word wrap

Options

  • --architecture VALUE – Architecture name
  • --architecture-id NUMBER
  • --id VALUE
  • --title VALUE – Operating system title
  • -h, --help – Print help

58.11. os remove-provisioning-template

Disassociate provisioning templates

Usage

# hammer os remove-provisioning-template [OPTIONS]
Copy to Clipboard Toggle word wrap

Options

  • --id VALUE
  • --provisioning-template VALUE – Name to search by
  • --provisioning-template-id NUMBER
  • --provisioning-template-ids LIST – List of provisioning template ids
  • --provisioning-template-search VALUE Provisioning template name regex to search, all matching templates will be disassociated
  • --provisioning-templates LIST – List of provisioning template names
  • --title VALUE – Operating system title
  • -h, --help – Print help

58.12. os remove-ptable

Disassociate a partition table

Usage

# hammer os remove-ptable [OPTIONS]
Copy to Clipboard Toggle word wrap

Options

  • --id VALUE
  • --partition-table VALUE – Partition table name
  • --partition-table-id NUMBER
  • --title VALUE – Operating system title
  • -h, --help – Print help

58.13. os set-default-template

Usage

# hammer os set-default-template [OPTIONS]
Copy to Clipboard Toggle word wrap

Options

  • --id VALUE – Operatingsystem id
  • --provisioning-template-id VALUE Provisioning template id to be set
  • -h, --help – Print help

58.14. os set-parameter

Create or update parameter for an operating system

Usage

# hammer os set-parameter [OPTIONS]
Copy to Clipboard Toggle word wrap

Options

  • --hidden-value BOOLEAN – Should the value be hidden
  • --name VALUE – Parameter name
  • --operatingsystem VALUE – Operating system title
  • --operatingsystem-id NUMBER
  • --parameter-type ENUM – 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

58.15. os update

Update an operating system

Usage

# hammer os update [OPTIONS]
Copy to Clipboard Toggle word wrap

Options

  • --architecture-ids LIST – IDs of associated architectures
  • --architectures LIST
  • --description VALUE
  • --family VALUE
  • --id VALUE
  • --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
  • --major VALUE
  • --media LIST
  • --medium-ids LIST – IDs of associated media
  • --minor VALUE
  • --name VALUE
  • --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
  • --os-parameters-attributes SCHEMA Array of parameters
  • --partition-table-ids LIST – IDs of associated partition tables
  • --partition-tables LIST
  • --password-hash ENUM – Root password hash function to use Possible value(s): SHA512, SHA256, Base64, Base64-Windows, MD5
  • --provisioning-template-ids LIST IDs of associated provisioning templates
  • --provisioning-templates LIST
  • --release-name VALUE
  • --title VALUE – Operating system title
  • -h, --help – Print help

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

  • --os-parameters-attributes "name=<string>,value=<string>, …​ "
맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2025 Red Hat