Hammer cheat sheet
For Satellite 6.2
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 through either CLI commands or automation in shell scripts. The following cheat sheet provides a condensed overview of essential Hammer commands. See the Hammer CLI Guide for more information on Hammer.
--help |
Display hammer commands and options, append after a subcommand to get more information |
|---|---|
| org | The setting is organization-specific, append --organization org_name, or set default organization with: hammer defaults add --param-name \(Satellite 6.2 only) |
| loc | The setting is location-specific, append --location loc_name, or set default loction with: hammer defaults add --param-name location_id \(Satellite 6.2 only) |
| Subcommand | Description and Tasks |
|---|---|
organization |
Create an organization hammer organization create \
List organizations |
location |
See the options for organization |
subscriptionorg |
Upload a subscription manifesthammer subscription upload \ |
repository-setorg |
Enable a repositoryhammer repository-set enable \ |
repositoryorg |
Synchronize a repositoryhammer repository synchronize \
Create a custom repository Upload content to a custom repository |
| Subcommand | Description and Tasks |
|---|---|
lifecycle-environmentorg |
Create a life cycle environmenthammer lifecycle-environment \
List life cycle environments |
content-vieworg |
Create a content viewhammer content-view create \
Add repositories to a content view Add Puppet modules to a content view Publishing a content view Publishing a content view Incremental update of a content view |
| Subcommand | Description and Tasks |
|---|---|
domain |
Create a domainhammer domain create \
|
subnetorgloc |
Add a subnethammer subnet create \
|
compute-resourceorgloc |
Create a compute resourcehammer compute-resource create \
|
medium |
Add an installation mediumhammer medium create \
|
partition-table |
Add a partition tablehammer partition-table create \
|
template |
Add a provisioning templatehammer template create \
|
os |
Add an operating systemhammer os create --name os_name\
|
| Subcommand | Description and Tasks |
|---|---|
activation-keyorg |
Create an activation keyhammer activation-key create \ |
Add a subscription to the activation keyhammer activation-key \ |
| Subcommand | Description and Tasks |
|---|---|
userorg |
Create a userhammer user create --login user_name \
Add a role to a user |
user-group |
Create a user grouphammer user-group create \
Add a role to a user group |
role |
Create a rolehammer role create --name role_name |
filter |
Create a filter and add it to a rolehammer filter create --name role_name \ |
| Subcommand | Description and Tasks |
|---|---|
erratum |
List erratahammer erratum list
Find erratum by CVE Inspect erratum |
host |
List errata applicable to a hosthammer host errata list \
Apply errata to a host |
| Subcommand | Description and Tasks |
|---|---|
docker |
Create a containerhammer docker container create \
Start a container |
| Subcommand | Description and Tasks |
|---|---|
hostgrouporgloc |
Create a host grouphammer hostgroup create \
Add an activation key to a host group |
hostorgloc |
Create a host (inheriting parameters from a host group)hammer host create \
|
job-template |
Add a job template for remote executionhammer job-template create \
|
job-invocation |
Invoke a remote jobhammer job-invocation create \
Monitor the remote job |
| Subcommand | Description and Tasks |
|---|---|
task |
List all taskshammer task list
Monitor progress of a running task |
Comments