此内容没有您所选择的语言版本。
Hammer Cheat Sheet
Hammer CLI Cheat Sheet for Red Hat Satellite 6.5. 复制链接链接已复制到粘贴板!
Abstract
1. Introduction 复制链接链接已复制到粘贴板!
Hammer is a command-line tool provided with Red Hat Satellite 6. You can use Hammer to configure and manage a Red Hat Satellite Server by using either CLI commands or shell script automation. The following cheat sheet provides a condensed overview of essential Hammer commands.
For more information about Hammer, see the Red Hat Hammer CLI Guide.
2. General Information 复制链接链接已复制到粘贴板!
| Subcommand | Description and tasks |
|---|---|
|
| Display hammer commands and options, append after a subcommand to get more information |
| org |
The setting is organization-specific, append
|
| loc |
The setting is location-specific, append
|
Note: This cheat sheet assumes saved credentials in ~/.hammer/cli_config.yml. For more information, see Authentication in the Red Hat Hammer CLI Guide.
3. Organizations, Locations, and Repositories 复制链接链接已复制到粘贴板!
| Subcommand | Description and tasks |
|---|---|
|
| Create an organization:
List organizations:
|
|
| See the options for organization |
|
| Upload a subscription manifest:
|
|
| Enable a repository:
|
|
| Synchronize a repository:
Create a custom repository:
Upload content to a custom repository:
|
4. Content Life Cycles 复制链接链接已复制到粘贴板!
| Subcommand | Description and tasks |
|---|---|
|
| Create a life cycle environment:
List life cycle environments:
|
|
| Create a content view:
Add repositories to a content view:
Add Puppet modules to a content view:
Publishing a content view:
Promoting a content view:
Incremental update of a content view:
|
5. Provisioning Environments 复制链接链接已复制到粘贴板!
| Subcommand | Description and tasks |
|---|---|
|
| Create a domain:
|
|
| Add a subnet:
|
|
| Create a compute resource:
|
|
| Add an installation medium:
|
|
| Add a partition table:
|
|
| Add a provisioning template:
|
|
| Add an operating system:
|
6. Activation Keys 复制链接链接已复制到粘贴板!
| Subcommand | Description and tasks |
|---|---|
|
| Create an activation key:
Add a subscription to the activation key:
|
7. Users and Permissions 复制链接链接已复制到粘贴板!
| Subcommand | Description and tasks |
|---|---|
|
| Create a user:
Add a role to a user:
|
|
| Create a user group:
Add a role to a user group:
|
|
| Create a role:
|
|
| Create a filter and add it to a role:
|
8. Errata 复制链接链接已复制到粘贴板!
| Subcommand | Description and tasks |
|---|---|
|
| List errata:
Find erratum by CVE:
Inspect erratum:
|
|
| List errata applicable to a host:
Apply errata to a host:
|
9. Docker Containers 复制链接链接已复制到粘贴板!
| Subcommand | Description and tasks |
|---|---|
|
| Create a container:
Start a container:
|
10. Hosts 复制链接链接已复制到粘贴板!
| Subcommand | Description and tasks |
|---|---|
|
| Create a host group:
Add an activation key to a host group:
|
|
| Create a host (inheriting parameters from a host group):
|
|
| Add a job template for remote execution:
|
|
| Invoke a remote job:
Monitor the remote job:
|
11. Tasks 复制链接链接已复制到粘贴板!
| Subcommand | Description and tasks |
|---|---|
|
| List all tasks:
|