Red Hat Satellite-6.3-Hammer CLI Guide-en-US
Red Hat Satellite-6.3-Hammer CLI Guide-en-US
Red Hat Satellite-6.3-Hammer CLI Guide-en-US
The text of and illustrations in this document are licensed by Red Hat under a Creative Commons
Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is
available at
http://creativecommons.org/licenses/by-sa/3.0/
. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must
provide the URL for the original version.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert,
Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, JBoss, OpenShift, Fedora, the Infinity
logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other
countries.
Linux ® is the registered trademark of Linus Torvalds in the United States and other countries.
XFS ® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States
and/or other countries.
MySQL ® is a registered trademark of MySQL AB in the United States, the European Union and
other countries.
Node.js ® is an official trademark of Joyent. Red Hat Software Collections is not formally related to
or endorsed by the official Joyent Node.js open source or commercial project.
The OpenStack ® Word Mark and OpenStack logo are either registered trademarks/service marks
or trademarks/service marks of the OpenStack Foundation, in the United States and other countries
and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or
sponsored by the OpenStack Foundation, or the OpenStack community.
Abstract
This document describes how to use the Hammer CLI tool to configure and manage Red Hat
Satellite.
Table of Contents
Table of Contents
.CHAPTER
. . . . . . . . .1.. .INTRODUCTION
. . . . . . . . . . . . . . TO
. . . HAMMER
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16
...........
1.1. GETTING HELP 16
1.2. AUTHENTICATION 16
1.2.1. Hammer Authentication Session 17
1.2.2. Hammer Configuration File 17
1.2.3. Command Line 18
1.3. USING STANDALONE HAMMER 18
1.4. SETTING A DEFAULT ORGANIZATION 19
1.5. CONFIGURING HAMMER 19
1.6. CONFIGURING HAMMER LOGGING 20
1.7. INVOKING THE HAMMER SHELL 21
1.8. GENERATING FORMATTED OUTPUT 21
1.9. TROUBLESHOOTING WITH HAMMER 21
. . . . . . . . . .2.. .MANAGING
CHAPTER . . . . . . . . . . ORGANIZATIONS,
. . . . . . . . . . . . . . . . LOCATIONS,
. . . . . . . . . . . . AND
. . . . REPOSITORIES
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .23
...........
2.1. ORGANIZATIONS 23
2.1.1. Creating an Organization 23
2.1.2. Identifying an Organization in a Hammer Command 24
2.1.3. Uploading a Manifest 24
2.2. LOCATIONS 24
2.2.1. Creating a Location 24
2.3. REPOSITORIES 25
2.3.1. Enabling a Repository 25
2.3.2. Synchronizing a Repository 26
2.3.3. Creating a Synchronization Plan 27
2.3.4. Creating a Custom Repository 28
.CHAPTER
. . . . . . . . .3.. .MANAGING
. . . . . . . . . . CONTENT
. . . . . . . . . LIFE
. . . . .CYCLE
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .30
...........
3.1. CREATING A LIFE CYCLE ENVIRONMENT 30
3.2. CREATING A CONTENT VIEW 30
3.2.1. Adding Repositories to a Content View 31
3.2.2. Adding Puppet Modules to a Content View 33
3.2.3. Adding Docker Images to a Content View 34
3.3. PUBLISHING A CONTENT VIEW 34
3.4. PROMOTING A CONTENT VIEW 35
3.5. PERFORMING AN INCREMENTAL UPDATE OF A CONTENT VIEW 35
. . . . . . . . . .4.. .MANAGING
CHAPTER . . . . . . . . . . ACTIVATION
. . . . . . . . . . . .KEYS
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37
...........
.CHAPTER
. . . . . . . . .5.. .CONFIGURING
. . . . . . . . . . . . . PROVISIONING
. . . . . . . . . . . . . .ENVIRONMENT
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .40
...........
5.1. DOMAINS 40
5.2. SUBNETS 40
5.3. ARCHITECTURES 40
5.4. COMPUTE RESOURCES 41
5.5. INSTALLATION MEDIA 41
5.6. PARTITION TABLES 41
5.7. PROVISIONING TEMPLATES 41
5.8. OPERATING SYSTEMS 42
5.9. PARAMETERS 43
.CHAPTER
. . . . . . . . .6.. .MANAGING
. . . . . . . . . . HOSTS
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45
...........
6.1. CREATING A HOST GROUP 45
6.2. CREATING A HOST 46
1
Red Hat Satellite 6.3 Hammer CLI Guide
. . . . . . . . . .7.. .MANAGING
CHAPTER . . . . . . . . . . USERS
. . . . . . .AND
. . . . PERMISSIONS
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .52
...........
7.1. CREATING USERS 52
7.2. CREATING USER GROUPS 52
7.3. CREATING ROLES 52
7.4. ASSIGNING ROLES TO USERS 53
7.5. ADDING SSH KEYS TO A USER 53
7.6. DELETING SSH KEYS FROM A USER 54
7.7. VIEWING SSH KEYS OF A USER 54
.CHAPTER
. . . . . . . . .8.. .MANAGING
. . . . . . . . . . ERRATA
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .55
...........
8.1. INSPECTING AVAILABLE ERRATA 55
8.2. APPLYING ERRATA TO A HOST 55
8.3. APPLYING ERRATA TO A HOST COLLECTION 57
. . . . . . . . . .9.. .MANAGING
CHAPTER . . . . . . . . . . DOCKER
. . . . . . . . .CONTAINERS
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .58
...........
.CHAPTER
. . . . . . . . .10.
. . .REFERENCE
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59
...........
10.1. HAMMER ACTIVATION-KEY 59
10.1.1. hammer activation-key add-host-collection 59
10.1.2. hammer activation-key add-subscription 59
10.1.3. hammer activation-key content-override 60
10.1.4. hammer activation-key copy 60
10.1.5. hammer activation-key create 61
10.1.6. hammer activation-key delete 61
10.1.7. hammer activation-key host-collections 61
10.1.8. hammer activation-key info 62
10.1.9. hammer activation-key list 62
10.1.10. hammer activation-key product-content 63
10.1.11. hammer activation-key remove-host-collection 63
10.1.12. hammer activation-key remove-subscription 64
10.1.13. hammer activation-key subscriptions 64
10.1.14. hammer activation-key update 65
10.2. HAMMER ADMIN 65
10.2.1. hammer admin logging 66
10.3. HAMMER ARCHITECTURE 66
10.3.1. hammer architecture add-operatingsystem 67
10.3.2. hammer architecture create 67
10.3.3. hammer architecture delete 67
10.3.4. hammer architecture info 67
10.3.5. hammer architecture list 68
10.3.6. hammer architecture remove-operatingsystem 68
10.3.7. hammer architecture update 68
10.4. HAMMER ARF-REPORT 68
10.4.1. hammer arf-report delete 69
10.4.2. hammer arf-report download 69
10.4.3. hammer arf-report download-html 69
10.4.4. hammer arf-report info 70
10.4.5. hammer arf-report list 70
10.5. HAMMER AUTH 70
10.5.1. hammer auth login 70
10.5.2. hammer auth logout 71
2
Table of Contents
3
Red Hat Satellite 6.3 Hammer CLI Guide
4
Table of Contents
5
Red Hat Satellite 6.3 Hammer CLI Guide
6
Table of Contents
7
Red Hat Satellite 6.3 Hammer CLI Guide
8
Table of Contents
9
Red Hat Satellite 6.3 Hammer CLI Guide
10
Table of Contents
11
Red Hat Satellite 6.3 Hammer CLI Guide
12
Table of Contents
13
Red Hat Satellite 6.3 Hammer CLI Guide
14
Table of Contents
15
Red Hat Satellite 6.3 Hammer CLI Guide
Access to Satellite Server’s base operating system is required to issue Hammer commands, which can
limit the number of potential users compared to the web UI. Although the parity between Hammer and
the web UI is almost complete, the web UI has development priority and can be ahead especially for
newly introduced features.
In the background, each Hammer command first establishes a binding to the API, then sends a request.
This can have performance implications when executing a large number of Hammer commands in
sequence. In contrast, a script communicating directly with the API establishes the binding only once.
See the API Guide for more information.
$ hammer --help
You can search the help output using grep, or redirect it to a text viewer, for example:
$ hammer | less
1.2. AUTHENTICATION
A Satellite user must prove their identity to Red Hat Satellite when entering hammer commands.
Hammer commands can be run manually or automatically. In either case, hammer requires Satellite
credentials for authentication. There are three methods of hammer authentication:
16
CHAPTER 1. INTRODUCTION TO HAMMER
The hammer configuration file method is recommended when running commands automatically. For
example, running Satellite maintenance commands from a cron job. When running commands manually,
the hammer authentication session and providing credentials with each command are recommended.
:foreman:
:use_sessions: true
Note that if you enable sessions, credentials stored in the configuration file will be ignored.
You are prompted for your Satellite credentials, and logged in. You will not be prompted for the
credentials again until your session expires.
The default length of a session is 60 minutes. You can change the time to suit your preference.
For example, to change it to 30 minutes, enter the following command:
To see the current status of the session, enter the following command:
17
Red Hat Satellite 6.3 Hammer CLI Guide
:foreman:
:username: 'username'
:password: 'password'
IMPORTANT
Use only spaces for indentation in hammer configuration files. Do not use tabs for
indentation in hammer configuration files.
NOTE
Examples in this guide assume having saved credentials in the configuration file, or using
a hammer authentication session.
Prerequisites
Ensure that you register the host to Satellite Server or Capsule Server. For more information,
see Registering a Host in the Provisioning Guide.
Ensure that you synchronize the following repositories on Satellite Server or Capsule Server. For
more information, see Synchronizing Red Hat Repositories in the Content Management Guide.
rhel-7-server-rpms
rhel-server-rhscl-7-rpms
rhel-7-server-satellite-tools-6.3-rpms
Procedure
On a host, complete the following steps to install hammer:
1. Enable the Red Hat Enterprise Linux, Red Hat Software Collections and Red Hat Satellite Tools
repositories:
18
CHAPTER 1. INTRODUCTION TO HAMMER
2. Install hammer:
:host: 'https://satellite.example.com'
You can find org_ID in the output of the hammer organization list command.
Similarly, you can set the default location by specifying its name or ID. To do so, enter one of the
following commands:
To view the currently specified default settings, enter the following command:
Specifying a default organization is useful when you mostly manage a single organization, as it makes
your commands shorter. However, when switching to a different organization, you still have to use a
command-line option to specify it. Examples in this guide do not assume a saved default organization,
instead they use the shell variable approach described in Section 2.1.2, “Identifying an Organization in a
Hammer Command”.
You can set user specific directives for hammer (in ~/.hammer/cli_config.yml) as well as for CLI
modules (in respective .yml files under ~/.hammer/cli.modules.d/).
To see the order in which configuration files are loaded, as well as versions of loaded modules, issue:
19
Red Hat Satellite 6.3 Hammer CLI Guide
$ hammer -d --version
NOTE
Loading configuration for many CLI modules can slow down the execution of hammer
commands. In such a case, consider disabling CLI modules that are not regularly used.
Apart from saving credentials as described in Section 1.2, “Authentication”, you can set several other
options in the ~/.hammer/ configuration directory. For example, you can change the default log level and
set log rotation with the following directives in ~/.hammer/cli_config.yml. Note that these directives
affect only the current user and are not applied globally.
:log_level: 'warning'
:log_size: 5 #in MB
Similarly, you can set the number of lines displayed at once in the hammer output (equivalent of the --
per-page option):
:per-page: 30
You can set debug or normal configuration options for all Satellite components.
NOTE
After changing hammer’s logging behavior, you must restart Satellite services.
# katello-service restart
To set debug level for all components, use the following command:
To list the currently recognized components, that you can set logging for:
20
CHAPTER 1. INTRODUCTION TO HAMMER
Usage:
hammer admin logging [OPTIONS]
$ hammer shell
In the shell, you can enter subcommands directly without typing "hammer", which can be useful for
testing commands before using them in a script. To exit the shell, type exit or press [Ctrl + D].
Output in CSV format is useful for example when you need to parse IDs and use them in a for loop (see
Example 2.6, “Synchronizing All Repositories in ACME Organization” or Example 2.8, “Assigning a
Synchronization Plan to Multiple Products”).
Several other formatting options are available with the --output option:
csv — generates output in the Comma Separated Values format. To define a custom separator,
use the --csv and --csv-separator options instead.
$ hammer ping
candlepin:
21
Red Hat Satellite 6.3 Hammer CLI Guide
Status: ok
Server Response: Duration: 22ms
candlepin_auth:
Status: ok
Server Response: Duration: 17ms
pulp:
Status: ok
Server Response: Duration: 41ms
pulp_auth:
Status: ok
Server Response: Duration: 23ms
foreman_tasks:
Status: ok
Server Response: Duration: 33ms
22
CHAPTER 2. MANAGING ORGANIZATIONS, LOCATIONS, AND REPOSITORIES
2.1. ORGANIZATIONS
Organization in Red Hat Satellite is an isolated collection of systems, content, and other functionality
within a Satellite deployment. This section shows how to create and modify organizations using hammer.
Where:
org_description is a short description of the organization. This parameter is not required, but it
can help you to manage a large number of organizations.
You can fully configure an organization while creating it (issue hammer organization create --
help to see the options). Also, you can modify an existing organization using the hammer
organization update command.
$ ORG="ACME"
$ hammer organization create \
--name $ORG \
--description "Example_organization"
23
Red Hat Satellite 6.3 Hammer CLI Guide
If your organization name is long, consider storing it in a shell variable. You can use this variable in
Hammer commands. For example:
If you mostly manage a single organization, you can set it as default. For information on how to do that,
see Section 1.4, “Setting a Default Organization”.
The following example shows how to upload a Subscription Manifest file to the ACME organization
(assuming the organization name is stored in a shell variable):
2.2. LOCATIONS
Location in Red Hat Satellite is collection of default settings that represent a physical place. This section
shows how to create locations using hammer.
24
CHAPTER 2. MANAGING ORGANIZATIONS, LOCATIONS, AND REPOSITORIES
The following Bash script creates three locations (london, munich, boston), and assigns them to the
ACME organization.
ORG="ACME"
LOCATIONS="london munich boston"
Run hammer location --help to view all possible location related operations.
2.3. REPOSITORIES
Repository provides storage for a collection of content. This section shows how to enable and
synchronize repositories using hammer.
The following command enables the Red Hat Enterprise Linux 7 Server repository for the
organization:
Run hammer repository-set --help to view all possible repository related operations. Also see
hammer repository --help.
25
Red Hat Satellite 6.3 Hammer CLI Guide
Note that if you have created Content Views, multiple repositories with the same name can exist within a
single organization. In such a case, use the --id option to identify the repository you want to
synchronize (issue hammer repository list to find repository IDs).
The following command performs a single synchronization of the Red Hat Enterprise Linux 7 Server
repository in the organization:
After finishing the first synchronization, the repository is added to the list of repositories mirrored on
Satellite Server. Execute the following command to see the list:
With the --async option, the repository synchronization runs in the background, which for example
allows you to enable and synchronize several repositories in parallel.
26
CHAPTER 2. MANAGING ORGANIZATIONS, LOCATIONS, AND REPOSITORIES
The following Bash script synchronizes all repositories within the ACME organization.
ORG="ACME"
Replace repetition_interval with hourly, daily, or weekly. Replace initial_sync with the date and time
of the initial synchronization in the form of "YYYY-MM-DD HH:MM:SS".
The following command creates a daily synchronization schedule for the ACME organization, that
runs at 3 a.m., starting from 15 January 2016:
To associate the synchronization plan with a product, issue the following command:
27
Red Hat Satellite 6.3 Hammer CLI Guide
The following Bash script selects the products in the ACME organization that have been synchronized
at least once and contain at least one repository and assigns them a synchronization plan named
"daily sync at 3 a.m.".
ORG="ACME"
SYNC_PLAN="daily sync at 3 a.m."
After executing the script, issue the following command to see which products have been assigned
the synchronization plan:
To view synchronization plans available for a selected organization, issue the following command:
For more details on working with products and synchronization plans see the output of hammer sync-
plan --help and hammer product --help.
The following command creates a new repository under the custom product:
cont_type specifies the type of content in the repository, choose one of yum, puppet, or
docker.
28
CHAPTER 2. MANAGING ORGANIZATIONS, LOCATIONS, AND REPOSITORIES
repo_url specifies the URL on which the repository will be available, valid only if ` --publish-via-
http` is enabled.
Replace path_to_dir with the path to the directory with content (RPM packages, Puppet modules, or
Docker images) to be added to the custom repository.
29
Red Hat Satellite 6.3 Hammer CLI Guide
This example shows how to create a new environment based on Library for the ACME organization
(assuming the organization name is stored in a shell variable):
You can create another life cycle environment based on Development using the --prior option.
---|-------------|------------
ID | NAME | PRIOR
---|-------------|------------
2 | Library |
5 | Development | Library
6 | Testing | Development
---|-------------|------------
For more information on commands related to life cycle environments, see the output of hammer
lifecycle-environment --help.
30
CHAPTER 3. MANAGING CONTENT LIFE CYCLE
Content Views are subsets of content from the Library created by intelligent filtering. You can publish and
promote Content Views into life cycle environments that make content available for different uses
(typically Dev, QA, and Production). To create a Content View, issue the following command:
The --repository-ids option adds the selected repositories to the Content View, use the hammer
repository list command to find the IDs. It is also possible to omit this option to create an empty
Content View that you can modify later using the update or add-repository subcommands.
The following example creates a Content View under the ACME organization and assigns it three
repositories:
A Composite Content View is comprised of one or more Content Views. This example shows how to
create a Composite Content View from two existing Content Views:
Find the IDs for the --component-ids option by executing hammer content-view list.
There are three content types you can add to the Content View: RPM packages, Puppet modules, and
Docker images.
31
Red Hat Satellite 6.3 Hammer CLI Guide
The above command is useful for populating an empty Content View with repositories. Note that it will
overwrite any existing repositories, therefore to increase the number of repositories in a Content View,
use:
Similarly, you can use the remove-repository subcommand to remove a repository from the Content
View. Use hammer content-view info to inspect repositories in a Content View.
Filters allow you to select a subset of packages from a repository (either by including or excluding) to
create customized Content Views. This example shows how to create a filter to exclude the emacs
package from the cv-rhel7-server Content View.
Find the repository IDs by executing hammer repository list. Create a rule to exclude
packages with name starting with "emacs" and add it to the filter as follows:
As a result, hosts using the cv-rhel7-server Content View will not have access to the emacs package.
You can add multiple rules to a filter, see the output hammer content-view rule create --
help for the full list of filtering parameters. To inspect rules present in a filter, issue the following
command:
Example 3.5. Filtering Packages for a Content View – Limiting Errata by Date
32
CHAPTER 3. MANAGING CONTENT LIFE CYCLE
This example shows how to create a filter to exclude errata released before a specific date from the
cv-rhel7-server Content View. For more information on errata management see Chapter 8,
Managing Errata. Create a filter for the Content View as follows:
Create a rule to exclude errata with a name starting with "emacs" and add it to the filter as follows:
This example shows how to add a Puppet module from an external source to the cv-rhel7-server
Content View.
1. Download the concat module (that constructs files from multiple text fragments) from Puppet
Forge:
$ wget -O /tmp/puppetlabs-concat-1.2.5.tar.gz
https://forgeapi.puppetlabs.com
/v3/files/puppetlabs-concat-1.2.3.tar.gz
2. Create a Puppet repository under the ACME-puppet product and upload the module to this
repository (the example assumes repository ID is 6):
33
Red Hat Satellite 6.3 Hammer CLI Guide
3. Add the module to the Content View using the id, name, or author parameters. To find the
exact values, enter:
To verify if the module has been added successfully, issue the following command:
Replace image_archive with a path to the archive containing the Docker image. Use repo_id to identify
the repository of docker content type. Then you can add this repository to the Content View.
34
CHAPTER 3. MANAGING CONTENT LIFE CYCLE
--id cv_ID \
--organization-label org_label \
--async
Find the cv_ID of the Content View to be published in the output of the hammer content-view list
command. Published Content Views become available in the Library environment. To verify the Content
View status, issue the following command:
Here, env_name stands for the name of target life cycle environment.
Example 3.7. Promoting a Content View Through the Life Cycle Environment Path
The following Bash script promotes the selected Content View from Library through all life cycle
environments in the ACME organization:
ORG="ACME"
CV_ID=1
To verify if the Content View has been promoted correctly, issue the following command:
35
Red Hat Satellite 6.3 Hammer CLI Guide
--content-view-version-id cv_ID \
--packages pkg_name1,pkg_name2 \
--lifecycle-environment-ids env_ID1, env_ID2,... \
--organization-id org_ID
Find the Content View version ID in the output of hammer Content View version list. Instead of
supplying packages with the --packages option, you can add Puppet modules with --puppet-
modules, or errata with --errata-ids (see Example 3.8, “Adding Errata to a Content View using an
Incremental Update”). For more information on working with incremental updates issue hammer
content-view version incremental-update --help.
This example shows how to apply an erratum to a host (named auth01.example.com) by creating an
incremental update of its Content View:
To find the required information for the above command, perform the following steps:
2. Find the Content View your host is registered to as well as its life cycle environment by
executing:
3. Then find the current version of the Content View (assuming Content View name
RHEL7_Infra):
4. Find the IDs of errata you want to apply in the list of applicable errata in Library:
36
CHAPTER 4. MANAGING ACTIVATION KEYS
Activation key with no subscriptions specified – hosts using the activation key search for the
best fitting subscription. This is akin to running subscription-manager --auto-attach.
See Example 4.1, “Creating an Empty Activation Key”.
Activation key providing a custom subscription pool for auto attach – hosts using the
activation key select the best fitting subscription from the list specified in the activation key. See
Example 4.2, “Creating an Activation Key with Custom Subscription Pool”.
Activation key with the exact set of subscriptions – hosts using the activation key are
associated with all subscriptions specified in the activation key. See Example 4.3, “Creating an
Activation Key with Mandatory Subscription List”.
NOTE
Activation keys are only used when hosts are registered. If changes are made to an
activation key, it is only applicable to hosts that are registered with the amended activation
key in the future. The changes are not made to existing hosts.
Note that the Content View has to be published. To see the full list of operations related to activation
keys, use the hammer activation-key --help command.
To find the activation key ID, use hammer activation-key list; to find the subscription ID, use
hammer subscription list.
This example shows how to create an activation key that directs the associated hosts to automatically
attach a best fitting subscription:
37
Red Hat Satellite 6.3 Hammer CLI Guide
--content-view cv-rhel7-server \
--lifecycle-environment Testing
As a result, hosts registered in the cv-rhel7-server Content View are associated with this activation
key.
This example shows how to create an activation key that will direct the associated hosts to
automatically attach a best fitting subscription from the list specified in the activation key.
Keep repeating this step to add all required subscriptions to the activation key.
This example shows how to create an activation key that will direct the associated hosts to attach all
subscriptions specified in the activation key.
First, create an activation key and add all required subscriptions to it. Follow the steps from
Example 4.2, “Creating an Activation Key with Custom Subscription Pool”.
38
CHAPTER 4. MANAGING ACTIVATION KEYS
IMPORTANT
You can assign several activation keys to a Content View. In case of conflicting settings,
the values from the last specified key take precedence. You can specify the order of
precedence by setting a host group parameter as follows:
39
Red Hat Satellite 6.3 Hammer CLI Guide
5.1. DOMAINS
Domains in Red Hat Satellite represent DNS zones. Satellite has the ability to assign domain names with
Red Hat Satellite Capsule Server DNS. This provides users with a means to group and name hosts
within a particular domain and associate them with parameters and Puppet variables.
You can associate the newly created domain to organizations and locations using the hammer
organization add-domain or hammer location add-domain commands. To view the status of
a domain, issue the following command:
5.2. SUBNETS
Subnets in Red Hat Satellite define networks specified for groups of systems. Subnets use standard IP-
address settings to define the network and use the Red Hat Satellite Capsule Server’s DHCP features to
assign IP addresses to systems within the subnet. The following command contains the minimal set of
options required for subnet creation:
Here, boot_mode is one of Static or DHCP, ipam is one of DHCP, Internal DB, or None. If using
DHCP, you can set the IP range with the --from and --to options. For the full list of configurable
options, see the output of the hammer subnet create --help command.
5.3. ARCHITECTURES
Architecture in Satellite represents a logical grouping of hosts and operating systems. To view the
architectures, issue the following command:
Architectures are created by Satellite automatically when hosts are registered in Puppet, therefore it is
rarely needed to create them manually (even though hammer provides this option).
40
CHAPTER 5. CONFIGURING PROVISIONING ENVIRONMENT
Here, provider is one of: RHEV, RHEL OpenStack Platform, Libvirt, Docker, Rackspace,
Google, EC2, or VMware. Depending on the provider type, other options such as --url, or --user
may be required. See the output of the hammer compute-resource create --help command for
details.
You can make the medium available to organizations and locations directly when adding it (see the
output of the hammer medium create --help command), or later by using the hammer
organization add-medium or hammer location add-medium commands.
See the output of the hammer partition-table --help command for other subcommands.
41
Red Hat Satellite 6.3 Hammer CLI Guide
Provisioning templates provide the systematic means to run unattended installations. To view the
provisioning templates provided by Satellite, issue the following command:
See the output of the hammer template --help command for other subcommands.
$ hammer os list
Then you can add architectures, partition tables, installation media, and configuration templates to the
operating system. See the output of the hammer os --help command for details.
The following Bash script assigns each operating system a partition table (Kickstart default),
configuration template (Kickstart default PXELinux), and provisioning template (Satellite Kickstart
Default).
for i in $(hammer --csv os list | grep -vi '^ID' | awk -F, {'print $1'})
do
hammer partition-table add-operatingsystem --id="${PARTID}" --
operatingsystem-id="${i}"
hammer template add-operatingsystem --id="${PXEID}" --
operatingsystem-id="${i}"
hammer os set-default-template --id="${i}" --config-template-
id="${PXEID}"
hammer os add-config-template --id="${i}" --config-template-
id="${SATID}"
hammer os set-default-template --id="${i}" --config-template-
id="${SATID}"
done
42
CHAPTER 5. CONFIGURING PROVISIONING ENVIRONMENT
You can add grep commands to the for statement to further specify the affected operating systems.
To verify if the assignment was performed correctly, use the hammer os info command.
5.9. PARAMETERS
Parameters define the behavior of Red Hat Satellite during provisioning. There are several types of
parameters, see Parameters in the Puppet Guide for details. Use the following example to set a global
parameter:
Run the following command to set the firewall global option to disabled:
43
Red Hat Satellite 6.3 Hammer CLI Guide
$ hammer sc-param \
--name param_name \
--default-value param_value
44
CHAPTER 6. MANAGING HOSTS
The following command demonstrates a basic set of options for creating a host group:
See hammer hostgroup create --help for the full list of configurable options. There are two
settings that cannot be configured during host group creation:
Run hammer activation-key list to find the activation key name (see Chapter 4, Managing
Activation Keys for details on activation keys).
The root password has to be specified when adding a host to the host group.
The following Bash script creates a host group for each life cycle environment.
MAJOR="7"
OS=$(hammer --output csv os list | awk -F "," "/RedHat ${MAJOR}/ {print
\$2;exit}")
ARCH="x86_64"
ORG="ACME"
LOCATIONS="london,munich"
45
Red Hat Satellite 6.3 Hammer CLI Guide
PTABLE_NAME="ptable-acme-os-rhel-server"
DOMAIN="example.com"
HgID=$(hammer --output csv hostgroup list --per-page 999 | awk -F"," "
(\$3 ~ /^${LC_ENV_LOWER}\/rhel-${MAJOR}server-${ARCH}$/) {print \$1}")
46
CHAPTER 6. MANAGING HOSTS
--organization-id org_ID \
--location-id loc_ID \
--ask-root-password yes
After executing the above command you will be prompted to specify the root password. It is required to
specify the host’s IP and MAC address, other properties of the primary network interface can be inherited
from the host group or set using the subnet, and domain parameters. You can set additional interfaces
using the --interface option, which accepts a list of key-value pairs. For the list of available interface
settings, see Table 6.1, “Available Keys for the --interface Option”.
If you decide to create a host without host group membership, specify additional options described in
Section 6.1, “Creating a Host Group”. There is a wide range of available host parameters, for details see
the output of hammer host create --help. The value of certain parameters depends on the type of
compute resource the host is provisioned on, see Table 6.2, “Host Options Specific to Provider” for
reference.
Keys Description
mac, ip, domain (or domain_id), subnet (or Network settings, domain and subnet identification
subnet_id) can be inherited from the host group.
primary, provision, managed, virtual Accept true or false. Managed hosts needs to
have one primary and provisioning interface.
47
Red Hat Satellite 6.3 Hammer CLI Guide
Keys Description
Provider Keys
48
CHAPTER 6. MANAGING HOSTS
Provider Keys
The following example shows how to create a host with a bonded interface pair. For more information
on interface bonding see Configure Network Bonding in the Red Hat Enterprise Linux Networking
Guide.
49
Red Hat Satellite 6.3 Hammer CLI Guide
Run the following command to associate a host collection with an activation key (see Chapter 4,
Managing Activation Keys for details on activation keys):
Hosts grouped in the host collection now inherit the configuration from the activation key.
Replace template with the path to the file containing the template definition. Specify a custom
category_name or select one of the existing categories (Commands, Katello, Packages, Power,
Puppet, or Services). See the output of hammer job-template create --help for information
on other available parameters.
50
CHAPTER 6. MANAGING HOSTS
Specify the template name you want to use for the remote job. Specify inputs as a comma separated list
of key-value pairs. Run hammer job-template info to see what parameters are required by your
template. Replace query with the filter expression defining which hosts will be affected (for example
"name ~ rex01").
This example shows how to execute a remote job based on the default Service Action - SSH
Default template, that will start the httpd service on hosts that have a name that contains "target".
Find the job_ID in the output of hammer job-invocation list. For more information on executing
remote commands with hammer, issue hammer job-template --help or hammer job-
invocation --help.
51
Red Hat Satellite 6.3 Hammer CLI Guide
The --auth-source-id 1 setting means that the user is authenticated internally, you can specify an
external authentication source as an alternative. Add the --admin option to grant administrator
privileges to the user. Specifying organization IDs is not required, you can modify the user details later
using the update subcommand.
For more information on user related subcommands see the output of hammer user --help.
Find the user group ID by executing hammer user-group list. Similarly, you can add user groups
using the add-user-group subcommand. For more information on operations related to user groups
see the output of hammer user-group --help.
52
CHAPTER 7. MANAGING USERS AND PERMISSIONS
Here, role_id is the ID of the role from the output of hammer role list.
Find the permissions to be added to the role by using hammer filter available-permissions.
For details on roles and permissions see the output of hammer role --help and hammer filter -
-help.
Red Hat Satellite provides the ability to limit the configured user permissions to selected instances of
a resource type. Use the --search option to limit permission filters, for example:
The above command adds to the qa-user role a permission to view, create, edit, and destroy Content
Views that only applies to Content Views with name starting with ccv. See Granular Permission
Filtering in Administering Red Hat Satellite for more information.
For web UI equivalents of the following procedures see Adding SSH keys to a User in Administering Red
Hat Satellite.
53
Red Hat Satellite 6.3 Hammer CLI Guide
Prerequisite
You need either the path to the public SSH key file, or the content of the public SSH key copied to the
clipboard.
$ hammer user ssh-keys add --user-id user_id --name key_name --key ecdsa-
sha2-nistp256
AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNtYAAABBBHHS2KmNyIYa27Qaa7EHp+
2l99ucGStx4P77e03ZvE3yVRJEFikpoP3MJtYYfIe8k 1/46MTIZo9CPTX4CYUHeN8=
host@user
54
CHAPTER 8. MANAGING ERRATA
The hammer erratum list command provides numerous options for filtering and ordering the
output list. For example, to find an erratum that contains a specific security fix, issue:
The following command displays applicable errata for the selected product that contain the specified
bugs ordered so that the security errata are displayed on top:
For more information on syntax used in the --search option, see Inspecting Available Errata in the
Content Management Guide. For more information on filtering options implemented in hammer, see
the output of hammer erratum list --help.
Replace erratum_ID with a unique identifier of the erratum found in the output of the hammer erratum
list command. You can identify errata also by name and repository name, see the output of hammer
erratum info --help for details.
55
Red Hat Satellite 6.3 Hammer CLI Guide
--errata-ids erratum_ID1,erratum_ID2...
The following Bash script applies all errata available to a host (auth01.example.com):
HOST="auth01.example.com"
for i in $(hammer --csv host errata list --host $HOST | grep -vi '^ID' |
awk -F, {'print $2'})
do
hammer host errata apply --host $HOST --errata-ids $i
done
This example shows how to apply a security fix to hosts using hammer:
1. Find the erratum that contains a fix for a selected issue (CVE-2015-3238):
You can use the following Bash script to apply a security erratum (for example RHSA-2015:1640) to
all hosts where it is applicable:
ORG="ACME"
RHSA="RHSA-2015:1640"
for i in $(hammer --csv host list --organization $ORG | grep -vi '^ID' |
awk -F, {'print $2'})
56
CHAPTER 8. MANAGING ERRATA
do
hammer host errata apply --host $i --errata-ids $RHSA
done
To see if errata were applied successfully, find the corresponding task in the output of the following
command:
57
Red Hat Satellite 6.3 Hammer CLI Guide
In Red Hat Satellite, you can deploy containers only on a compute resource of the Docker provider type.
See Preparing Container Hosts in Managing Hosts for instructions on how to prepare a container host.
To register this host as a compute resource, issue the following command:
Find the compute resource ID in the output of hammer compute-resource list. Replace
repo_name with the name of the synchronized repository that contains your docker images. This can be
a custom repository pointing to Docker Hub or your internal registry (see Section 2.3.4, “Creating a
Custom Repository”), or the official Red Hat image repository. If you provision from a Content View,
replace repo_name with the name of the Content View. See Section 3.2.3, “Adding Docker Images to a
Content View” for details on adding images to a Content View.
By starting a container you start the process specified with the --command option during the container
creation. To start a container, issue the following command:
For the full list of container related options, see the output of the hammer docker container --
help command.
58
CHAPTER 10. REFERENCE
Usage:
hammer activation-key [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
add-host-collection Associate a resource
add-subscription Add subscription
content-override Override product content defaults
copy Copy an activation key
create Create an activation key
delete Destroy an activation key
host-collections List associated host collections
info Show an activation key
list List activation keys
product-content List associated products
remove-host-collection Disassociate a resource
remove-subscription Remove subscription
subscriptions List associated subscriptions
update Update an activation key
Options:
-h, --help print help
Usage:
hammer activation-key add-host-collection [OPTIONS]
Options:
--host-collection HOST_COLLECTION_NAME Host collection name to search by
--host-collection-id HOST_COLLECTION_ID Id of the host collection
--id ID ID of the activation key
--name NAME Activation key name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
-h, --help print help
59
Red Hat Satellite 6.3 Hammer CLI Guide
Add subscription
Usage:
hammer activation-key add-subscription [OPTIONS]
Options:
--id ID ID of the activation key
--name NAME Activation key name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--quantity QUANTITY Quantity of this subscription to
add
--subscription-id SUBSCRIPTION_ID ID of subscription
-h, --help print help
Usage:
hammer activation-key content-override [OPTIONS]
Options:
--content-label CONTENT_LABEL Label of the content
--id ID ID of the activation key
--name NAME Activation key name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--override-name OVERRIDE_NAME Override parameter key or name.
To enable or disable a repo
select 'enabled'.
Default value: enabled
Default: "enabled"
--remove Remove a content override
--value VALUE Override value. Note for repo
enablement you can use a boolean value
-h, --help print help
Usage:
hammer activation-key copy [OPTIONS]
Options:
--id ID ID of the activation key
--name NAME Activation key name to search by
--new-name NEW_NAME Name of new activation key
--organization ORGANIZATION_NAME Organization name to search by
60
CHAPTER 10. REFERENCE
Usage:
hammer activation-key create [OPTIONS]
Options:
--content-view CONTENT_VIEW_NAME Content view name to
search by
--content-view-id CONTENT_VIEW_ID content view numeric
identifier
--description DESCRIPTION description
--lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME Environment name
--lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
--max-hosts MAX_HOSTS maximum number of
registered content hosts
--name NAME name
--organization ORGANIZATION_NAME Organization name to
search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label
to search by
--unlimited-hosts Set hosts max to
unlimited
-h, --help print help
Usage:
hammer activation-key delete [OPTIONS]
Options:
--id ID ID of the activation key
--name NAME Activation key name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
-h, --help print help
Usage:
hammer activation-key host-collections [OPTIONS]
61
Red Hat Satellite 6.3 Hammer CLI Guide
Options:
--available-for AVAILABLE_FOR Interpret specified object to
return only Host Collections that can be
associated with specified
object. The value 'host' is supported.
--full-result FULL_RESULT Whether or not to show all
results
One of true/false, yes/no, 1/0.
--host-id HOST_ID Filter products by host id
--id ID ID of activation key
--name NAME Name of activation key
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
-h, --help print help
Usage:
hammer activation-key info [OPTIONS]
Options:
--id ID ID of the activation key
--name NAME Activation key name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
-h, --help print help
Usage:
hammer activation-key list [OPTIONS]
Options:
--by BY Field to sort the
results on
--content-view CONTENT_VIEW_NAME Content view name to
search by
--content-view-id CONTENT_VIEW_ID content view numeric
identifier
--full-result FULL_RESULT Whether or not to
show all results
One of true/false,
yes/no, 1/0.
--lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME Environment name
--lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
--name NAME activation key name
to filter by
--order ORDER Sort field and
62
CHAPTER 10. REFERENCE
Usage:
hammer activation-key product-content [OPTIONS]
Options:
--content-access-mode-all CONTENT_ACCESS_MODE_ALL Get all content
available, not just that provided by subscriptions
One of true/false,
yes/no, 1/0.
--content-access-mode-env CONTENT_ACCESS_MODE_ENV Limit content to just
that available in the activation key's content
view version
One of true/false,
yes/no, 1/0.
--id ID ID of the activation
key
--name NAME Activation key name
to search by
--organization ORGANIZATION_NAME Organization name to
search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to
search by
-h, --help print help
Usage:
hammer activation-key remove-host-collection [OPTIONS]
Options:
--host-collection HOST_COLLECTION_NAME Host collection name to search by
--host-collection-id HOST_COLLECTION_ID Id of the host collection
--id ID ID of the activation key
--name NAME Activation key name to search by
--organization ORGANIZATION_NAME Organization name to search by
63
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer activation-key remove-subscription [OPTIONS]
Options:
--id ID ID of the activation key
--name NAME Activation key name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--subscription-id SUBSCRIPTION_ID ID of subscription
-h, --help print help
Usage:
hammer activation-key subscriptions [OPTIONS]
Options:
--activation-key ACTIVATION_KEY_NAME Activation key name to search by
--activation-key-id ACTIVATION_KEY_ID ID of the activation key
--available-for AVAILABLE_FOR Object to show subscriptions
available for, either 'host' or
'activation_key'
--by BY Field to sort the results on
--full-result FULL_RESULT Whether or not to show all
results
One of true/false, yes/no, 1/0.
--host HOST_NAME Host name
--host-id HOST_ID
--id ACTIVATION_KEY_ID ID of the activation key
--match-host MATCH_HOST Ignore subscriptions that are
unavailable to the specified host
One of true/false, yes/no, 1/0.
--match-installed MATCH_INSTALLED Return subscriptions that match
installed products of the specified host
One of true/false, yes/no, 1/0.
--name ACTIVATION_KEY_NAME Activation key name to search by
--no-overlap NO_OVERLAP Return subscriptions which do
not overlap with a currently-attached
subscription
One of true/false, yes/no, 1/0.
--order ORDER Sort field and order, eg. 'name
DESC'
--organization ORGANIZATION_NAME Organization name to search by
64
CHAPTER 10. REFERENCE
Usage:
hammer activation-key update [OPTIONS]
Options:
--auto-attach AUTO_ATTACH auto attach
subscriptions upon registration
One of true/false,
yes/no, 1/0.
--content-view CONTENT_VIEW_NAME Content view name to
search by
--content-view-id CONTENT_VIEW_ID content view numeric
identifier
--description DESCRIPTION description
--id ID ID of the
activation key
--lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME Environment name
--lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
--max-hosts MAX_HOSTS maximum number of
registered content hosts
--name NAME Activation key name
to search by
--new-name NEW_NAME name
--organization ORGANIZATION_NAME Organization name to
search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label
to search by
--release-version RELEASE_VERSION content release
version
--service-level SERVICE_LEVEL service level
--unlimited-hosts set hosts max to
unlimited
-h, --help print help
Usage:
hammer admin [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
65
Red Hat Satellite 6.3 Hammer CLI Guide
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
logging Logging verbosity level setup
Options:
-h, --help print help
Usage:
hammer admin logging [OPTIONS]
Options:
--no-backup Skip configuration backups creation.
--prefix PATH Operate on prefixed environment (e.g.
chroot).
-a, --all Apply to all components.
-c, --components COMPONENTS Components to apply, use --list to get
them.
Comma separated list of values. Values
containing comma should be quoted or escaped with backslash
-d, --level-debug Increase verbosity level to debug.
-h, --help print help
-l, --list List available components.
-n, --dry-run Do not apply specified changes.
-p, --level-production Decrease verbosity level to standard.
Usage:
hammer architecture [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
add-operatingsystem Associate an operating system
create Create an architecture
delete Delete an architecture
info Show an architecture
list List all architectures
remove-operatingsystem Disassociate an operating system
update Update an architecture
Options:
-h, --help print help
66
CHAPTER 10. REFERENCE
Usage:
hammer architecture add-operatingsystem [OPTIONS]
Options:
--id ID
--name NAME Architecture name
--operatingsystem OPERATINGSYSTEM_TITLE Operating system title
--operatingsystem-id OPERATINGSYSTEM_ID
-h, --help print help
Usage:
hammer architecture create [OPTIONS]
Options:
--name NAME
--operatingsystem-ids OPERATINGSYSTEM_IDS Operating system IDs
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--operatingsystems OPERATINGSYSTEM_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
-h, --help print help
Usage:
hammer architecture delete [OPTIONS]
Options:
--id ID
--name NAME Architecture name
-h, --help print help
Usage:
hammer architecture info [OPTIONS]
Options:
--id ID
--name NAME Architecture name
-h, --help print help
67
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer architecture list [OPTIONS]
Options:
--operatingsystem OPERATINGSYSTEM_TITLE Operating system title
--operatingsystem-id OPERATINGSYSTEM_ID
--order ORDER sort results
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
-h, --help print help
Usage:
hammer architecture remove-operatingsystem [OPTIONS]
Options:
--id ID
--name NAME Architecture name
--operatingsystem OPERATINGSYSTEM_TITLE Operating system title
--operatingsystem-id OPERATINGSYSTEM_ID
-h, --help print help
Usage:
hammer architecture update [OPTIONS]
Options:
--id ID
--name NAME Architecture name
--new-name NEW_NAME
--operatingsystem-ids OPERATINGSYSTEM_IDS Operating system IDs
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--operatingsystems OPERATINGSYSTEM_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
-h, --help print help
Usage:
68
CHAPTER 10. REFERENCE
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
delete Delete an ARF Report
download Download bzipped ARF report
download-html Download ARF report in HTML
info Show an ARF report
list List ARF reports
Options:
-h, --help print help
Usage:
hammer arf-report delete [OPTIONS]
Options:
--id ID
-h, --help print help
Usage:
hammer arf-report download [OPTIONS]
Options:
--id ID
--path PATH Path to directory where downloaded file
will be saved
-h, --help print help
Usage:
hammer arf-report download-html [OPTIONS]
Options:
--id ID
--path PATH Path to directory where downloaded file
will be saved
-h, --help print help
69
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer arf-report info [OPTIONS]
Options:
--id ID
-h, --help print help
Usage:
hammer arf-report list [OPTIONS]
Options:
--order ORDER sort results
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
-h, --help print help
Usage:
hammer auth [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
login Set credentials
logout Wipe your credentials
status Information about current connections
Options:
-h, --help print help
Usage:
hammer auth login [OPTIONS]
Options:
70
CHAPTER 10. REFERENCE
Usage:
hammer auth logout [OPTIONS]
Options:
-h, --help print help
Usage:
hammer auth status [OPTIONS]
Options:
-h, --help print help
Usage:
hammer auth-source [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
ldap Manage LDAP auth sources.
Options:
-h, --help print help
Usage:
hammer auth-source ldap [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
71
Red Hat Satellite 6.3 Hammer CLI Guide
Subcommands:
create Create an LDAP authentication source
delete Delete an LDAP authentication source
info Show an LDAP authentication source
list List all LDAP authentication sources
update Update an LDAP authentication source
Options:
-h, --help print help
Usage:
hammer auth-source ldap create [OPTIONS]
Options:
--account ACCOUNT
--account-password ACCOUNT_PASSWORD required if onthefly_register
is true
--attr-firstname ATTR_FIRSTNAME required if onthefly_register
is true
--attr-lastname ATTR_LASTNAME required if onthefly_register
is true
--attr-login ATTR_LOGIN required if onthefly_register
is true
--attr-mail ATTR_MAIL required if onthefly_register
is true
--attr-photo ATTR_PHOTO
--base-dn BASE_DN
--groups-base GROUPS_BASE groups base DN
--host HOST
--ldap-filter LDAP_FILTER LDAP filter
--location-ids LOCATION_IDS REPLACE locations with given
ids
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--location-titles LOCATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--locations LOCATION_NAMES Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--name NAME
--onthefly-register ONTHEFLY_REGISTER One of true/false, yes/no, 1/0.
--organization-ids ORGANIZATION_IDS REPLACE organizations with
given ids.
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--organization-titles ORGANIZATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--organizations ORGANIZATION_NAMES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--port PORT defaults to 389
--server-type SERVER_TYPE type of the LDAP server
Possible value(s):
72
CHAPTER 10. REFERENCE
Usage:
hammer auth-source ldap delete [OPTIONS]
Options:
--id ID
--name NAME Name to search by
-h, --help print help
Usage:
hammer auth-source ldap info [OPTIONS]
Options:
--id ID
--name NAME Name to search by
-h, --help print help
Usage:
hammer auth-source ldap list [OPTIONS]
Options:
--location LOCATION_NAME Location name
--location-id LOCATION_ID
--location-title LOCATION_TITLE Location title
--order ORDER sort results
--organization ORGANIZATION_NAME Organization name
--organization-id ORGANIZATION_ID organization ID
--organization-title ORGANIZATION_TITLE Organization title
--page PAGE paginate results
73
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer auth-source ldap update [OPTIONS]
Options:
--account ACCOUNT
--account-password ACCOUNT_PASSWORD required if onthefly_register
is true
--attr-firstname ATTR_FIRSTNAME required if onthefly_register
is true
--attr-lastname ATTR_LASTNAME required if onthefly_register
is true
--attr-login ATTR_LOGIN required if onthefly_register
is true
--attr-mail ATTR_MAIL required if onthefly_register
is true
--attr-photo ATTR_PHOTO
--base-dn BASE_DN
--groups-base GROUPS_BASE groups base DN
--host HOST
--id ID
--ldap-filter LDAP_FILTER LDAP filter
--location-ids LOCATION_IDS REPLACE locations with given
ids
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--location-titles LOCATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--locations LOCATION_NAMES Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--name NAME Name to search by
--new-name NEW_NAME
--onthefly-register ONTHEFLY_REGISTER One of true/false, yes/no, 1/0.
--organization-ids ORGANIZATION_IDS REPLACE organizations with
given ids.
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--organization-titles ORGANIZATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--organizations ORGANIZATION_NAMES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--port PORT defaults to 389
--server-type SERVER_TYPE type of the LDAP server
Possible value(s):
'free_ipa', 'active_directory', 'posix'
--tls TLS One of true/false, yes/no,
1/0.
--use-netgroups USE_NETGROUPS use NIS netgroups instead of
74
CHAPTER 10. REFERENCE
Usage:
hammer bootdisk [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
generic Download generic image
host Download host image
subnet Download subnet generic image
Options:
-h, --help print help
Usage:
hammer bootdisk generic [OPTIONS]
Options:
--file PATH File or device to write image to
--force Force writing to existing destination
(device etc.)
--sudo Use sudo to write to device
-h, --help print help
Usage:
hammer bootdisk host [OPTIONS]
Options:
--file PATH File or device to write image to
--force Force writing to existing destination
75
Red Hat Satellite 6.3 Hammer CLI Guide
(device etc.)
--full FULL True for full, false for basic reusable
image
One of true/false, yes/no, 1/0.
--host HOST_NAME Host name
--host-id HOST_ID
--sudo Use sudo to write to device
-h, --help print help
Usage:
hammer bootdisk subnet [OPTIONS]
Options:
--file PATH File or device to write image to
--force Force writing to existing destination
(device etc.)
--subnet SUBNET_NAME Subnet name
--subnet-id SUBNET_ID
--sudo Use sudo to write to device
-h, --help print help
Usage:
hammer capsule [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
content Manage the capsule content
create Create a capsule
delete Delete a capsule
import-classes Import puppet classes from puppet Capsule.
info Show a capsule
list List all capsules
refresh-features Refresh capsule features
update Update a capsule
Options:
-h, --help print help
76
CHAPTER 10. REFERENCE
Usage:
hammer capsule content [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
add-lifecycle-environment Add lifecycle environments to the
capsule
available-lifecycle-environments List the lifecycle environments not
attached to the capsule
cancel-synchronization Cancel running capsule synchronization.
info Get current capsule synchronization
status
lifecycle-environments List the lifecycle environments attached
to the capsule
remove-lifecycle-environment Remove lifecycle environments from the
capsule
synchronization-status Get current capsule synchronization
status
synchronize Synchronize the content to the capsule
Options:
-h, --help print help
Usage:
hammer capsule content add-lifecycle-environment [OPTIONS]
Options:
--environment ENVIRONMENT_NAME Environment name
--environment-id ENVIRONMENT_ID
--id ID Id of the capsule
--name NAME Name to search by
--organization NAME Organization name
--organization-id ID Organization ID
-h, --help print help
Usage:
hammer capsule content available-lifecycle-environments [OPTIONS]
Options:
--id ID Id of the capsule
--name NAME Name to search by
--organization ORGANIZATION_NAME Organization name to search by
77
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer capsule content cancel-synchronization [OPTIONS]
Options:
--id ID Id of the capsule
--name NAME Name to search by
-h, --help print help
Usage:
hammer capsule content info [OPTIONS]
Options:
--id ID Id of the capsule
--name NAME Name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
-h, --help print help
Usage:
hammer capsule content lifecycle-environments [OPTIONS]
Options:
--id ID Id of the capsule
--name NAME Name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
-h, --help print help
Usage:
hammer capsule content remove-lifecycle-environment [OPTIONS]
78
CHAPTER 10. REFERENCE
Options:
--environment ENVIRONMENT_NAME Environment name
--environment-id ENVIRONMENT_ID
--id ID Id of the capsule
--name NAME Name to search by
--organization NAME Organization name
--organization-id ID Organization ID
-h, --help print help
Usage:
hammer capsule content synchronization-status [OPTIONS]
Options:
--id ID Id of the capsule
--name NAME Name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
-h, --help print help
Usage:
hammer capsule content synchronize [OPTIONS]
Options:
--async Do not wait for the task
--environment ENVIRONMENT_NAME Environment name
--environment-id ENVIRONMENT_ID
--id ID Id of the capsule
--name NAME Name to search by
--organization NAME Organization name
--organization-id ID Organization ID
--skip-metadata-check SKIP_METADATA_CHECK Skip metadata check on each
repository on the capsule
One of true/false, yes/no,
1/0.
-h, --help print help
Usage:
hammer capsule create [OPTIONS]
Options:
--download-policy DOWNLOAD_POLICY Download Policy of the capsule,
79
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer capsule delete [OPTIONS]
Options:
--id ID
--name NAME Name to search by
-h, --help print help
Usage:
hammer capsule import-classes [OPTIONS]
Options:
--dryrun Do not run the import
--environment ENVIRONMENT_NAME Environment name
--environment-id ENVIRONMENT_ID
--except EXCEPT Optional comma-delimited string
containing either 'new',
'updated', or 'obsolete' that is used
to limit the imported
Puppet classes
--id ID
--name NAME Name to search by
-h, --help print help
80
CHAPTER 10. REFERENCE
Usage:
hammer capsule info [OPTIONS]
Options:
--id ID
--name NAME Name to search by
-h, --help print help
Usage:
hammer capsule list [OPTIONS]
Options:
--location LOCATION_NAME Location name
--location-id LOCATION_ID
--location-title LOCATION_TITLE Location title
--order ORDER sort results
--organization ORGANIZATION_NAME Organization name
--organization-id ORGANIZATION_ID organization ID
--organization-title ORGANIZATION_TITLE Organization title
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
-h, --help print help
Usage:
hammer capsule refresh-features [OPTIONS]
Options:
--id ID
--name NAME Name to search by
-h, --help print help
Usage:
hammer capsule update [OPTIONS]
Options:
--download-policy DOWNLOAD_POLICY Download Policy of the capsule,
81
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer compute-resource [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
create Create a compute resource
delete Delete a compute resource
image View and manage compute resource's images
info Show a compute resource
list List all compute resources
networks Show available networks
update Update a compute resource
Options:
-h, --help print help
Usage:
hammer compute-resource create [OPTIONS]
82
CHAPTER 10. REFERENCE
Options:
--caching-enabled CACHING_ENABLED enable caching, for VMware
only
One of true/false, yes/no,
1/0.
--datacenter DATACENTER for RHEV, VMware Datacenter
--description DESCRIPTION
--display-type DISPLAY_TYPE for Libvirt only
Possible value(s): 'VNC',
'SPICE'
--domain DOMAIN for RHEL OpenStack Platform
only
--location-ids LOCATION_IDS REPLACE locations with given
ids
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--location-titles LOCATION_TITLES Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--locations LOCATION_NAMES Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--name NAME
--organization-ids ORGANIZATION_IDS REPLACE organizations with
given ids.
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--organization-titles ORGANIZATION_TITLES Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--organizations ORGANIZATION_NAMES Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--password PASSWORD Password for RHEV, EC2,
VMware, OpenStack. Secret key for EC2
--provider PROVIDER Providers include Libvirt,
Ovirt, EC2, Vmware, Openstack, Rackspace, GCE,
Docker
--region REGION for EC2 only
--server SERVER for VMware
--set-console-password SET_CONSOLE_PASSWORD for Libvirt and VMware only
One of true/false, yes/no,
1/0.
--tenant TENANT for RHEL OpenStack Platform
only
--url URL URL for Docker, Libvirt,
RHEV, OpenStack and Rackspace
--user USER Username for RHEV, EC2,
VMware, OpenStack. Access Key for EC2.
--uuid UUID Deprecated, please use
datacenter
-h, --help print help
Usage:
hammer compute-resource delete [OPTIONS]
83
Red Hat Satellite 6.3 Hammer CLI Guide
Options:
--id ID
--name NAME Compute resource name
-h, --help print help
Usage:
hammer compute-resource image [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
available Show images available for addition
create Create an image
delete Delete an image
info Show an image
list List all images for a compute resource
update Update an image
Options:
-h, --help print help
Usage:
hammer compute-resource image available [OPTIONS]
Options:
--compute-resource NAME
--compute-resource-id ID
--id ID
--name NAME Compute resource name
-h, --help print help
Create an image
Usage:
hammer compute-resource image create [OPTIONS]
Options:
--architecture ARCHITECTURE_NAME Architecture name
--architecture-id ARCHITECTURE_ID
--compute-resource COMPUTE_RESOURCE_NAME Compute resource name
--compute-resource-id COMPUTE_RESOURCE_ID
84
CHAPTER 10. REFERENCE
--name NAME
--operatingsystem OPERATINGSYSTEM_TITLE Operating system title
--operatingsystem-id OPERATINGSYSTEM_ID
--password PASSWORD
--user-data USER_DATA Whether or not the image
supports user data
One of true/false, yes/no,
1/0.
--username USERNAME
--uuid UUID
-h, --help print help
Delete an image
Usage:
hammer compute-resource image delete [OPTIONS]
Options:
--compute-resource COMPUTE_RESOURCE_NAME Compute resource name
--compute-resource-id COMPUTE_RESOURCE_ID
--id ID
--name NAME Name to search by
-h, --help print help
Show an image
Usage:
hammer compute-resource image info [OPTIONS]
Options:
--architecture ARCHITECTURE_NAME Architecture name
--architecture-id ARCHITECTURE_ID
--compute-resource COMPUTE_RESOURCE_NAME Compute resource name
--compute-resource-id COMPUTE_RESOURCE_ID
--id ID
--name NAME Name to search by
--operatingsystem OPERATINGSYSTEM_TITLE Operating system title
--operatingsystem-id OPERATINGSYSTEM_ID
-h, --help print help
Usage:
hammer compute-resource image list [OPTIONS]
Options:
--architecture ARCHITECTURE_NAME Architecture name
85
Red Hat Satellite 6.3 Hammer CLI Guide
--architecture-id ARCHITECTURE_ID
--compute-resource COMPUTE_RESOURCE_NAME Compute resource name
--compute-resource-id COMPUTE_RESOURCE_ID
--operatingsystem OPERATINGSYSTEM_TITLE Operating system title
--operatingsystem-id OPERATINGSYSTEM_ID
--order ORDER sort results
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
-h, --help print help
Update an image
Usage:
hammer compute-resource image update [OPTIONS]
Options:
--architecture ARCHITECTURE_NAME Architecture name
--architecture-id ARCHITECTURE_ID
--compute-resource COMPUTE_RESOURCE_NAME Compute resource name
--compute-resource-id COMPUTE_RESOURCE_ID
--id ID
--name NAME Name to search by
--new-name NEW_NAME
--operatingsystem OPERATINGSYSTEM_TITLE Operating system title
--operatingsystem-id OPERATINGSYSTEM_ID
--password PASSWORD
--user-data USER_DATA Whether or not the image
supports user data
One of true/false, yes/no,
1/0.
--username USERNAME
--uuid UUID
-h, --help print help
Usage:
hammer compute-resource info [OPTIONS]
Options:
--id ID
--name NAME Compute resource name
-h, --help print help
86
CHAPTER 10. REFERENCE
Usage:
hammer compute-resource list [OPTIONS]
Options:
--location LOCATION_NAME Location name
--location-id LOCATION_ID
--location-title LOCATION_TITLE Location title
--order ORDER sort results
--organization ORGANIZATION_NAME Organization name
--organization-id ORGANIZATION_ID organization ID
--organization-title ORGANIZATION_TITLE Organization title
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
-h, --help print help
Usage:
hammer compute-resource networks [OPTIONS]
Options:
--cluster-id CLUSTER_ID
--id ID
--name NAME Compute resource name
-h, --help print help
Usage:
hammer compute-resource update [OPTIONS]
Options:
--caching-enabled CACHING_ENABLED enable caching, for VMware
only
One of true/false, yes/no,
1/0.
--datacenter DATACENTER for RHEV, VMware Datacenter
--description DESCRIPTION
--display-type DISPLAY_TYPE for Libvirt only
Possible value(s): 'VNC',
'SPICE'
--domain DOMAIN for RHEL OpenStack Platform
only
--id ID
--location-ids LOCATION_IDS REPLACE locations with given
ids
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--location-titles LOCATION_TITLES Comma separated list of
87
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer config-group [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
create Create a config group
delete Delete a config group
info Show a config group
list List of config groups
update Update a config group
Options:
-h, --help print help
88
CHAPTER 10. REFERENCE
Usage:
hammer config-group create [OPTIONS]
Options:
--name NAME
--puppet-class-ids PUPPET_CLASS_IDS Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--puppet-classes PUPPET_CLASS_NAMES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
-h, --help print help
Usage:
hammer config-group delete [OPTIONS]
Options:
--id ID
--name NAME Name to search by
-h, --help print help
Usage:
hammer config-group info [OPTIONS]
Options:
--id ID
--name NAME Name to search by
-h, --help print help
Usage:
hammer config-group list [OPTIONS]
Options:
--order ORDER sort results
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
-h, --help print help
89
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer config-group update [OPTIONS]
Options:
--id ID
--name NAME Name to search by
--new-name NEW_NAME
--puppet-class-ids PUPPET_CLASS_IDS Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--puppet-classes PUPPET_CLASS_NAMES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
-h, --help print help
Usage:
hammer content-view [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
add-repository Associate a resource
add-version Add a content view version to a composite
view
component View and manage components
copy Copy a content view
create Create a content view
delete Delete a content view
filter View and manage filters
info Show a content view
list List content views
publish Publish a content view
puppet-module View and manage puppet modules
purge Delete old versions of a content view
remove Remove versions and/or environments from a
content view and reassign systems and keys
remove-from-environment Remove a content view from an environment
remove-repository Disassociate a resource
remove-version Remove a content view version from a
composite view
update Update a content view
version View and manage content view versions
Options:
-h, --help print help
90
CHAPTER 10. REFERENCE
Usage:
hammer content-view add-repository [OPTIONS]
Options:
--id ID content view numeric identifier
--name NAME Content view name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID Organization ID to search by
--organization-label ORGANIZATION_LABEL Organization label to search by
--product PRODUCT_NAME Product name to search by
--product-id PRODUCT_ID product numeric identifier
--repository REPOSITORY_NAME Repository name to search by
--repository-id REPOSITORY_ID repository ID
-h, --help print help
Usage:
hammer content-view add-version [OPTIONS]
Options:
--content-view CONTENT_VIEW_NAME Content view name to
search by
--content-view-id CONTENT_VIEW_ID content view numeric
identifier
--content-view-version CONTENT_VIEW_VERSION_VERSION Content view version
number
--content-view-version-id CONTENT_VIEW_VERSION_ID Content view version
identifier
--id ID content view
numeric identifier
--name NAME Content view name
to search by
--organization ORGANIZATION_NAME Organization name to
search by
--organization-id ORGANIZATION_ID Organization ID to
search by
--organization-label ORGANIZATION_LABEL Organization label
to search by
-h, --help print help
Usage:
hammer content-view component [OPTIONS] SUBCOMMAND [ARG] ...
91
Red Hat Satellite 6.3 Hammer CLI Guide
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
add Add components to the content view
list List components attached to this content
view
remove Remove components from the content view
update Update a component associated with the
content view
Options:
-h, --help print help
Usage:
hammer content-view component add [OPTIONS]
Options:
--component-content-view COMPONENT_CONTENT_VIEW_NAME
Content View name of the component who's latest version is desired
--component-content-view-id COMPONENT_CONTENT_VIEW_ID
Content View identifier of the component who's latest version is desired
--component-content-view-version COMPONENT_CONTENT_VIEW_VERSION_VERSION
Content View Version number of the component. Either use this or --
component-content-view-version-id option
--component-content-view-version-id COMPONENT_CONTENT_VIEW_VERSION_ID
Content View Version identifier of the component
--composite-content-view COMPOSITE_CONTENT_VIEW_NAME
Name of the composite content view
--composite-content-view-id COMPOSITE_CONTENT_VIEW_ID
composite content view identifier
--latest
Select the latest version of the components content view is desired
--organization ORGANIZATION_NAME
Organization name to search by
--organization-id ORGANIZATION_ID
Organization ID to search by
--organization-label ORGANIZATION_LABEL
Organization label to search by
-h, --help
print help
Usage:
hammer content-view component list [OPTIONS]
Options:
92
CHAPTER 10. REFERENCE
Usage:
hammer content-view component remove [OPTIONS]
Options:
--component-content-view-ids COMPONENT_CONTENT_VIEW_IDs Array of
component content view identfiers to remove. Comma separated list of
values
--component-content-views COMPONENT_CONTENT_VIEW_NAMES Array of
component content view names to remove. Comma separated list of values
--component-ids COMPONENT_IDS Array of content
view component IDs to remove. Identifier of the component
association
Comma
separated list of values. Values containing comma should be quoted or
escaped with backslash
--composite-content-view COMPOSITE_CONTENT_VIEW_NAME Name of the
composite content view
--composite-content-view-id COMPOSITE_CONTENT_VIEW_ID composite content
view identifier
--organization ORGANIZATION_NAME Organization
name to search by
--organization-id ORGANIZATION_ID Organization ID
to search by
--organization-label ORGANIZATION_LABEL Organization
label to search by
-h, --help print help
Usage:
hammer content-view component update [OPTIONS]
Options:
--component-content-view COMPONENT_CONTENT_VIEW_NAME
Content View name of the component who's latest version is desired
--component-content-view-id COMPONENT_CONTENT_VIEW_ID
93
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer content-view copy [OPTIONS]
Options:
--id ID Content view numeric identifier
--name NAME Content view name to search by
--new-name NEW_NAME New content view name
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID Organization ID to search by
--organization-label ORGANIZATION_LABEL Organization label to search by
-h, --help print help
Usage:
hammer content-view create [OPTIONS]
Options:
--component-ids COMPONENT_IDS List of component content view
version ids for composite views
Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--composite Create a composite content view
--description DESCRIPTION Description for the content view
--label LABEL Content view label
94
CHAPTER 10. REFERENCE
Usage:
hammer content-view delete [OPTIONS]
Options:
--async Do not wait for the task
--id ID content view numeric identifier
--name NAME Content view name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID Organization ID to search by
--organization-label ORGANIZATION_LABEL Organization label to search by
-h, --help print help
Usage:
hammer content-view filter [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
add-repository Associate a resource
create create a filter for a content view
delete delete a filter
info show filter info
list list filters
remove-repository Disassociate a resource
rule View and manage filter rules
update update a filter
Options:
-h, --help print help
95
Red Hat Satellite 6.3 Hammer CLI Guide
Associate a resource
Usage:
hammer content-view filter add-repository [OPTIONS]
Options:
--content-view CONTENT_VIEW_NAME Content view name to search by
--content-view-id CONTENT_VIEW_ID content view numeric identifier
--id ID filter identifier
--name NAME Name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID Organization ID to search by
--organization-label ORGANIZATION_LABEL Organization label to search by
--product PRODUCT_NAME Product name to search by
--product-id PRODUCT_ID product numeric identifier
--repository REPOSITORY_NAME Repository name to search by
--repository-id REPOSITORY_ID repository ID
-h, --help print help
Usage:
hammer content-view filter create [OPTIONS]
Options:
--content-view CONTENT_VIEW_NAME Content view name to search by
--content-view-id CONTENT_VIEW_ID content view numeric identifier
--description DESCRIPTION description of the filter
--inclusion INCLUSION specifies if content should be
included or excluded, default:
inclusion=false
One of true/false, yes/no, 1/0.
--name NAME name of the filter
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID Organization ID to search by
--organization-label ORGANIZATION_LABEL Organization label to search by
--original-packages ORIGINAL_PACKAGES add all packages without errata
to the included/excluded list. (package
filter only)
One of true/false, yes/no, 1/0.
--product PRODUCT_NAME Product name to search by
--product-id PRODUCT_ID product numeric identifier
--repositories REPOSITORY_NAMES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--repository-ids REPOSITORY_IDS list of repository ids
Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--type TYPE type of filter (e.g. rpm,
package_group, erratum, docker)
-h, --help print help
96
CHAPTER 10. REFERENCE
delete a filter
Usage:
hammer content-view filter delete [OPTIONS]
Options:
--content-view CONTENT_VIEW_NAME Content view name to search by
--content-view-id CONTENT_VIEW_ID content view numeric identifier
--id ID filter identifier
--name NAME Name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID Organization ID to search by
--organization-label ORGANIZATION_LABEL Organization label to search by
-h, --help print help
Usage:
hammer content-view filter info [OPTIONS]
Options:
--content-view CONTENT_VIEW_NAME Content view name to search by
--content-view-id CONTENT_VIEW_ID content view numeric identifier
--id ID filter identifier
--name NAME Name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID Organization ID to search by
--organization-label ORGANIZATION_LABEL Organization label to search by
-h, --help print help
list filters
Usage:
hammer content-view filter list [OPTIONS]
Options:
--by BY Field to sort the results on
--content-view CONTENT_VIEW_NAME Content view name to search by
--content-view-id CONTENT_VIEW_ID content view numeric identifier
--full-result FULL_RESULT Whether or not to show all
results
One of true/false, yes/no, 1/0.
--name NAME filter content view filters by
name
--order ORDER Sort field and order, eg. 'name
DESC'
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID Organization ID to search by
97
Red Hat Satellite 6.3 Hammer CLI Guide
Disassociate a resource
Usage:
hammer content-view filter remove-repository [OPTIONS]
Options:
--content-view CONTENT_VIEW_NAME Content view name to search by
--content-view-id CONTENT_VIEW_ID content view numeric identifier
--id ID filter identifier
--name NAME Name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID Organization ID to search by
--organization-label ORGANIZATION_LABEL Organization label to search by
--product PRODUCT_NAME Product name to search by
--product-id PRODUCT_ID product numeric identifier
--repository REPOSITORY_NAME Repository name to search by
--repository-id REPOSITORY_ID repository ID
-h, --help print help
Usage:
hammer content-view filter rule [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
create Create a filter rule. The parameters
included should be based upon the filter type.
delete Delete a filter rule
info Show filter rule info
list List filter rules
update Update a filter rule. The parameters
included should be based upon the filter type.
Options:
-h, --help print help
98
CHAPTER 10. REFERENCE
Create a filter rule. The parameters included should be based upon the filter type.
Usage:
hammer content-view filter rule create [OPTIONS]
Options:
--architecture ARCHITECTURE package: architecture
--content-view CONTENT_VIEW_NAME Content view name to
search by
--content-view-filter CONTENT_VIEW_FILTER_NAME Name to search by
--content-view-filter-id CONTENT_VIEW_FILTER_ID filter identifier
--content-view-id CONTENT_VIEW_ID content view numeric
identifier
--date-type DATE_TYPE erratum: search using
the 'Issued On' or 'Updated On'
column of the errata.
Values are 'issued'/'updated'
--end-date END_DATE erratum: end date (YYYY-
MM-DD)
--errata-id ERRATA_ID erratum: id
--errata-ids ERRATA_IDS erratum: IDs or a select
all object
Comma separated list
of values. Values containing comma should be quoted or escaped with
backslash
--max-version MAX_VERSION package: maximum version
--min-version MIN_VERSION package: minimum version
--name NAME package, package group,
or docker tag names
Comma separated list
of values. Values containing comma should be quoted or escaped with
backslash
--names NAMES Package and package
group names
--organization ORGANIZATION_NAME Organization name to
search by
--organization-id ORGANIZATION_ID Organization ID to
search by
--organization-label ORGANIZATION_LABEL Organization label to
search by
--start-date START_DATE erratum: start date
(YYYY-MM-DD)
--types TYPES erratum: types
(enhancement, bugfix, security)
Comma separated list
of values. Values containing comma should be quoted or escaped with
backslash
--uuid UUID package group: uuid
--version VERSION package: version
-h, --help print help
99
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer content-view filter rule delete [OPTIONS]
Options:
--content-view CONTENT_VIEW_NAME Content view name to
search by
--content-view-filter CONTENT_VIEW_FILTER_NAME Name to search by
--content-view-filter-id CONTENT_VIEW_FILTER_ID filter identifier
--content-view-id CONTENT_VIEW_ID content view numeric
identifier
--id ID rule identifier
--name NAME Name to search by
--organization ORGANIZATION_NAME Organization name to
search by
--organization-id ORGANIZATION_ID Organization ID to
search by
--organization-label ORGANIZATION_LABEL Organization label to
search by
-h, --help print help
Usage:
hammer content-view filter rule info [OPTIONS]
Options:
--content-view CONTENT_VIEW_NAME Content view name to
search by
--content-view-filter CONTENT_VIEW_FILTER_NAME Name to search by
--content-view-filter-id CONTENT_VIEW_FILTER_ID filter identifier
--content-view-id CONTENT_VIEW_ID content view numeric
identifier
--id ID rule identifier
--name NAME Name to search by
--organization ORGANIZATION_NAME Organization name to
search by
--organization-id ORGANIZATION_ID Organization ID to
search by
--organization-label ORGANIZATION_LABEL Organization label to
search by
-h, --help print help
Usage:
hammer content-view filter rule list [OPTIONS]
Options:
--by BY Field to sort the
results on
--content-view CONTENT_VIEW_NAME Content view name to
100
CHAPTER 10. REFERENCE
search by
--content-view-filter CONTENT_VIEW_FILTER_NAME Name to search by
--content-view-filter-id CONTENT_VIEW_FILTER_ID filter identifier
--content-view-id CONTENT_VIEW_ID content view numeric
identifier
--full-result FULL_RESULT Whether or not to show
all results
One of true/false,
yes/no, 1/0.
--order ORDER Sort field and order,
eg. 'name DESC'
--organization ORGANIZATION_NAME Organization name to
search by
--organization-id ORGANIZATION_ID Organization ID to
search by
--organization-label ORGANIZATION_LABEL Organization label to
search by
--page PAGE Page number, starting
at 1
--per-page PER_PAGE Number of results per
page to return
--search SEARCH Search string
-h, --help print help
Update a filter rule. The parameters included should be based upon the filter type.
Usage:
hammer content-view filter rule update [OPTIONS]
Options:
--architecture ARCHITECTURE package: architecture
--content-view CONTENT_VIEW_NAME Content view name to
search by
--content-view-filter CONTENT_VIEW_FILTER_NAME Name to search by
--content-view-filter-id CONTENT_VIEW_FILTER_ID filter identifier
--content-view-id CONTENT_VIEW_ID content view numeric
identifier
--end-date END_DATE erratum: end date (YYYY-
MM-DD)
--errata-id ERRATA_ID erratum: id
--id ID rule identifier
--max-version MAX_VERSION package: maximum version
--min-version MIN_VERSION package: minimum version
--name NAME Name to search by
--new-name NEW_NAME package, package group,
or docker tag: name
--organization ORGANIZATION_NAME Organization name to
search by
--organization-id ORGANIZATION_ID Organization ID to
search by
--organization-label ORGANIZATION_LABEL Organization label to
search by
--start-date START_DATE erratum: start date
(YYYY-MM-DD)
101
Red Hat Satellite 6.3 Hammer CLI Guide
update a filter
Usage:
hammer content-view filter update [OPTIONS]
Options:
--content-view CONTENT_VIEW_NAME Content view name to search by
--content-view-id CONTENT_VIEW_ID content view numeric identifier
--id ID filter identifier
--inclusion INCLUSION specifies if content should be
included or excluded, default:
inclusion=false
One of true/false, yes/no, 1/0.
--name NAME Name to search by
--new-name NEW_NAME new name for the filter
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID Organization ID to search by
--organization-label ORGANIZATION_LABEL Organization label to search by
--original-packages ORIGINAL_PACKAGES add all packages without errata
to the included/excluded list. (package
filter only)
One of true/false, yes/no, 1/0.
--repositories REPOSITORY_NAMES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--repository-ids REPOSITORY_IDS list of repository ids
Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
-h, --help print help
Usage:
hammer content-view info [OPTIONS]
Options:
--id ID content view numeric identifier
--name NAME Content view name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID Organization ID to search by
--organization-label ORGANIZATION_LABEL Organization label to search by
-h, --help print help
102
CHAPTER 10. REFERENCE
Usage:
hammer content-view list [OPTIONS]
Options:
--by BY Field to sort the
results on
--composite COMPOSITE Filter only
composite content views
One of true/false,
yes/no, 1/0.
--full-result FULL_RESULT Whether or not to
show all results
One of true/false,
yes/no, 1/0.
--lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME Environment name
--lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
--name NAME Name of the content
view
--noncomposite NONCOMPOSITE Filter out composite
content views
One of true/false,
yes/no, 1/0.
--nondefault NONDEFAULT Filter out default
content views
One of true/false,
yes/no, 1/0.
--order ORDER Sort field and
order, eg. 'name DESC'
--organization ORGANIZATION_NAME Organization name to
search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label
to search by
--page PAGE Page number,
starting at 1
--per-page PER_PAGE Number of results
per page to return
--search SEARCH Search string
--without WITHOUT Do not include this
array of content views
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
-h, --help print help
Usage:
hammer content-view publish [OPTIONS]
103
Red Hat Satellite 6.3 Hammer CLI Guide
Options:
--async Do
not wait for the task
--description DESCRIPTION
Description for the new published content view version
--force-yum-metadata-regeneration FORCE_YUM_METADATA_REGENERATION Force
yum metadata regeneration on the repositories in the content view
version
One
of true/false, yes/no, 1/0.
--id ID
Content view identifier
--name NAME
Content view name to search by
--organization ORGANIZATION_NAME
Organization name to search by
--organization-id ORGANIZATION_ID
Organization ID to search by
--organization-label ORGANIZATION_LABEL
Organization label to search by
-h, --help
print help
Usage:
hammer content-view puppet-module [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
add Add a puppet module to the content view
list List content view puppet modules
remove Remove a puppet module from the content
view
Options:
-h, --help print help
Usage:
hammer content-view puppet-module add [OPTIONS]
Options:
--author AUTHOR Puppet module's author to search
104
CHAPTER 10. REFERENCE
by
--content-view CONTENT_VIEW_NAME Content view name to search by
--content-view-id CONTENT_VIEW_ID content view numeric identifier
--id ID the id of the puppet module to
associate
--name NAME Puppet module name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID Organization ID to search by
--organization-label ORGANIZATION_LABEL Organization label to search by
--uuid UUID Puppet module's UUID to search
by
-h, --help print help
Usage:
hammer content-view puppet-module list [OPTIONS]
Options:
--author AUTHOR author of the puppet module
--by BY Field to sort the results on
--content-view CONTENT_VIEW_NAME Content view name to search by
--content-view-id CONTENT_VIEW_ID content view numeric identifier
--full-result FULL_RESULT Whether or not to show all
results
One of true/false, yes/no, 1/0.
--name NAME name of the puppet module
--order ORDER Sort field and order, eg. 'name
DESC'
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID Organization ID to search by
--organization-label ORGANIZATION_LABEL Organization label to search by
--page PAGE Page number, starting at 1
--per-page PER_PAGE Number of results per page to
return
--search SEARCH Search string
--uuid UUID the uuid of the puppet module to
associate
-h, --help print help
Usage:
hammer content-view puppet-module remove [OPTIONS]
Options:
--author AUTHOR Puppet module's author to search
by
--content-view CONTENT_VIEW_NAME Content view name to search by
--content-view-id CONTENT_VIEW_ID content view numeric identifier
--id ID puppet module ID
105
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer content-view purge [OPTIONS]
Options:
--async Do not wait for the task
--count COUNT count of unused versions to keep
Default: 3
--id ID Content View numeric identifier
--name NAME Content View name
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID Organization ID to search by
--organization-label ORGANIZATION_LABEL Organization label to search by
-h, --help print help
Usage:
hammer content-view remove [OPTIONS]
Options:
--async Do not wait for
the task
--content-view-version-ids VERSION_IDS Comma separated
list of version ids to remove
--content-view-versions CONTENT_VIEW_VERSION_VERSIONS Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--environment-ids ENVIRONMENT_IDS Comma separated
list of environment ids to remove
--environments ENVIRONMENT_NAMES Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--id ID content view
numeric identifier
--key-content-view-id KEY_CONTENT_VIEW_ID content view to
reassign orphaned activation keys to
--key-environment-id KEY_ENVIRONMENT_ID environment to
reassign orphaned activation keys to
--name NAME Content view name
to search by
106
CHAPTER 10. REFERENCE
Usage:
hammer content-view remove-from-environment [OPTIONS]
Options:
--async Do not wait for the
task
--id ID content view
numeric identifier
--lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME Environment name
--lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
--name NAME Content view name
to search by
--organization ORGANIZATION_NAME Organization name to
search by
--organization-id ORGANIZATION_ID Organization ID to
search by
--organization-label ORGANIZATION_LABEL Organization label
to search by
-h, --help print help
Usage:
hammer content-view remove-repository [OPTIONS]
Options:
--id ID content view numeric identifier
--name NAME Content view name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID Organization ID to search by
--organization-label ORGANIZATION_LABEL Organization label to search by
--product PRODUCT_NAME Product name to search by
--product-id PRODUCT_ID product numeric identifier
--repository REPOSITORY_NAME Repository name to search by
--repository-id REPOSITORY_ID repository ID
-h, --help print help
107
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer content-view remove-version [OPTIONS]
Options:
--content-view CONTENT_VIEW_NAME Content view name to
search by
--content-view-id CONTENT_VIEW_ID content view numeric
identifier
--content-view-version CONTENT_VIEW_VERSION_VERSION Content view version
number
--content-view-version-id CONTENT_VIEW_VERSION_ID Content view version
identifier
--id ID content view
numeric identifier
--name NAME Content view name
to search by
--organization ORGANIZATION_NAME Organization name to
search by
--organization-id ORGANIZATION_ID Organization ID to
search by
--organization-label ORGANIZATION_LABEL Organization label
to search by
-h, --help print help
Usage:
hammer content-view update [OPTIONS]
Options:
--component-ids COMPONENT_IDS List of component content view
version ids for composite views
Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--description DESCRIPTION Description for the content view
--id ID Content view identifier
--name NAME Content view name to search by
--new-name NEW_NAME New name for the content view
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID Organization ID to search by
--organization-label ORGANIZATION_LABEL Organization label to search by
--repositories REPOSITORY_NAMES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--repository-ids REPOSITORY_IDS List of repository ids
Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
-h, --help print help
108
CHAPTER 10. REFERENCE
Usage:
hammer content-view version [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
delete Remove content view version
export Export a content view version
incremental-update Perform an Incremental Update on one or
more Content View Versions
info Show content view version
list List content view versions
promote Promote a content view version
republish-repositories Forces a republish of the version's
repositories' metadata.
Options:
-h, --help print help
Usage:
hammer content-view version delete [OPTIONS]
Options:
--async Do not wait for the task
--content-view CONTENT_VIEW_NAME Content view name to search by
--content-view-id CONTENT_VIEW_ID content view numeric identifier
--environment ENVIRONMENT_NAME Environment name
--environment-id ENVIRONMENT_ID
--id ID Content view version identifier
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--version VERSION Content view version number
-h, --help print help
Usage:
hammer content-view version export [OPTIONS]
Options:
--async Do not wait for the task
109
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer content-view version incremental-update [OPTIONS]
Options:
--async Do not wait for the
task
--content-view-version CONTENT_VIEW_VERSION_VERSION Content view version
number
--content-view-version-id CONTENT_VIEW_VERSION_ID Content view version
identifier
--description DESCRIPTION The description for
the new generated Content View Versions
--errata-ids ERRATA_IDS Errata ids or uuids
to copy into the new versions.
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--host-ids HOST_IDS IDs of hosts to
update
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--lifecycle-environment-ids ENVIRONMENT_IDS list of lifecycle
environment IDs to update the content view version in
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--lifecycle-environments ENVIRONMENTS list of lifecycle
environment names to update the content view version in
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--organization ORGANIZATION_NAME Organization name
for resolving lifecycle environment names
--organization-id ORGANIZATION_ID Organization id for
110
CHAPTER 10. REFERENCE
Lifecycle Environments
One of true/false,
yes/no, 1/0.
-h, --help print help
Usage:
hammer content-view version info [OPTIONS]
Options:
--content-view CONTENT_VIEW_NAME Content view name to search by
--content-view-id CONTENT_VIEW_ID content view numeric identifier
--environment ENVIRONMENT_NAME Environment name
--environment-id ENVIRONMENT_ID
--id ID Content view version identifier
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--version VERSION Content view version number
-h, --help print help
111
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer content-view version list [OPTIONS]
Options:
--by BY Field to sort the results
on
--composite-version-id COMPOSITE_VERSION_ID Filter versions that are
components in the specified composite version
--content-view CONTENT_VIEW_NAME Content view name to search
by
--content-view-id CONTENT_VIEW_ID content view numeric
identifier
--environment ENVIRONMENT_NAME Environment name
--environment-id ENVIRONMENT_ID
--full-result FULL_RESULT Whether or not to show all
results
One of true/false, yes/no,
1/0.
--order ORDER Sort field and order, eg.
'name DESC'
--organization ORGANIZATION_NAME Organization name to search
by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search
by
--page PAGE Page number, starting at 1
--per-page PER_PAGE Number of results per page
to return
--puppet-module PUPPET_MODULE_NAME Name to search by
--puppet-module-id PUPPET_MODULE_ID a puppet module identifier
--search SEARCH Search string
--version VERSION Filter versions by version
number
-h, --help print help
Usage:
hammer content-view version promote [OPTIONS]
Options:
--async Do
not wait for the task
--content-view CONTENT_VIEW_NAME
Content view name to search by
--content-view-id CONTENT_VIEW_ID
content view numeric identifier
--description DESCRIPTION The
description for the content view version promotion
112
CHAPTER 10. REFERENCE
--environment-ids ENVIRONMENT_IDS
Identifiers for Lifecycle Environment
Usage:
hammer content-view version republish-repositories [OPTIONS]
Options:
--async Do not wait for the task
--content-view CONTENT_VIEW_NAME Content view name to search by
--content-view-id CONTENT_VIEW_ID content view numeric identifier
--id ID Content view version identifier
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--version VERSION Content view version number
-h, --help print help
113
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer csv [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
activation-keys import or export activation keys
content-hosts import or export content hosts
export export into directory
import import by directory
settings import or export settings
subscriptions import or export subscriptions
Options:
-h, --help print help
Usage:
hammer csv activation-keys [OPTIONS]
Options:
--continue-on-error Continue processing even if individual
resource error
--export Export current data instead of importing
--file FILE_NAME CSV file (default to /dev/stdout with --
export, otherwise required)
--itemized-subscriptions Export one subscription per row, only
process update subscriptions on import
--organization ORGANIZATION Only process organization matching this
name
--search SEARCH Only export search results
-h, --help print help
-v, --verbose be verbose
Usage:
hammer csv content-hosts [OPTIONS]
Options:
--clear-subscriptions When processing --itemized-subscriptions,
clear existing subscriptions first
--columns COLUMN_NAMES Comma separated list of column names to
export
--continue-on-error Continue processing even if individual
114
CHAPTER 10. REFERENCE
resource error
--export Export current data instead of importing
--file FILE_NAME CSV file (default to /dev/stdout with --
export, otherwise required)
--itemized-subscriptions Export one subscription per row, only
process update subscriptions on import
--organization ORGANIZATION Only process organization matching this
name
--search SEARCH Only export search results
-h, --help print help
-v, --verbose be verbose
Columns:
Name - Name of resource
Search - Search for matching names during import (overrides 'Name'
column)
Organization - Organization name
Environment - Lifecycle environment name
Content View - Content view name
Host Collections - Comma separated list of host collection names
Virtual - Is a virtual host, Yes or No
Guest of Host - Hypervisor host name for virtual hosts
OS - Operating system
Arch - Architecture
Sockets - Number of sockets
RAM - Quantity of RAM in bytes
Cores - Number of cores
SLA - Service Level Agreement value
Products - Comma separated list of products, each of the format "<sku>|
<name>"
Subscriptions - Comma separated list of subscriptions, each of the format
"<quantity>|<sku>|<name>|<contract>|<account>"
Subscription Name - Subscription name (only applicable for --itemized-
subscriptions)
Subscription Type - Subscription type (only applicable for --itemized-
subscriptions)
Subscription Quantity - Subscription quantity (only applicable for --
itemized-subscriptions)
Subscription SKU - Subscription SKU (only applicable for --itemized-
subscriptions)
Subscription Contract - Subscription contract number (only applicable for
--itemized-subscriptions)
Subscription Account - Subscription account number (only applicable for -
-itemized-subscriptions)
Subscription Start - Subscription start date (only applicable for --
itemized-subscriptions)
Subscription End - Subscription end date (only applicable for --itemized-
subscriptions)
Usage:
hammer csv export [OPTIONS]
115
Red Hat Satellite 6.3 Hammer CLI Guide
Options:
--dir DIRECTORY directory to export to
--organization ORGANIZATION Only process organization matching this
name
--settings FILE csv file for settings
-h, --help print help
-v, --verbose be verbose
Usage:
hammer csv import [OPTIONS]
Options:
--dir DIRECTORY directory to import from
--organization ORGANIZATION Only process organization matching this
name
--settings FILE csv file for settings
-h, --help print help
-v, --verbose be verbose
Usage:
hammer csv settings [OPTIONS]
Options:
--continue-on-error Continue processing even if individual
resource error
--export Export current data instead of importing
--file FILE_NAME CSV file (default to /dev/stdout with --
export, otherwise required)
--organization ORGANIZATION Only process organization matching this
name
--search SEARCH Only export search results
-h, --help print help
-v, --verbose be verbose
Usage:
hammer csv subscriptions [OPTIONS]
Options:
--continue-on-error Continue processing even if individual
resource error
116
CHAPTER 10. REFERENCE
Usage:
hammer defaults [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
add Add a default parameter to config
delete Delete a default param
list List all the default parameters
providers List all the providers
Options:
-h, --help print help
Usage:
hammer defaults add [OPTIONS]
Options:
--param-name OPTION_NAME The name of the default option (e.g.
organization_id).
--param-value OPTION_VALUE The value for the default option
--provider OPTION_PROVIDER The name of the provider providing the
value. For list available providers see `hammer defaults providers`.
-h, --help print help
Usage:
hammer defaults delete [OPTIONS]
117
Red Hat Satellite 6.3 Hammer CLI Guide
Options:
--param-name OPTION_NAME The name of the default option
-h, --help print help
Usage:
hammer defaults list [OPTIONS]
Options:
-h, --help print help
Usage:
hammer defaults providers [OPTIONS]
Options:
-h, --help print help
Usage:
hammer discovery [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
auto-provision Auto provision a host
delete Delete a discovered host
facts List all fact values
info Show a discovered host
list List all discovered hosts
provision Provision a discovered host
reboot Reboot a host
refresh-facts Refresh the facts of a host
Options:
-h, --help print help
118
CHAPTER 10. REFERENCE
Usage:
hammer discovery auto-provision [OPTIONS]
Options:
--id ID
--name NAME Name to search by
-h, --help print help
Usage:
hammer discovery delete [OPTIONS]
Options:
--id ID
--name NAME Name to search by
-h, --help print help
Usage:
hammer discovery facts [OPTIONS]
Options:
--id ID
--name NAME Name to search by
--order ORDER sort results
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
-h, --help print help
Usage:
hammer discovery info [OPTIONS]
Options:
--id ID
--name NAME Name to search by
-h, --help print help
119
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer discovery list [OPTIONS]
Options:
--order ORDER sort results
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
-h, --help print help
Usage:
hammer discovery provision [OPTIONS]
Options:
--architecture ARCHITECTURE_NAME Architecture
name
--architecture-id ARCHITECTURE_ID
--ask-root-password ASK_ROOT_PW One of
true/false, yes/no, 1/0.
--build BUILD One of
true/false, yes/no, 1/0.
--capabilities CAPABILITIES
--domain DOMAIN_NAME Domain name
--domain-id DOMAIN_ID Numerical ID or
domain name
--enabled ENABLED One of
true/false, yes/no, 1/0.
--environment ENVIRONMENT_NAME Environment name
--environment-id ENVIRONMENT_ID
--host-parameters-attributes HOST_PARAMETERS_ATTRIBUTES Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--hostgroup HOSTGROUP_NAME Hostgroup name
--hostgroup-id HOSTGROUP_ID
--hostgroup-title HOSTGROUP_TITLE Hostgroup title
--id ID
--image IMAGE_NAME Name to search
by
--image-id IMAGE_ID
--interface INTERFACE Interface
parameters
Comma-
separated list of key=value.
Can be
specified multiple times.
--ip IP not required
if using a subnet with DHCP Capsule
--mac MAC not required if
it's a virtual machine
--managed MANAGED One of
true/false, yes/no, 1/0.
120
CHAPTER 10. REFERENCE
/api/orchestration/:UUID/tasks
--provision-method METHOD Possible
value(s): 'build', 'image'
--puppet-ca-proxy-id PUPPET_CA_PROXY_ID
--puppet-proxy-id PUPPET_PROXY_ID
--puppetclass-ids PUPPETCLASS_IDS Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--pxe-loader PXE_LOADER DHCP filename
option (Grub2 or PXELinux by default)
Possible
value(s): 'None', 'PXELinux BIOS', 'PXELinux UEFI', 'Grub UEFI', 'Grub
UEFI SecureBoot', 'Grub2 UEFI', 'Grub2 UEFI SecureBoot'
--root-password ROOT_PW
--sp-subnet-id SP_SUBNET_ID
--subnet SUBNET_NAME Subnet name
--subnet-id SUBNET_ID
-h, --help print help
Usage:
hammer discovery reboot [OPTIONS]
Options:
--id ID
--name NAME Name to search by
-h, --help print help
121
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer discovery refresh-facts [OPTIONS]
Options:
--id ID
--name NAME Name to search by
-h, --help print help
Usage:
hammer discovery-rule [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
create Create a discovery rule
delete Delete a rule
info Show a discovery rule
list List all discovery rules
update Update a rule
Options:
-h, --help print help
Usage:
hammer discovery-rule create [OPTIONS]
Options:
--enabled ENABLED flag is used for temporary
shutdown of rules
One of true/false, yes/no,
1/0.
--hostgroup HOSTGROUP_NAME Hostgroup name
--hostgroup-id HOSTGROUP_ID
--hostgroup-title HOSTGROUP_TITLE Hostgroup title
--hostname HOSTNAME defines a pattern to assign
human-readable hostnames to the matching hosts
--hosts-limit HOSTS_LIMIT
--location-ids LOCATION_IDS REPLACE locations with given
ids
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--location-titles LOCATION_TITLES Comma separated list of values.
122
CHAPTER 10. REFERENCE
Usage:
hammer discovery-rule delete [OPTIONS]
Options:
--id ID
--name NAME Name to search by
-h, --help print help
Usage:
hammer discovery-rule info [OPTIONS]
Options:
--id ID
--name NAME Name to search by
-h, --help print help
Usage:
hammer discovery-rule list [OPTIONS]
Options:
123
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer discovery-rule update [OPTIONS]
Options:
--enabled ENABLED flag is used for temporary
shutdown of rules
One of true/false, yes/no,
1/0.
--hostgroup HOSTGROUP_NAME Hostgroup name
--hostgroup-id HOSTGROUP_ID
--hostgroup-title HOSTGROUP_TITLE Hostgroup title
--hostname HOSTNAME defines a pattern to assign
human-readable hostnames to the matching hosts
--hosts-limit HOSTS_LIMIT
--id ID
--location-ids LOCATION_IDS REPLACE locations with given
ids
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--location-titles LOCATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--locations LOCATION_NAMES Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--max-count MAX_COUNT enables to limit maximum
amount of provisioned hosts per rule
--name NAME Name to search by
--new-name NEW_NAME represents rule name shown to
the users
--organization-ids ORGANIZATION_IDS REPLACE organizations with
given ids.
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--organization-titles ORGANIZATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--organizations ORGANIZATION_NAMES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--priority PRIORITY puts the rules in order, low
numbers go first. Must be greater then zero
--search SEARCH query to match discovered
hosts for the particular rule
-h, --help print help
124
CHAPTER 10. REFERENCE
Usage:
hammer docker [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
container Manage docker containers
manifest Manage docker manifests
registry Manage docker registries
tag Manage docker tags
Options:
-h, --help print help
Usage:
hammer docker container [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
create Create a container
delete Delete a container
info Show a container
list List all containers
logs Show container logs
start Power a container on
status Run power operation on a container
stop Power a container off
Options:
-h, --help print help
Create a container
Usage:
hammer docker container create [OPTIONS]
Options:
--attach-stderr ATTACH_STDERR One of true/false, yes/no,
1/0.
--attach-stdin ATTACH_STDIN One of true/false, yes/no,
1/0.
125
Red Hat Satellite 6.3 Hammer CLI Guide
Delete a container
Usage:
hammer docker container delete [OPTIONS]
Options:
--compute-resource COMPUTE_RESOURCE_NAME Compute resource name
--compute-resource-id COMPUTE_RESOURCE_ID
126
CHAPTER 10. REFERENCE
--id ID
--name NAME Name to search by
-h, --help print help
Show a container
Usage:
hammer docker container info [OPTIONS]
Options:
--compute-resource COMPUTE_RESOURCE_NAME Compute resource name
--compute-resource-id COMPUTE_RESOURCE_ID
--id ID
--name NAME Name to search by
-h, --help print help
Usage:
hammer docker container list [OPTIONS]
Options:
--compute-resource COMPUTE_RESOURCE_NAME Compute resource name
--compute-resource-id COMPUTE_RESOURCE_ID
--order ORDER sort results
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
-h, --help print help
Usage:
hammer docker container logs [OPTIONS]
Options:
--compute-resource COMPUTE_RESOURCE_NAME Compute resource name
--compute-resource-id COMPUTE_RESOURCE_ID
--id ID
--name NAME Name to search by
--stderr STDERR One of true/false, yes/no,
1/0.
--stdout STDOUT One of true/false, yes/no,
1/0.
--tail TAIL Number of lines to tail.
Default: 100
-h, --help print help
127
Red Hat Satellite 6.3 Hammer CLI Guide
Power a container on
Usage:
hammer docker container start [OPTIONS]
Options:
--compute-resource COMPUTE_RESOURCE_NAME Compute resource name
--compute-resource-id COMPUTE_RESOURCE_ID
--id ID
--name NAME Name to search by
-h, --help print help
Usage:
hammer docker container status [OPTIONS]
Options:
--compute-resource COMPUTE_RESOURCE_NAME Compute resource name
--compute-resource-id COMPUTE_RESOURCE_ID
--id ID
--name NAME Name to search by
-h, --help print help
Usage:
hammer docker container stop [OPTIONS]
Options:
--compute-resource COMPUTE_RESOURCE_NAME Compute resource name
--compute-resource-id COMPUTE_RESOURCE_ID
--id ID
--name NAME Name to search by
-h, --help print help
Usage:
hammer docker manifest [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
128
CHAPTER 10. REFERENCE
Subcommands:
info Show a docker manifest
list List docker_manifests
Options:
-h, --help print help
Usage:
hammer docker manifest info [OPTIONS]
Options:
--id ID a docker manifest identifier
--name NAME Name to search by
--repository REPOSITORY_NAME Repository name to search by
--repository-id REPOSITORY_ID repository ID
-h, --help print help
List docker_manifests
Usage:
hammer docker manifest list [OPTIONS]
Options:
--by BY Field to sort the
results on
--content-view CONTENT_VIEW_NAME Content view name to
search by
--content-view-filter CONTENT_VIEW_FILTER_NAME Name to search by
--content-view-filter-id CONTENT_VIEW_FILTER_ID filter identifier
--content-view-id CONTENT_VIEW_ID content view numeric
identifier
--content-view-version CONTENT_VIEW_VERSION_VERSION Content view version
number
--content-view-version-id CONTENT_VIEW_VERSION_ID Content view version
identifier
--environment ENVIRONMENT_NAME Environment name
--environment-id ENVIRONMENT_ID
--full-result FULL_RESULT Whether or not to
show all results
One of true/false,
yes/no, 1/0.
--ids IDS ids to filter
content by
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--order ORDER Sort field and
order, eg. 'name DESC'
--organization ORGANIZATION_NAME Organization name to
129
Red Hat Satellite 6.3 Hammer CLI Guide
search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label
to search by
--page PAGE Page number,
starting at 1
--per-page PER_PAGE Number of results
per page to return
--product PRODUCT_NAME Product name to
search by
--product-id PRODUCT_ID product numeric
identifier
--repository REPOSITORY_NAME Repository name to
search by
--repository-id REPOSITORY_ID repository ID
--search SEARCH Search string
-h, --help print help
Usage:
hammer docker registry [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
create Create a docker registry
delete Delete a docker registry
info Show a docker registry
list List all docker registries
update Update a docker registry
Options:
-h, --help print help
Usage:
hammer docker registry create [OPTIONS]
Options:
--description DESCRIPTION
--location-ids LOCATION_IDS REPLACE locations with given
ids
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--location-titles LOCATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
130
CHAPTER 10. REFERENCE
Usage:
hammer docker registry delete [OPTIONS]
Options:
--id ID
--name NAME Name to search by
-h, --help print help
Usage:
hammer docker registry info [OPTIONS]
Options:
--id ID
--name NAME Name to search by
-h, --help print help
Usage:
hammer docker registry list [OPTIONS]
Options:
--order ORDER sort results
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
-h, --help print help
131
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer docker registry update [OPTIONS]
Options:
--description DESCRIPTION
--id ID
--location-ids LOCATION_IDS REPLACE locations with given
ids
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--location-titles LOCATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--locations LOCATION_NAMES Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--name NAME Name to search by
--new-name NEW_NAME
--organization-ids ORGANIZATION_IDS REPLACE organizations with
given ids.
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--organization-titles ORGANIZATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--organizations ORGANIZATION_NAMES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--password PASSWORD
--url URL
--username USERNAME
-h, --help print help
Usage:
hammer docker tag [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
info Show a docker tag
list List docker_tags
Options:
-h, --help print help
132
CHAPTER 10. REFERENCE
Usage:
hammer docker tag info [OPTIONS]
Options:
--id ID a docker tag identifier
--name NAME Name to search by
--repository REPOSITORY_NAME Repository name to search by
--repository-id REPOSITORY_ID repository ID
-h, --help print help
List docker_tags
Usage:
hammer docker tag list [OPTIONS]
Options:
--by BY Field to sort the
results on
--content-view CONTENT_VIEW_NAME Content view name to
search by
--content-view-filter CONTENT_VIEW_FILTER_NAME Name to search by
--content-view-filter-id CONTENT_VIEW_FILTER_ID filter identifier
--content-view-id CONTENT_VIEW_ID content view numeric
identifier
--content-view-version CONTENT_VIEW_VERSION_VERSION Content view version
number
--content-view-version-id CONTENT_VIEW_VERSION_ID Content view version
identifier
--environment ENVIRONMENT_NAME Environment name
--environment-id ENVIRONMENT_ID
--full-result FULL_RESULT Whether or not to
show all results
One of true/false,
yes/no, 1/0.
--ids IDS ids to filter
content by
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--order ORDER Sort field and
order, eg. 'name DESC'
--organization ORGANIZATION_NAME Organization name to
search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label
to search by
--page PAGE Page number,
starting at 1
--per-page PER_PAGE Number of results
per page to return
--product PRODUCT_NAME Product name to
search by
--product-id PRODUCT_ID product numeric
133
Red Hat Satellite 6.3 Hammer CLI Guide
identifier
--repository REPOSITORY_NAME Repository name to
search by
--repository-id REPOSITORY_ID repository ID
--search SEARCH Search string
-h, --help print help
Usage:
hammer domain [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
create Create a domain
delete Delete a domain
delete-parameter Delete parameter for a domain.
info Show a domain
list List of domains
set-parameter Create or update parameter for a domain.
update Update a domain
Options:
-h, --help print help
Usage:
hammer domain create [OPTIONS]
Options:
--description DESC Full name describing the
domain
--dns DNS_NAME Name of DNS proxy to use
within this domain
--dns-id DNS_ID ID of DNS proxy to use within
this domain
--location-ids LOCATION_IDS REPLACE locations with given
ids
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--location-titles LOCATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--locations LOCATION_NAMES Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--name NAME The full DNS domain name
--organization-ids ORGANIZATION_IDS REPLACE organizations with
134
CHAPTER 10. REFERENCE
given ids.
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--organization-titles ORGANIZATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--organizations ORGANIZATION_NAMES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
-h, --help print help
Usage:
hammer domain delete [OPTIONS]
Options:
--id ID
--name NAME Domain name
-h, --help print help
Usage:
hammer domain delete-parameter [OPTIONS]
Options:
--domain DOMAIN_NAME Domain name
--domain-id DOMAIN_ID Numerical ID or domain name
--name NAME parameter name
-h, --help print help
Usage:
hammer domain info [OPTIONS]
Options:
--id ID Numerical ID or domain
name
--name NAME Domain name
--show-hidden-parameters SHOW_HIDDEN_PARAMETERS Display hidden parameter
values
One of true/false,
yes/no, 1/0.
-h, --help print help
135
Red Hat Satellite 6.3 Hammer CLI Guide
List of domains
Usage:
hammer domain list [OPTIONS]
Options:
--location LOCATION_NAME Location name
--location-id LOCATION_ID
--location-title LOCATION_TITLE Location title
--order ORDER sort results
--organization ORGANIZATION_NAME Organization name
--organization-id ORGANIZATION_ID organization ID
--organization-title ORGANIZATION_TITLE Organization title
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
--subnet SUBNET_NAME Subnet name
--subnet-id SUBNET_ID
-h, --help print help
Usage:
hammer domain set-parameter [OPTIONS]
Options:
--domain DOMAIN_NAME Domain name
--domain-id DOMAIN_ID Numerical ID or domain name
--hidden-value HIDDEN_VALUE should the value be hidden
One of true/false, yes/no, 1/0.
--name NAME parameter name
--value VALUE parameter value
-h, --help print help
Usage:
hammer domain update [OPTIONS]
Options:
--description DESC Full name describing the
domain
--dns DNS_NAME Name of DNS proxy to use
within this domain
--dns-id DNS_ID ID of DNS proxy to use within
this domain
--id ID
--location-ids LOCATION_IDS REPLACE locations with given
ids
Comma separated list of
136
CHAPTER 10. REFERENCE
Usage:
hammer environment [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
create Create an environment
delete Delete an environment
info Show an environment
list List all environments
sc-params List all smart class parameters
update Update an environment
Options:
-h, --help print help
Usage:
hammer environment create [OPTIONS]
Options:
--location-ids LOCATION_IDS REPLACE locations with given
ids
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--location-titles LOCATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--locations LOCATION_NAMES Comma separated list of
137
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer environment delete [OPTIONS]
Options:
--id ID
--name NAME Environment name
-h, --help print help
Usage:
hammer environment info [OPTIONS]
Options:
--id ID
--name NAME Environment name
-h, --help print help
Usage:
hammer environment list [OPTIONS]
Options:
--location LOCATION_NAME Location name
--location-id LOCATION_ID
--location-title LOCATION_TITLE Location title
--order ORDER sort results
--organization ORGANIZATION_NAME Organization name
--organization-id ORGANIZATION_ID organization ID
--organization-title ORGANIZATION_TITLE Organization title
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
138
CHAPTER 10. REFERENCE
Usage:
hammer environment sc-params [OPTIONS]
Options:
--environment ENVIRONMENT_NAME Environment name
--environment-id ENVIRONMENT_ID
--order ORDER sort results
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
--show-hidden SHOW_HIDDEN Display hidden values
One of true/false, yes/no, 1/0.
-h, --help print help
Usage:
hammer environment update [OPTIONS]
Options:
--id ID
--location-ids LOCATION_IDS REPLACE locations with given
ids
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--location-titles LOCATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--locations LOCATION_NAMES Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--name NAME Environment name
--new-name NEW_NAME
--organization-ids ORGANIZATION_IDS REPLACE organizations with
given ids.
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--organization-titles ORGANIZATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--organizations ORGANIZATION_NAMES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
-h, --help print help
139
Red Hat Satellite 6.3 Hammer CLI Guide
Manipulate errata
Usage:
hammer erratum [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
info Show an erratum
list List errata
Options:
-h, --help print help
Usage:
hammer erratum info [OPTIONS]
Options:
--id ID an erratum identifier
--name NAME Name to search by
--repository REPOSITORY_NAME Repository name to search by
--repository-id REPOSITORY_ID repository ID
-h, --help print help
Usage:
hammer erratum list [OPTIONS]
Options:
--by BY Field to
sort the results on
--content-view CONTENT_VIEW_NAME Content view
name to search by
--content-view-filter CONTENT_VIEW_FILTER_NAME Name to search
by
--content-view-filter-id CONTENT_VIEW_FILTER_ID filter
identifier
--content-view-id CONTENT_VIEW_ID content view
numeric identifier
--content-view-version CONTENT_VIEW_VERSION_VERSION Content view
version number
--content-view-version-id CONTENT_VIEW_VERSION_ID Content view
version identifier
--cve CVE CVE
identifier
140
CHAPTER 10. REFERENCE
Usage:
hammer fact [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
list List all fact values
Options:
-h, --help print help
141
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer fact list [OPTIONS]
Options:
--order ORDER sort results
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
-h, --help print help
Usage:
hammer file [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
info Show a file
list List files
Options:
-h, --help print help
Usage:
hammer file info [OPTIONS]
Options:
--content-view CONTENT_VIEW_NAME Content view name to
search by
--content-view-id CONTENT_VIEW_ID content view numeric
identifier
--content-view-version CONTENT_VIEW_VERSION_VERSION Content view version
number
--content-view-version-id CONTENT_VIEW_VERSION_ID Content View Version
ID
--id ID a file identifier
--name NAME File name to search
by
--organization ORGANIZATION_NAME Organization name to
search by
--organization-id ORGANIZATION_ID organization ID
142
CHAPTER 10. REFERENCE
Usage:
hammer file list [OPTIONS]
Options:
--by BY Field to sort the
results on
--content-view CONTENT_VIEW_NAME Content view name to
search by
--content-view-filter CONTENT_VIEW_FILTER_NAME Name to search by
--content-view-filter-id CONTENT_VIEW_FILTER_ID filter identifier
--content-view-id CONTENT_VIEW_ID content view numeric
identifier
--content-view-version CONTENT_VIEW_VERSION_VERSION Content view version
number
--content-view-version-id CONTENT_VIEW_VERSION_ID Content view version
identifier
--environment ENVIRONMENT_NAME Environment name
--environment-id ENVIRONMENT_ID
--full-result FULL_RESULT Whether or not to
show all results
One of true/false,
yes/no, 1/0.
--ids IDS ids to filter
content by
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--order ORDER Sort field and
order, eg. 'name DESC'
--organization ORGANIZATION_NAME Organization name to
search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label
to search by
--page PAGE Page number,
starting at 1
--per-page PER_PAGE Number of results
per page to return
--product PRODUCT_NAME Product name to
search by
143
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer filter [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
available-permissions List all permissions
available-resources List available resource types.
create Create a filter
delete Delete a filter
info Show a filter
list List all filters
update Update a filter
Options:
-h, --help print help
Usage:
hammer filter available-permissions [OPTIONS]
Options:
--name NAME
--order ORDER sort results
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--resource-type RESOURCE_TYPE
--search SEARCH filter results
-h, --help print help
Usage:
hammer filter available-resources [OPTIONS]
144
CHAPTER 10. REFERENCE
Options:
-h, --help print help
Usage:
hammer filter create [OPTIONS]
Options:
--location-ids LOCATION_IDS Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--location-titles LOCATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--locations LOCATION_NAMES Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--organization-ids ORGANIZATION_IDS Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--organization-titles ORGANIZATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--organizations ORGANIZATION_NAMES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--override OVERRIDE One of true/false, yes/no,
1/0.
--permission-ids PERMISSION_IDS Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--permissions PERMISSION_NAMES Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--role ROLE_NAME User role name
--role-id ROLE_ID
--search SEARCH
-h, --help print help
Filters inherit organizations and locations from its role by default. This
behavior can be changed by setting --override=true
Therefore options --organization[s|-ids] and --location[s|-ids] are
applicable only when the override flag is set.
Usage:
hammer filter delete [OPTIONS]
Options:
--id ID
-h, --help print help
145
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer filter info [OPTIONS]
Options:
--id ID
-h, --help print help
Usage:
hammer filter list [OPTIONS]
Options:
--order ORDER sort results
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
-h, --help print help
Usage:
hammer filter update [OPTIONS]
Options:
--id ID
--location-ids LOCATION_IDS Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--location-titles LOCATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--locations LOCATION_NAMES Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--organization-ids ORGANIZATION_IDS Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--organization-titles ORGANIZATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--organizations ORGANIZATION_NAMES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--override OVERRIDE One of true/false, yes/no,
1/0.
--permission-ids PERMISSION_IDS Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--permissions PERMISSION_NAMES Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--role ROLE_NAME User role name
--role-id ROLE_ID
146
CHAPTER 10. REFERENCE
--search SEARCH
-h, --help print help
Filters inherit organizations and locations from its role by default. This
behavior can be changed by setting --override=true
Therefore options --organization[s|-ids] and --location[s|-ids] are
applicable only when the override flag is set.
Usage:
hammer foreign-input-set [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
create Create a foreign input set
delete Delete a foreign input set
info Show foreign input set details
list List foreign input sets
update Update a foreign input set
Options:
-h, --help print help
Usage:
hammer foreign-input-set create [OPTIONS]
Options:
--description DESCRIPTION Input set description
--exclude EXCLUDE A comma separated list of input
names to be included from the foreign
template.
--include INCLUDE A comma separated list of input
names to be included from the foreign
template.
--include-all INCLUDE_ALL Include all inputs from the
foreign template
One of true/false, yes/no, 1/0.
--target-template-id TARGET_TEMPLATE_ID Target template ID
--template-id TEMPLATE_ID
-h, --help print help
147
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer foreign-input-set delete [OPTIONS]
Options:
--id ID
--name NAME Name to search by
--template-id TEMPLATE_ID
-h, --help print help
Usage:
hammer foreign-input-set info [OPTIONS]
Options:
--id ID
--name NAME Name to search by
--template-id TEMPLATE_ID
-h, --help print help
Usage:
hammer foreign-input-set list [OPTIONS]
Options:
--order ORDER sort results
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
--template-id TEMPLATE_ID
-h, --help print help
Usage:
hammer foreign-input-set update [OPTIONS]
Options:
--description DESCRIPTION Input set description
--exclude EXCLUDE A comma separated list of input
names to be included from the foreign
template.
148
CHAPTER 10. REFERENCE
--id ID
--include INCLUDE A comma separated list of input
names to be included from the foreign
template.
--include-all INCLUDE_ALL Include all inputs from the
foreign template
One of true/false, yes/no, 1/0.
--name NAME Name to search by
--new-name NEW_NAME
--target-template-id TARGET_TEMPLATE_ID Target template ID
--template-id TEMPLATE_ID
-h, --help print help
Usage:
hammer full-help [OPTIONS]
Options:
--md Format output in markdown
-h, --help print help
Usage:
hammer global-parameter [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
delete Delete a global parameter
list List all global parameters.
set Set a global parameter.
Options:
-h, --help print help
Usage:
hammer global-parameter delete [OPTIONS]
Options:
--name NAME Common parameter name
-h, --help print help
149
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer global-parameter list [OPTIONS]
Options:
--order ORDER sort results
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
--show-hidden SHOW_HIDDEN Display hidden values
One of true/false, yes/no, 1/0.
-h, --help print help
Usage:
hammer global-parameter set [OPTIONS]
Options:
--hidden-value HIDDEN_VALUE should the value be hidden
One of true/false, yes/no, 1/0.
--name NAME parameter name
--value VALUE parameter value
-h, --help print help
Usage:
hammer gpg [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
create Create a gpg key
delete Destroy a gpg key
info Show a gpg key
list List gpg keys
update Update a repository
Options:
-h, --help print help
150
CHAPTER 10. REFERENCE
Usage:
hammer gpg create [OPTIONS]
Options:
--key GPG_KEY_FILE GPG Key file
--name NAME identifier of the gpg key
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
-h, --help print help
Usage:
hammer gpg delete [OPTIONS]
Options:
--id ID gpg key numeric identifier
--name NAME Name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
-h, --help print help
Usage:
hammer gpg info [OPTIONS]
Options:
--id ID gpg key numeric identifier
--name NAME Name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
-h, --help print help
Usage:
hammer gpg list [OPTIONS]
Options:
--by BY Field to sort the results on
--full-result FULL_RESULT Whether or not to show all
151
Red Hat Satellite 6.3 Hammer CLI Guide
results
One of true/false, yes/no, 1/0.
--name NAME name of the GPG key
--order ORDER Sort field and order, eg. 'name
DESC'
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--page PAGE Page number, starting at 1
--per-page PER_PAGE Number of results per page to
return
--search SEARCH Search string
-h, --help print help
Usage:
hammer gpg update [OPTIONS]
Options:
--id ID gpg key numeric identifier
--key GPG_KEY_FILE GPG Key file
--name NAME Name to search by
--new-name NEW_NAME identifier of the gpg key
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
-h, --help print help
Usage:
hammer host [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
create Create a host
delete Delete a host
delete-parameter Delete parameter for a host.
errata Manage errata on your hosts
facts List all fact values
info Show a host
interface View and manage host's network interfaces
list List all hosts
package Manage packages on your hosts
package-group Manage package-groups on your hosts
puppet-classes List all Puppet classes
152
CHAPTER 10. REFERENCE
Options:
-h, --help print help
Usage:
hammer host create [OPTIONS]
Options:
--architecture ARCHITECTURE_NAME Architecture name
--architecture-id ARCHITECTURE_ID
--ask-root-password ASK_ROOT_PW One of true/false,
yes/no, 1/0.
--autoheal AUTOHEAL Sets whether the
Host will autoheal subscriptions upon checkin
One of true/false,
yes/no, 1/0.
--build BUILD One of true/false,
yes/no, 1/0.
Default: "true"
--comment COMMENT Additional
information about this host
--compute-attributes COMPUTE_ATTRS Compute resource
attributes.
Comma-separated
list of key=value.
--compute-profile COMPUTE_PROFILE_NAME Name to search by
--compute-profile-id COMPUTE_PROFILE_ID
--compute-resource COMPUTE_RESOURCE_NAME Compute resource name
--compute-resource-id COMPUTE_RESOURCE_ID
--config-group-ids CONFIG_GROUP_IDS IDs of associated
config groups
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--config-groups CONFIG_GROUP_NAMES Comma separated list
of values. Values containing comma should be quoted or escaped with
backslash
153
Red Hat Satellite 6.3 Hammer CLI Guide
--content-source-id CONTENT_SOURCE_ID
--content-view CONTENT_VIEW_NAME Name to search by
--content-view-id CONTENT_VIEW_ID content view numeric
identifier
--domain DOMAIN_NAME Domain name
--domain-id DOMAIN_ID Numerical ID or
domain name
--enabled ENABLED One of true/false,
yes/no, 1/0.
Default: "true"
--environment ENVIRONMENT_NAME Environment name
--environment-id ENVIRONMENT_ID
--hostgroup HOSTGROUP_NAME Hostgroup name
--hostgroup-id HOSTGROUP_ID
--hostgroup-title HOSTGROUP_TITLE Hostgroup title
--hypervisor-guest-uuids HYPERVISOR_GUEST_UUIDS List of hypervisor
guest uuids
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--image IMAGE_NAME Name to search by
--image-id IMAGE_ID
--interface INTERFACE Interface
parameters.
Comma-separated
list of key=value.
Can be specified
multiple times.
--ip IP not required if
using a subnet with DHCP Capsule
--kickstart-repository-id KICKSTART_REPOSITORY_ID Repository Id
associated with the kickstart repo used for provisioning
--lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME Name to search by
--lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID ID of the environment
--location LOCATION_NAME Location name
--location-id LOCATION_ID
--location-title LOCATION_TITLE Location title
--mac MAC required for
managed host that is bare metal, not required if it's a
virtual machine
--managed MANAGED One of true/false,
yes/no, 1/0.
Default: "true"
--medium MEDIUM_NAME Medium name
--medium-id MEDIUM_ID
--model MODEL_NAME Model name
--model-id MODEL_ID
--name NAME
--openscap-proxy-id OPENSCAP_PROXY_ID ID of OpenSCAP
Capsule
--operatingsystem OPERATINGSYSTEM_TITLE Operating system
title
--operatingsystem-id OPERATINGSYSTEM_ID
--organization ORGANIZATION_NAME Organization name
--organization-id ORGANIZATION_ID organization ID
--organization-title ORGANIZATION_TITLE Organization title
154
CHAPTER 10. REFERENCE
/api/orchestration/:UUID/tasks
--provision-method METHOD Possible value(s):
'build', 'image'
--puppet-ca-proxy PUPPET_CA_PROXY_NAME
--puppet-ca-proxy-id PUPPET_CA_PROXY_ID Puppet CA Capsule ID
--puppet-class-ids PUPPET_CLASS_IDS Comma separated list
of values. Values containing comma should be quoted or escaped with
backslash
--puppet-classes PUPPET_CLASS_NAMES Comma separated list
of values. Values containing comma should be quoted or escaped with
backslash
--puppet-proxy PUPPET_PROXY_NAME
--puppet-proxy-id PUPPET_PROXY_ID Puppet Capsule ID
--pxe-loader PXE_LOADER DHCP filename option
(Grub2/PXELinux by default)
Possible value(s):
'None', 'PXELinux BIOS', 'PXELinux UEFI', 'Grub UEFI', 'Grub UEFI
SecureBoot', 'Grub2 UEFI', 'Grub2 UEFI SecureBoot'
--realm REALM_NAME Name to search by
--realm-id REALM_ID Numerical ID or
realm name
--release-version RELEASE_VERSION Release version for
this Host to use (7Server, 7.1, etc)
--root-password, --root-pass ROOT_PW Required if host is
managed and value is not inherited from host group or default password in
settings (--root-pass is deprecated: Use --root-password instead)
--service-level SERVICE_LEVEL Service level to be
used for autoheal.
--subnet SUBNET_NAME Subnet name
--subnet-id SUBNET_ID
--volume VOLUME Volume parameters
Comma-separated
list of key=value.
Can be specified
multiple times.
-h, --help print help
155
Red Hat Satellite 6.3 Hammer CLI Guide
For virtual=true:
tag VLAN tag, this attribute has precedence over the
subnet VLAN ID. Only for virtual interfaces.
attached_to Identifier of the interface to which this
interface belongs, e.g. eth1.
For type=bond:
mode Possible values: balance-rr, active-backup,
balance-xor, broadcast, 802.3ad, balance-tlb, balance-alb
attached_devices Identifiers of slave interfaces, e.g. [eth1,eth2]
bond_options
For type=bmc:
provider always IPMI
username
password
GCE:
--compute-attributes:
machine_type
image_id
network
external_ip
Libvirt:
--compute-attributes:
cpus Number of CPUs
memory String, amount of memory, value in bytes
start Boolean (expressed as 0 or 1), whether to start
the machine or not
--interface:
compute_type Possible values: bridge, network
compute_network / compute_bridge Name of interface according to
type
compute_model Possible values: virtio, rtl8139,
156
CHAPTER 10. REFERENCE
--volume:
pool_name One of available storage pools
capacity String value, eg. 10G
format_type Possible values: raw, qcow2
OpenStack:
--compute-attributes:
flavor_ref
image_ref
tenant_id
security_groups
network
oVirt:
--compute-attributes:
cluster
template Hardware profile to use
cores Integer value, number of cores
memory Amount of memory, integer value in bytes
start Boolean (expressed as 0 or 1), whether to start
the machine or not
--interface:
compute_name Eg. eth0
compute_network Select one of available networks for a cluster
--volume:
size_gb Volume size in GB, integer value
storage_domain Select one of available storage domains
bootable Boolean, only one volume can be bootable
Rackspace:
--compute-attributes:
flavor_id
image_id
VMWare:
--compute-attributes:
cpus Cpu count
corespersocket Number of cores per socket (applicable to
hardware versions < 10 only)
memory_mb Integer number, amount of memory in MB
cluster Cluster id from VMware
path Path to folder
guest_id Guest OS id form VMware
scsi_controller_type Id of the controller from VMware
hardware_version Hardware version id from VMware
start Must be a 1 or 0, whether to start the
machine or not
--interface:
compute_type Type of the network adapter, for example one of:
VirtualVmxnet,
VirtualVmxnet2,
157
Red Hat Satellite 6.3 Hammer CLI Guide
VirtualVmxnet3,
VirtualE1000,
VirtualE1000e,
VirtualPCNet32
See documentation center for your version of
vSphere to find more details about available adapter types:
https://www.vmware.com/support/pubs/
compute_network Network id from VMware
--volume:
name
datastore Datastore id from VMware
size_gb Integer number, volume size in GB
thin true/false
eager_zero true/false
Usage:
hammer host delete [OPTIONS]
Options:
--id ID
--name NAME Host name
-h, --help print help
Usage:
hammer host delete-parameter [OPTIONS]
Options:
--host HOST_NAME Host name
--host-id HOST_ID
--name NAME parameter name
-h, --help print help
Usage:
hammer host errata [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
158
CHAPTER 10. REFERENCE
Options:
-h, --help print help
Usage:
hammer host errata apply [OPTIONS]
Options:
--async Do not wait for the task
--errata-ids ERRATA_IDS List of Errata ids to install
Comma separated list of values. Values
containing comma should be quoted or escaped with backslash
--host HOST_NAME Host name
--host-id HOST_ID
-h, --help print help
Usage:
hammer host errata info [OPTIONS]
Options:
--host HOST_NAME Host name
--host-id HOST_ID
--id ID Errata id of the erratum (RHSA-2012:108)
--name NAME Name to search by
-h, --help print help
Usage:
hammer host errata list [OPTIONS]
Options:
--by BY Field to sort the results on
--content-view CONTENT_VIEW_NAME Content view name to search by
--content-view-id CONTENT_VIEW_ID content view numeric identifier
--environment ENVIRONMENT_NAME Environment name
--environment-id ENVIRONMENT_ID
--full-result FULL_RESULT Whether or not to show all results
One of true/false, yes/no, 1/0.
--host HOST_NAME Host name
--host-id HOST_ID
159
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer host facts [OPTIONS]
Options:
--id ID
--name NAME Host name
--order ORDER sort results
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
-h, --help print help
Usage:
hammer host info [OPTIONS]
Options:
--id ID
--name NAME Host name
--show-hidden-parameters SHOW_HIDDEN_PARAMETERS Display hidden parameter
values
One of true/false,
yes/no, 1/0.
-h, --help print help
Usage:
hammer host interface [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
create Create an interface on a host
delete Delete a host's interface
info Show an interface for host
160
CHAPTER 10. REFERENCE
Options:
-h, --help print help
Usage:
hammer host interface create [OPTIONS]
Options:
--attached-devices ATTACHED_DEVICES Identifiers of attached interfaces,
e.g. `['eth1',
'eth2']`. For bond interfaces those
are the slaves. Only for bond
and bridges interfaces.
Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--attached-to ATTACHED_TO Identifier of the interface to which
this interface belongs, e.g. eth1.
Only for virtual interfaces.
--bond-options BOND_OPTIONS Space separated options, e.g.
miimon=100. Only for bond interfaces.
--compute-attributes COMPUTE_ATTRS Compute resource specific attributes.
Comma-separated list of key=value.
--domain DOMAIN_NAME Domain name
--domain-id DOMAIN_ID Numerical ID or domain name
--host HOST_NAME Host name
--host-id HOST_ID
--identifier IDENTIFIER Device identifier, e.g. eth0 or
eth1.1
--ip IP IPv4 address of interface
--ip6 IP6 IPv6 address of interface
--mac MAC MAC address of interface. Required
for managed interfaces on bare metal.
--managed MANAGED Should this interface be managed via
DHCP and DNS capsule and should it be
configured during provisioning?
One of true/false, yes/no, 1/0.
--mode MODE Bond mode of the interface, e.g.
balance-rr. Only for bond interfaces.
Possible value(s): 'balance-rr',
'active-backup', 'balance-xor', 'broadcast', '802.3ad', 'balance-tlb',
'balance-alb'
--name NAME Interface's DNS name
--password PASSWORD Only for BMC interfaces.
--primary Should this interface be used for
constructing the FQDN of the host? Each managed hosts needs to have one
primary interface.
--provider PROVIDER Interface provider, e.g. IPMI. Only
for BMC interfaces.
Possible value(s): 'IPMI', 'SSH'
161
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer host interface delete [OPTIONS]
Options:
--host HOST_NAME Host name
--host-id HOST_ID
--id ID ID of interface
-h, --help print help
Usage:
hammer host interface info [OPTIONS]
Options:
--host HOST_NAME Host name
--host-id HOST_ID
--id ID ID or name of interface
-h, --help print help
Usage:
hammer host interface list [OPTIONS]
Options:
--domain DOMAIN_NAME Domain name
162
CHAPTER 10. REFERENCE
Usage:
hammer host interface update [OPTIONS]
Options:
--attached-devices ATTACHED_DEVICES Identifiers of attached interfaces,
e.g. `['eth1',
'eth2']`. For bond interfaces those
are the slaves. Only for bond
and bridges interfaces.
Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--attached-to ATTACHED_TO Identifier of the interface to which
this interface belongs, e.g. eth1.
Only for virtual interfaces.
--bond-options BOND_OPTIONS Space separated options, e.g.
miimon=100. Only for bond interfaces.
--compute-attributes COMPUTE_ATTRS Compute resource specific attributes.
Comma-separated list of key=value.
--domain DOMAIN_NAME Domain name
--domain-id DOMAIN_ID Numerical ID or domain name
--host HOST_NAME Host name
--host-id HOST_ID
--id ID ID of interface
--identifier IDENTIFIER Device identifier, e.g. eth0 or
eth1.1
--ip IP IPv4 address of interface
--ip6 IP6 IPv6 address of interface
--mac MAC MAC address of interface. Required
for managed interfaces on bare metal.
--managed MANAGED Should this interface be managed via
DHCP and DNS capsule and should it be
configured during provisioning?
One of true/false, yes/no, 1/0.
--mode MODE Bond mode of the interface, e.g.
balance-rr. Only for bond interfaces.
Possible value(s): 'balance-rr',
'active-backup', 'balance-xor', 'broadcast', '802.3ad', 'balance-tlb',
'balance-alb'
--name NAME Interface's DNS name
--password PASSWORD Only for BMC interfaces.
--primary Should this interface be used for
constructing the FQDN of the host? Each managed hosts needs to have one
163
Red Hat Satellite 6.3 Hammer CLI Guide
primary interface.
--provider PROVIDER Interface provider, e.g. IPMI. Only
for BMC interfaces.
Possible value(s): 'IPMI', 'SSH'
--provision Should this interface be used for
TFTP of PXELinux (or SSH for image-based hosts)? Each managed hosts needs
to have one provision interface.
--subnet SUBNET_NAME Subnet name
--subnet-id SUBNET_ID
--subnet6-id SUBNET6_ID Satellite subnet ID of IPv6
interface
--tag TAG VLAN tag, this attribute has
precedence over the subnet VLAN ID. Only for
virtual interfaces.
--type TYPE Interface type, e.g. bmc. Default is
interface
Possible value(s): 'interface',
'bmc', 'bond', 'bridge'
--username USERNAME Only for BMC interfaces.
--virtual VIRTUAL Alias or VLAN device
One of true/false, yes/no, 1/0.
-h, --help print help
Usage:
hammer host list [OPTIONS]
Options:
--environment ENVIRONMENT_NAME Environment name
--environment-id ENVIRONMENT_ID
--hostgroup HOSTGROUP_NAME Hostgroup name
--hostgroup-id HOSTGROUP_ID
--hostgroup-title HOSTGROUP_TITLE Hostgroup title
--location LOCATION_NAME Location name
--location-id LOCATION_ID
--location-title LOCATION_TITLE Location title
--order ORDER sort results
--organization ORGANIZATION_NAME Organization name
--organization-id ORGANIZATION_ID organization ID
--organization-title ORGANIZATION_TITLE Organization title
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
-h, --help print help
Usage:
hammer host package [OPTIONS] SUBCOMMAND [ARG] ...
164
CHAPTER 10. REFERENCE
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
install Install packages remotely
list List packages installed on the host
remove Uninstall packages remotely
upgrade Update packages remotely
upgrade-all Update packages remotely
Options:
-h, --help print help
Usage:
hammer host package install [OPTIONS]
Options:
--async Do not wait for the task
--host HOST_NAME Host name
--host-id HOST_ID
--packages PACKAGES List of package names
Comma separated list of values. Values
containing comma should be quoted or escaped with backslash
-h, --help print help
Usage:
hammer host package list [OPTIONS]
Options:
--by BY Field to sort the results on
--full-result FULL_RESULT Whether or not to show all results
One of true/false, yes/no, 1/0.
--host HOST_NAME Host name
--host-id HOST_ID
--order ORDER Sort field and order, eg. 'name DESC'
--page PAGE Page number, starting at 1
--per-page PER_PAGE Number of results per page to return
--search SEARCH Search string
-h, --help print help
165
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer host package remove [OPTIONS]
Options:
--async Do not wait for the task
--host HOST_NAME Host name
--host-id HOST_ID
--packages PACKAGES List of package names
Comma separated list of values. Values
containing comma should be quoted or escaped with backslash
-h, --help print help
Usage:
hammer host package upgrade [OPTIONS]
Options:
--async Do not wait for the task
--host HOST_NAME Host name
--host-id HOST_ID
--packages PACKAGES list of packages names
Comma separated list of values. Values
containing comma should be quoted or escaped with backslash
-h, --help print help
Usage:
hammer host package upgrade-all [OPTIONS]
Options:
--async Do not wait for the task
--host HOST_NAME Host name
--host-id HOST_ID
-h, --help print help
Usage:
hammer host package-group [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
166
CHAPTER 10. REFERENCE
Options:
-h, --help print help
Usage:
hammer host package-group install [OPTIONS]
Options:
--async Do not wait for the task
--groups GROUPS List of package group names
Comma separated list of values. Values
containing comma should be quoted or escaped with backslash
--host HOST_NAME Host name
--host-id HOST_ID
-h, --help print help
Usage:
hammer host package-group remove [OPTIONS]
Options:
--async Do not wait for the task
--groups GROUPS List of package group names
Comma separated list of values. Values
containing comma should be quoted or escaped with backslash
--host HOST_NAME Host name
--host-id HOST_ID
-h, --help print help
Usage:
hammer host puppet-classes [OPTIONS]
Options:
--host HOST_NAME Host name
--host-id HOST_ID
--order ORDER sort results
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
-h, --help print help
167
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer host puppetrun [OPTIONS]
Options:
--id ID
--name NAME Host name
-h, --help print help
Usage:
hammer host reboot [OPTIONS]
Options:
--id ID
--name NAME Host name
-h, --help print help
Usage:
hammer host rebuild-config [OPTIONS]
Options:
--id ID
--name NAME Host name
--only ONLY Limit rebuild steps, valid steps are DHCP,
DNS, TFTP
Comma separated list of values. Values
containing comma should be quoted or escaped with backslash
-h, --help print help
Usage:
hammer host reports [OPTIONS]
Options:
--id ID Host id
--name NAME Host name
--order ORDER sort results
--page PAGE paginate results
168
CHAPTER 10. REFERENCE
Usage:
hammer host sc-params [OPTIONS]
Options:
--host HOST_NAME Host name
--host-id HOST_ID
--order ORDER sort results
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
--show-hidden SHOW_HIDDEN Display hidden values
One of true/false, yes/no, 1/0.
-h, --help print help
Usage:
hammer host set-parameter [OPTIONS]
Options:
--hidden-value HIDDEN_VALUE should the value be hidden
One of true/false, yes/no, 1/0.
--host HOST_NAME Host name
--host-id HOST_ID
--name NAME parameter name
--value VALUE parameter value
-h, --help print help
Usage:
hammer host smart-variables [OPTIONS]
Options:
--host HOST_NAME Host name
--host-id HOST_ID
--order ORDER sort results
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
169
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer host start [OPTIONS]
Options:
--id ID
--name NAME Host name
-h, --help print help
Usage:
hammer host status [OPTIONS]
Options:
--id ID
--name NAME Host name
-h, --help print help
Usage:
hammer host stop [OPTIONS]
Options:
--force Force turning off a host
--id ID
--name NAME Host name
-h, --help print help
Usage:
hammer host subscription [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
170
CHAPTER 10. REFERENCE
Subcommands:
attach Add a subscription to a host
auto-attach Trigger an auto-attach of subscriptions
content-override Override product content defaults
product-content List associated products
register Register a host with subscription and
information.
remove
unregister Unregister the host as a subscription
consumer
Options:
-h, --help print help
Usage:
hammer host subscription attach [OPTIONS]
Options:
--host HOST_NAME Host name
--host-id HOST_ID
--quantity Quantity Quantity of this subscriptions to add.
Defaults to 1
--subscription-id SUBSCRIPTION_ID ID of subscription
-h, --help print help
Usage:
hammer host subscription auto-attach [OPTIONS]
Options:
--host HOST_NAME Host name
--host-id HOST_ID
-h, --help print help
Usage:
hammer host subscription content-override [OPTIONS]
Options:
--content-label CONTENT_LABEL Label of the content
--host HOST_NAME Host name
--host-id HOST_ID
--override-name OVERRIDE_NAME Override parameter key or name.
To enable or disable a repo select
171
Red Hat Satellite 6.3 Hammer CLI Guide
'enabled'.
Default value: enabled
Default: "enabled"
--remove Remove a content override
--value VALUE Override value. Note for repo enablement
you can use a boolean value
-h, --help print help
Usage:
hammer host subscription product-content [OPTIONS]
Options:
--content-access-mode-all CONTENT_ACCESS_MODE_ALL Get all content
available, not just that provided by subscriptions
One of true/false,
yes/no, 1/0.
--content-access-mode-env CONTENT_ACCESS_MODE_ENV Limit content to just
that available in the host's content view version
One of true/false,
yes/no, 1/0.
--host HOST_NAME Host name
--host-id HOST_ID
-h, --help print help
Usage:
hammer host subscription register [OPTIONS]
Options:
--content-view CONTENT_VIEW_NAME Content view name to
search by
--content-view-id CONTENT_VIEW_ID content view numeric
identifier
--hypervisor-guest-uuids HYPERVISOR_GUEST_UUIDS UUIDs of the virtual
guests from the host's hypervisor
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME Lifecycle environment
name to search by
--lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID ID of the environment
--name NAME Name of the host
--organization ORGANIZATION_NAME Organization name to
search by
--organization-id ORGANIZATION_ID Organization ID to
search by
--organization-label ORGANIZATION_LABEL Organization label
172
CHAPTER 10. REFERENCE
to search by
--release-version RELEASE_VERSION Release version of
the content host
--service-level SERVICE_LEVEL A service level for
auto-healing process, e.g. SELF-SUPPORT
--uuid UUID UUID to use for
registered host, random uuid is generated if not provided
-h, --help print help
Usage:
hammer host subscription remove [OPTIONS]
Options:
--host HOST_NAME Host name
--host-id HOST_ID
--quantity Quantity Remove the first instance of a
subscription with matching id and quantity
--subscription-id SUBSCRIPTION_ID ID of subscription
-h, --help print help
Usage:
hammer host subscription unregister [OPTIONS]
Options:
--host HOST_NAME Host name
--host-id HOST_ID
-h, --help print help
Usage:
hammer host update [OPTIONS]
Options:
--architecture ARCHITECTURE_NAME Architecture name
--architecture-id ARCHITECTURE_ID
--ask-root-password ASK_ROOT_PW One of true/false,
yes/no, 1/0.
--autoheal AUTOHEAL Sets whether the
Host will autoheal subscriptions upon checkin
One of true/false,
yes/no, 1/0.
--build BUILD One of true/false,
yes/no, 1/0.
--comment COMMENT Additional
173
Red Hat Satellite 6.3 Hammer CLI Guide
174
CHAPTER 10. REFERENCE
virtual machine
--managed MANAGED One of true/false,
yes/no, 1/0.
--medium MEDIUM_NAME Medium name
--medium-id MEDIUM_ID
--model MODEL_NAME Model name
--model-id MODEL_ID
--name NAME Host name
--new-name NEW_NAME
--openscap-proxy-id OPENSCAP_PROXY_ID ID of OpenSCAP
Capsule
--operatingsystem OPERATINGSYSTEM_TITLE Operating system
title
--operatingsystem-id OPERATINGSYSTEM_ID
--organization ORGANIZATION_NAME Organization name
--organization-id ORGANIZATION_ID organization ID
--organization-title ORGANIZATION_TITLE Organization title
--overwrite OVERWRITE One of true/false,
yes/no, 1/0.
--owner OWNER_LOGIN Login of the owner
--owner-id OWNER_ID ID of the owner
--owner-type OWNER_TYPE Host's owner type
Possible value(s):
'User', 'Usergroup'
--parameters PARAMS Host parameters.
Comma-separated
list of key=value.
--partition-table PARTITION_TABLE_NAME Partition table name
--partition-table-id PARTITION_TABLE_ID
--progress-report-id PROGRESS_REPORT_ID UUID to track
orchestration tasks status, GET
/api/orchestration/:UUID/tasks
--provision-method METHOD Possible value(s):
'build', 'image'
--puppet-ca-proxy PUPPET_CA_PROXY_NAME
--puppet-ca-proxy-id PUPPET_CA_PROXY_ID Puppet CA Capsule ID
--puppet-class-ids PUPPET_CLASS_IDS Comma separated list
of values. Values containing comma should be quoted or escaped with
backslash
--puppet-classes PUPPET_CLASS_NAMES Comma separated list
of values. Values containing comma should be quoted or escaped with
backslash
--puppet-proxy PUPPET_PROXY_NAME
--puppet-proxy-id PUPPET_PROXY_ID Puppet Capsule ID
--pxe-loader PXE_LOADER DHCP filename option
(Grub2/PXELinux by default)
Possible value(s):
'None', 'PXELinux BIOS', 'PXELinux UEFI', 'Grub UEFI', 'Grub UEFI
SecureBoot', 'Grub2 UEFI', 'Grub2 UEFI SecureBoot'
--realm REALM_NAME Name to search by
--realm-id REALM_ID Numerical ID or
realm name
--release-version RELEASE_VERSION Release version for
this Host to use (7Server, 7.1, etc)
--root-password, --root-pass ROOT_PW Required if host is
175
Red Hat Satellite 6.3 Hammer CLI Guide
managed and value is not inherited from host group or default password in
settings (--root-pass is deprecated: Use --root-password instead)
--service-level SERVICE_LEVEL Service level to be
used for autoheal.
--subnet SUBNET_NAME Subnet name
--subnet-id SUBNET_ID
--volume VOLUME Volume parameters
Comma-separated
list of key=value.
Can be specified
multiple times.
-h, --help print help
For virtual=true:
tag VLAN tag, this attribute has precedence over the
subnet VLAN ID. Only for virtual interfaces.
attached_to Identifier of the interface to which this
interface belongs, e.g. eth1.
For type=bond:
mode Possible values: balance-rr, active-backup,
balance-xor, broadcast, 802.3ad, balance-tlb, balance-alb
attached_devices Identifiers of slave interfaces, e.g. [eth1,eth2]
bond_options
For type=bmc:
provider always IPMI
username
password
GCE:
--compute-attributes:
machine_type
176
CHAPTER 10. REFERENCE
image_id
network
external_ip
Libvirt:
--compute-attributes:
cpus Number of CPUs
memory String, amount of memory, value in bytes
start Boolean (expressed as 0 or 1), whether to start
the machine or not
--interface:
compute_type Possible values: bridge, network
compute_network / compute_bridge Name of interface according to
type
compute_model Possible values: virtio, rtl8139,
ne2k_pci, pcnet, e1000
--volume:
pool_name One of available storage pools
capacity String value, eg. 10G
format_type Possible values: raw, qcow2
OpenStack:
--compute-attributes:
flavor_ref
image_ref
tenant_id
security_groups
network
oVirt:
--compute-attributes:
cluster
template Hardware profile to use
cores Integer value, number of cores
memory Amount of memory, integer value in bytes
start Boolean (expressed as 0 or 1), whether to start
the machine or not
--interface:
compute_name Eg. eth0
compute_network Select one of available networks for a cluster
--volume:
size_gb Volume size in GB, integer value
storage_domain Select one of available storage domains
bootable Boolean, only one volume can be bootable
Rackspace:
--compute-attributes:
flavor_id
image_id
VMWare:
--compute-attributes:
177
Red Hat Satellite 6.3 Hammer CLI Guide
--interface:
compute_type Type of the network adapter, for example one of:
VirtualVmxnet,
VirtualVmxnet2,
VirtualVmxnet3,
VirtualE1000,
VirtualE1000e,
VirtualPCNet32
See documentation center for your version of
vSphere to find more details about available adapter types:
https://www.vmware.com/support/pubs/
compute_network Network id from VMware
--volume:
name
datastore Datastore id from VMware
size_gb Integer number, volume size in GB
thin true/false
eager_zero true/false
Usage:
hammer host-collection [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
add-host Add host to the host collection
copy Copy a host collection
create Create a host collection
delete Destroy a host collection
erratum Manipulate errata for a host collection
hosts List all hosts
info Show a host collection
list List host collections
package Manipulate packages for a host collection
package-group Manipulate package-groups for a host
collection
178
CHAPTER 10. REFERENCE
Options:
-h, --help print help
Usage:
hammer host-collection add-host [OPTIONS]
Options:
--host-ids HOST_IDS Array of host ids
Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--hosts HOST_NAMES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--id ID Id of the host collection
--name NAME Host collection name to search
by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
-h, --help print help
Usage:
hammer host-collection copy [OPTIONS]
Options:
--id ID ID of the host collection
--name NAME Host collection name to search
by
--new-name NEW_NAME New host collection name
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
-h, --help print help
Usage:
hammer host-collection create [OPTIONS]
Options:
--description DESCRIPTION
179
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer host-collection delete [OPTIONS]
Options:
--id ID Id of the host collection
--name NAME Host collection name to search
by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
-h, --help print help
Usage:
hammer host-collection erratum [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
install Install errata on content hosts contained
within a host collection
Options:
-h, --help print help
180
CHAPTER 10. REFERENCE
Usage:
hammer host-collection erratum install [OPTIONS]
Options:
--errata ERRATA List of Errata to install
Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--id HOST_COLLECTION_ID Host Collection ID
--name HOST_COLLECTION_NAME Host Collection Name
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
-h, --help print help
Usage:
hammer host-collection hosts [OPTIONS]
Options:
--environment ENVIRONMENT_NAME Environment name
--environment-id ENVIRONMENT_ID
--hostgroup HOSTGROUP_NAME Hostgroup name
--hostgroup-id HOSTGROUP_ID
--hostgroup-title HOSTGROUP_TITLE Hostgroup title
--id HOST_COLLECTION_ID Host Collection ID
--include INCLUDE Array of extra information types
to include
Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--location LOCATION_NAME Location name
--location-id LOCATION_ID
--location-title LOCATION_TITLE Location title
--name HOST_COLLECTION_NAME Host Collection Name
--order ORDER sort results
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
--thin THIN Only list ID and name of hosts
One of true/false, yes/no, 1/0.
-h, --help print help
Usage:
hammer host-collection info [OPTIONS]
181
Red Hat Satellite 6.3 Hammer CLI Guide
Options:
--id ID Id of the host collection
--name NAME Host collection name to search
by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
-h, --help print help
Usage:
hammer host-collection list [OPTIONS]
Options:
--activation-key ACTIVATION_KEY_NAME Activation key name to search by
--activation-key-id ACTIVATION_KEY_ID ID of the activation key
--available-for AVAILABLE_FOR Interpret specified object to
return only Host Collections that can be
associated with specified
object. The value 'host' is supported.
--by BY Field to sort the results on
--full-result FULL_RESULT Whether or not to show all
results
One of true/false, yes/no, 1/0.
--host HOST_NAME Host name
--host-id HOST_ID
--name NAME host collection name to filter
by
--order ORDER Sort field and order, eg. 'name
DESC'
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--page PAGE Page number, starting at 1
--per-page PER_PAGE Number of results per page to
return
--search SEARCH Search string
-h, --help print help
Usage:
hammer host-collection package [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
182
CHAPTER 10. REFERENCE
Options:
-h, --help print help
Usage:
hammer host-collection package install [OPTIONS]
Options:
--id HOST_COLLECTION_ID Host Collection ID
--name HOST_COLLECTION_NAME Host Collection Name
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--packages PACKAGES comma-separated list of packages
to install
Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
-h, --help print help
Usage:
hammer host-collection package remove [OPTIONS]
Options:
--id HOST_COLLECTION_ID Host Collection ID
--name HOST_COLLECTION_NAME Host Collection Name
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--packages PACKAGES comma-separated list of packages
to install
Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
-h, --help print help
Usage:
hammer host-collection package update [OPTIONS]
183
Red Hat Satellite 6.3 Hammer CLI Guide
Options:
--id HOST_COLLECTION_ID Host Collection ID
--name HOST_COLLECTION_NAME Host Collection Name
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--packages PACKAGES comma-separated list of packages
to install
Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
-h, --help print help
Usage:
hammer host-collection package-group [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
install Install package-groups on content hosts
contained within a host collection
remove Remove package-groups on content hosts
contained within a host collection
update Update package-groups on content hosts
contained within a host collection
Options:
-h, --help print help
Usage:
hammer host-collection package-group install [OPTIONS]
Options:
--id HOST_COLLECTION_ID Host Collection ID
--name HOST_COLLECTION_NAME Host Collection Name
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--package-groups PACKAGE-GROUPS comma-separated list of package-
groups to install
Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
-h, --help print help
184
CHAPTER 10. REFERENCE
Usage:
hammer host-collection package-group remove [OPTIONS]
Options:
--id HOST_COLLECTION_ID Host Collection ID
--name HOST_COLLECTION_NAME Host Collection Name
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--package-groups PACKAGE-GROUPS comma-separated list of package-
groups to install
Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
-h, --help print help
Usage:
hammer host-collection package-group update [OPTIONS]
Options:
--id HOST_COLLECTION_ID Host Collection ID
--name HOST_COLLECTION_NAME Host Collection Name
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--package-groups PACKAGE-GROUPS comma-separated list of package-
groups to install
Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
-h, --help print help
Usage:
hammer host-collection remove-host [OPTIONS]
Options:
--host-ids HOST_IDS Array of host ids
Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--hosts HOST_NAMES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--id ID Id of the host collection
--name NAME Host collection name to search
by
185
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer host-collection update [OPTIONS]
Options:
--description DESCRIPTION
--host-ids HOST_IDS List of host ids to replace the
hosts in host collection
Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--hosts HOST_NAMES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--id ID Id of the host collection
--max-hosts MAX_HOSTS Maximum number of hosts in the
host collection
--name NAME Host collection name to search
by
--new-name NEW_NAME Host Collection name
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--unlimited-hosts UNLIMITED_HOSTS Whether or not the host
collection may have unlimited hosts
One of true/false, yes/no, 1/0.
-h, --help print help
Usage:
hammer hostgroup [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
create Create a host group
delete Delete a host group
delete-parameter Delete parameter for a hostgroup.
info Show a host group
list List all host groups
puppet-classes List all Puppet classes
sc-params List all smart class parameters
set-parameter Create or update parameter for a
186
CHAPTER 10. REFERENCE
hostgroup.
smart-variables List all smart variables
update Update a host group
Options:
-h, --help print help
Usage:
hammer hostgroup create [OPTIONS]
Options:
--architecture ARCHITECTURE_NAME Architecture
name
--architecture-id ARCHITECTURE_ID
--ask-root-pass ASK_ROOT_PW One of
true/false, yes/no, 1/0.
--compute-profile COMPUTE_PROFILE_NAME Name to search
by
--compute-profile-id COMPUTE_PROFILE_ID
--config-group-ids CONFIG_GROUP_IDS IDs of
associated config groups
Comma
separated list of values. Values containing comma should be quoted or
escaped with backslash
--config-groups CONFIG_GROUP_NAMES Comma
separated list of values. Values containing comma should be quoted or
escaped with backslash
--content-source-id CONTENT_SOURCE_ID Content source
ID
--content-view CONTENT_VIEW_NAME Name to search
by
--content-view-id CONTENT_VIEW_ID content view
numeric identifier
--domain DOMAIN_NAME Domain name
--domain-id DOMAIN_ID Numerical ID
or domain name
--environment ENVIRONMENT_NAME Environment
name
--environment-id ENVIRONMENT_ID
--group-parameters-attributes GROUP_PARAMETERS_ATTRIBUTES Array of
parameters
Comma
separated list of values. Values containing comma should be quoted or
escaped with backslash
--kickstart-repository-id KICKSTART_REPOSITORY_ID Kickstart
repository ID
--lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME Name to search
by
--lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID ID of the
environment
--location-ids LOCATION_IDS REPLACE
187
Red Hat Satellite 6.3 Hammer CLI Guide
188
CHAPTER 10. REFERENCE
Usage:
hammer hostgroup delete [OPTIONS]
Options:
--id ID
--name NAME Hostgroup name
--title TITLE Hostgroup title
-h, --help print help
Usage:
hammer hostgroup delete-parameter [OPTIONS]
Options:
--hostgroup HOSTGROUP_NAME Hostgroup name
--hostgroup-id HOSTGROUP_ID
--hostgroup-title HOSTGROUP_TITLE Hostgroup title
--name NAME parameter name
-h, --help print help
Usage:
hammer hostgroup info [OPTIONS]
Options:
--id ID
189
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer hostgroup list [OPTIONS]
Options:
--location LOCATION_NAME Location name
--location-id LOCATION_ID
--location-title LOCATION_TITLE Location title
--order ORDER sort results
--organization ORGANIZATION_NAME Organization name
--organization-id ORGANIZATION_ID organization ID
--organization-title ORGANIZATION_TITLE Organization title
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--puppet-class PUPPET_CLASS_NAME Puppet class name
--puppet-class-id PUPPET_CLASS_ID ID of Puppet class
--search SEARCH filter results
-h, --help print help
Usage:
hammer hostgroup puppet-classes [OPTIONS]
Options:
--hostgroup HOSTGROUP_NAME Hostgroup name
--hostgroup-id HOSTGROUP_ID
--hostgroup-title HOSTGROUP_TITLE Hostgroup title
--order ORDER sort results
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
-h, --help print help
Usage:
hammer hostgroup sc-params [OPTIONS]
190
CHAPTER 10. REFERENCE
Options:
--hostgroup HOSTGROUP_NAME Hostgroup name
--hostgroup-id HOSTGROUP_ID
--hostgroup-title HOSTGROUP_TITLE Hostgroup title
--order ORDER sort results
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
--show-hidden SHOW_HIDDEN Display hidden values
One of true/false, yes/no, 1/0.
-h, --help print help
Usage:
hammer hostgroup set-parameter [OPTIONS]
Options:
--hidden-value HIDDEN_VALUE should the value be hidden
One of true/false, yes/no, 1/0.
--hostgroup HOSTGROUP_NAME Hostgroup name
--hostgroup-id HOSTGROUP_ID
--hostgroup-title HOSTGROUP_TITLE Hostgroup title
--name NAME parameter name
--value VALUE parameter value
-h, --help print help
Usage:
hammer hostgroup smart-variables [OPTIONS]
Options:
--hostgroup HOSTGROUP_NAME Hostgroup name
--hostgroup-id HOSTGROUP_ID
--hostgroup-title HOSTGROUP_TITLE Hostgroup title
--order ORDER sort results
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
--show-hidden SHOW_HIDDEN Display hidden values
One of true/false, yes/no, 1/0.
-h, --help print help
191
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer hostgroup update [OPTIONS]
Options:
--architecture ARCHITECTURE_NAME Architecture
name
--architecture-id ARCHITECTURE_ID
--ask-root-pass ASK_ROOT_PW One of
true/false, yes/no, 1/0.
--compute-profile COMPUTE_PROFILE_NAME Name to search
by
--compute-profile-id COMPUTE_PROFILE_ID
--config-group-ids CONFIG_GROUP_IDS IDs of
associated config groups
Comma
separated list of values. Values containing comma should be quoted or
escaped with backslash
--config-groups CONFIG_GROUP_NAMES Comma
separated list of values. Values containing comma should be quoted or
escaped with backslash
--content-source-id CONTENT_SOURCE_ID Content source
ID
--content-view CONTENT_VIEW_NAME Name to search
by
--content-view-id CONTENT_VIEW_ID content view
numeric identifier
--domain DOMAIN_NAME Domain name
--domain-id DOMAIN_ID Numerical ID
or domain name
--environment ENVIRONMENT_NAME Environment
name
--environment-id ENVIRONMENT_ID
--group-parameters-attributes GROUP_PARAMETERS_ATTRIBUTES Array of
parameters
Comma
separated list of values. Values containing comma should be quoted or
escaped with backslash
--id ID
--kickstart-repository-id KICKSTART_REPOSITORY_ID Kickstart
repository ID
--lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME Name to search
by
--lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID ID of the
environment
--location-ids LOCATION_IDS REPLACE
locations with given ids
Comma
separated list of values. Values containing comma should be quoted or
escaped with backslash
--location-titles LOCATION_TITLES Comma
separated list of values. Values containing comma should be quoted or
escaped with backslash
--locations LOCATION_NAMES Comma
separated list of values. Values containing comma should be quoted or
escaped with backslash
--medium MEDIUM_NAME Medium name
192
CHAPTER 10. REFERENCE
--medium-id MEDIUM_ID
--name NAME Hostgroup
name
--new-name NEW_NAME Name of the
host group
--openscap-proxy-id OPENSCAP_PROXY_ID ID of OpenSCAP
Capsule
--operatingsystem OPERATINGSYSTEM_TITLE Operating
system title
--operatingsystem-id OPERATINGSYSTEM_ID
--organization-ids ORGANIZATION_IDS REPLACE
organizations with given ids.
Comma
separated list of values. Values containing comma should be quoted or
escaped with backslash
--organization-titles ORGANIZATION_TITLES Comma
separated list of values. Values containing comma should be quoted or
escaped with backslash
--organizations ORGANIZATION_NAMES Comma
separated list of values. Values containing comma should be quoted or
escaped with backslash
--parent PARENT_NAME Name of
parent hostgroup
--parent-id PARENT_ID Parent ID of
the host group
--partition-table PARTITION_TABLE_NAME Partition
table name
--partition-table-id PARTITION_TABLE_ID
--puppet-ca-proxy PUPPET_CA_PROXY_NAME Name of puppet
CA proxy
--puppet-ca-proxy-id PUPPET_CA_PROXY_ID Puppet CA
Capsule ID
--puppet-class-ids PUPPETCLASS_IDS List of
puppetclass ids
Comma
separated list of values. Values containing comma should be quoted or
escaped with backslash
--puppet-classes PUPPET_CLASS_NAMES Comma
separated list of values. Values containing comma should be quoted or
escaped with backslash
--puppet-proxy PUPPET_PROXY_NAME Name of puppet
proxy
--puppet-proxy-id PUPPET_PROXY_ID Puppet Capsule
ID
--pxe-loader PXE_LOADER DHCP filename
option (Grub2/PXELinux by default)
Possible
value(s): 'None', 'PXELinux BIOS', 'PXELinux UEFI', 'Grub UEFI', 'Grub
UEFI SecureBoot', 'Grub2 UEFI', 'Grub2 UEFI SecureBoot'
--query-organization ORGANIZATION_NAME Organization
name to search by
--query-organization-id ORGANIZATION_ID Organization
ID to search by
--query-organization-label ORGANIZATION_LABEL Organization
label to search by
--realm REALM_NAME Name to
193
Red Hat Satellite 6.3 Hammer CLI Guide
search by
--realm-id REALM_ID Numerical ID
or realm name
--root-pass ROOT_PASSWORD Root password
--subnet SUBNET_NAME Subnet name
--subnet-id SUBNET_ID
--title TITLE Hostgroup
title
-h, --help print help
Usage:
hammer job-invocation [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
create Create a job invocation
info Show job invocation
list List job invocations
output View the output for a host
Options:
-h, --help print help
Usage:
hammer job-invocation create [OPTIONS]
Options:
--async Do not wait
for the task
--bookmark BOOKMARK_NAME Name to search
by
--bookmark-id BOOKMARK_ID
--concurrency-level CONCURRENCY_LEVEL Run at most N
tasks at a time
--cron-line CRONLINE Create a
recurring execution
Cron line
format 'a b c d e', where:
a. is minute
(range: 0-59)
b. is hour
(range: 0-23)
c. is day of
194
CHAPTER 10. REFERENCE
Usage:
hammer job-invocation info [OPTIONS]
Options:
--id ID
-h, --help print help
195
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer job-invocation list [OPTIONS]
Options:
--order ORDER sort results
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
-h, --help print help
Usage:
hammer job-invocation output [OPTIONS]
Options:
--async Do not wait for job to complete, shows
current output only
--host HOST_NAME Host name
--host-id HOST_ID
--id ID
--name NAME Name to search by
-h, --help print help
Usage:
hammer job-template [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
create Create a job template
delete Delete a job template
dump View job template content
export Export a template including all metadata
import Import a job template from ERB
info Show job template details
list List job templates
update Update a job template
Options:
-h, --help print help
196
CHAPTER 10. REFERENCE
Usage:
hammer job-template create [OPTIONS]
Options:
--audit-comment AUDIT_COMMENT
--current-user CURRENT_USER Whether the current user login
should be used as the effective user
One of true/false, yes/no,
1/0.
--description-format DESCRIPTION_FORMAT This template is used to
generate the description. Input values can be used
using the syntax %{package}.
You may also include the job category and
template name using %
{job_category} and %{template_name}.
--file TEMPLATE Path to a file that contains
the template
--job-category JOB_CATEGORY Job category
--location-ids LOCATION_IDS REPLACE locations with given
ids
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--location-titles LOCATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--locations LOCATION_NAMES Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--locked LOCKED Whether or not the template is
locked for editing
One of true/false, yes/no,
1/0.
--name NAME Template name
--organization-ids ORGANIZATION_IDS REPLACE organizations with
given ids.
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--organization-titles ORGANIZATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--organizations ORGANIZATION_NAMES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--overridable OVERRIDABLE Whether it should be allowed
to override the effective user from the
invocation form.
One of true/false, yes/no,
1/0.
--provider-type PROVIDER_TYPE Provider type
Possible value(s): 'SSH'
--snippet SNIPPET One of true/false, yes/no,
1/0.
--value VALUE What user should be used to
run the script (using sudo-like mechanisms)
-h, --help print help
197
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer job-template delete [OPTIONS]
Options:
--id ID
--name NAME Name to search by
-h, --help print help
Usage:
hammer job-template dump [OPTIONS]
Options:
--id ID
--name NAME Name to search by
-h, --help print help
Usage:
hammer job-template export [OPTIONS]
Options:
--id ID
--name NAME Name to search by
-h, --help print help
Usage:
hammer job-template import [OPTIONS]
Options:
--file TEMPLATE Path to a file that contains the template -
must include ERB metadata
--overwrite OVERWRITE Overwrite template if it already exists
One of true/false, yes/no, 1/0.
-h, --help print help
198
CHAPTER 10. REFERENCE
Usage:
hammer job-template info [OPTIONS]
Options:
--id ID
--name NAME Name to search by
-h, --help print help
Usage:
hammer job-template list [OPTIONS]
Options:
--location LOCATION_NAME Location name
--location-id LOCATION_ID
--location-title LOCATION_TITLE Location title
--order ORDER sort results
--organization ORGANIZATION_NAME Organization name
--organization-id ORGANIZATION_ID organization ID
--organization-title ORGANIZATION_TITLE Organization title
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
-h, --help print help
Usage:
hammer job-template update [OPTIONS]
Options:
--audit-comment AUDIT_COMMENT
--current-user CURRENT_USER Whether the current user login
should be used as the effective user
One of true/false, yes/no,
1/0.
--description-format DESCRIPTION_FORMAT This template is used to
generate the description. Input values can be used
using the syntax %{package}.
You may also include the job category and
template name using %
{job_category} and %{template_name}.
--file TEMPLATE Path to a file that contains
the template
--id ID
--job-category JOB_CATEGORY Job category
--location-ids LOCATION_IDS REPLACE locations with given
199
Red Hat Satellite 6.3 Hammer CLI Guide
ids
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--location-titles LOCATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--locations LOCATION_NAMES Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--locked LOCKED Whether or not the template is
locked for editing
One of true/false, yes/no,
1/0.
--name NAME Name to search by
--new-name NEW_NAME Template name
--organization-ids ORGANIZATION_IDS REPLACE organizations with
given ids.
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--organization-titles ORGANIZATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--organizations ORGANIZATION_NAMES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--overridable OVERRIDABLE Whether it should be allowed
to override the effective user from the
invocation form.
One of true/false, yes/no,
1/0.
--provider-type PROVIDER_TYPE Provider type
Possible value(s): 'SSH'
--snippet SNIPPET One of true/false, yes/no,
1/0.
--value VALUE What user should be used to
run the script (using sudo-like mechanisms)
-h, --help print help
Usage:
hammer lifecycle-environment [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
create Create an environment
delete Destroy an environment
info Show an environment
list List environments in an organization
paths List environment paths
update Update an environment
Options:
-h, --help print help
200
CHAPTER 10. REFERENCE
Usage:
hammer lifecycle-environment create [OPTIONS]
Options:
--description DESCRIPTION description of the environment
--label LABEL label of the environment
--name NAME name of the environment
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--prior PRIOR Name of the prior environment
--prior-id PRIOR_ID ID of an environment that is
prior to the new environment in the chain. It
has to be either the ID of
Library or the ID of an environment at the end
of a chain.
-h, --help print help
Usage:
hammer lifecycle-environment delete [OPTIONS]
Options:
--id ID ID of the environment
--name NAME Lifecycle environment name to
search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
-h, --help print help
Usage:
hammer lifecycle-environment info [OPTIONS]
Options:
--id ID ID of the environment
--name NAME Lifecycle environment name to
search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
-h, --help print help
201
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer lifecycle-environment list [OPTIONS]
Options:
--by BY Field to sort the results on
--full-result FULL_RESULT Whether or not to show all
results
One of true/false, yes/no, 1/0.
--library LIBRARY set true if you want to see only
library environments
Possible value(s): 'true',
'false'
--name NAME filter only environments
containing this name
--order ORDER Sort field and order, eg. 'name
DESC'
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--page PAGE Page number, starting at 1
--per-page PER_PAGE Number of results per page to
return
--search SEARCH Search string
-h, --help print help
Usage:
hammer lifecycle-environment paths [OPTIONS]
Options:
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--permission-type PERMISSION_TYPE The associated permission type.
One of (readable | promotable) Default:
readable
-h, --help print help
Usage:
hammer lifecycle-environment update [OPTIONS]
Options:
--description DESCRIPTION description of the environment
202
CHAPTER 10. REFERENCE
Usage:
hammer location [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
add-compute-resource Associate a compute resource
add-config-template Associate a configuration template
add-domain Associate a domain
add-environment Associate an environment
add-hostgroup Associate a hostgroup
add-medium Associate a medium
add-organization Associate an organization
add-smart-proxy Associate a smart proxy
add-subnet Associate a subnet
add-user Associate an user
create Create a location
delete Delete a location
delete-parameter Delete parameter for a location.
info Show a location
list List all locations
remove-compute-resource Disassociate a compute resource
remove-config-template Disassociate a configuration template
remove-domain Disassociate a domain
remove-environment Disassociate an environment
remove-hostgroup Disassociate a hostgroup
remove-medium Disassociate a medium
remove-organization Disassociate an organization
remove-smart-proxy Disassociate a smart proxy
remove-subnet Disassociate a subnet
remove-user Disassociate an user
set-parameter Create or update parameter for a location.
update Update a location
Options:
-h, --help print help
203
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer location add-compute-resource [OPTIONS]
Options:
--compute-resource COMPUTE_RESOURCE_NAME Compute resource name
--compute-resource-id COMPUTE_RESOURCE_ID
--id ID
--name NAME Location name
--title TITLE Location title
-h, --help print help
Usage:
hammer location add-config-template [OPTIONS]
Options:
--config-template CONFIG_TEMPLATE_NAME Name to search by
--config-template-id CONFIG_TEMPLATE_ID
--id ID
--name NAME Location name
--title TITLE Location title
-h, --help print help
Usage:
hammer location add-domain [OPTIONS]
Options:
--domain DOMAIN_NAME Domain name
--domain-id DOMAIN_ID Numerical ID or domain name
--id ID
--name NAME Location name
--title TITLE Location title
-h, --help print help
Usage:
hammer location add-environment [OPTIONS]
Options:
--environment ENVIRONMENT_NAME Environment name
--environment-id ENVIRONMENT_ID
204
CHAPTER 10. REFERENCE
--id ID
--name NAME Location name
--title TITLE Location title
-h, --help print help
Usage:
hammer location add-hostgroup [OPTIONS]
Options:
--hostgroup HOSTGROUP_NAME Hostgroup name
--hostgroup-id HOSTGROUP_ID
--hostgroup-title HOSTGROUP_TITLE Hostgroup title
--id ID
--name NAME Location name
--title TITLE Location title
-h, --help print help
Usage:
hammer location add-medium [OPTIONS]
Options:
--id ID
--medium MEDIUM_NAME Medium name
--medium-id MEDIUM_ID
--name NAME Location name
--title TITLE Location title
-h, --help print help
Usage:
hammer location add-organization [OPTIONS]
Options:
--id ID
--name NAME Location name
--organization ORGANIZATION_NAME Organization name
--organization-id ORGANIZATION_ID organization ID
--organization-title ORGANIZATION_TITLE Organization title
--title TITLE Location title
-h, --help print help
205
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer location add-smart-proxy [OPTIONS]
Options:
--id ID
--name NAME Location name
--smart-proxy SMART_PROXY_NAME Name to search by
--smart-proxy-id SMART_PROXY_ID
--title TITLE Location title
-h, --help print help
Usage:
hammer location add-subnet [OPTIONS]
Options:
--id ID
--name NAME Location name
--subnet SUBNET_NAME Subnet name
--subnet-id SUBNET_ID
--title TITLE Location title
-h, --help print help
Usage:
hammer location add-user [OPTIONS]
Options:
--id ID
--name NAME Location name
--title TITLE Location title
--user USER_LOGIN User's login to search by
--user-id USER_ID
-h, --help print help
Usage:
hammer location create [OPTIONS]
Options:
206
CHAPTER 10. REFERENCE
207
Red Hat Satellite 6.3 Hammer CLI Guide
IDs
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--partition-tables PARTITION_TABLE_NAMES Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--provisioning-template-ids PROVISIONING_TEMPLATE_IDS Provisioning
template IDs
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--provisioning-templates PROVISIONING_TEMPLATE_NAMES Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--realm-ids REALM_IDS Realm IDs
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--realms REALM_NAMES Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--smart-proxies SMART_PROXY_NAMES Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--smart-proxy-ids SMART_PROXY_IDS Capsule IDs
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--subnet-ids SUBNET_IDS Subnet IDs
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--subnets SUBNET_NAMES Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--user-ids USER_IDS User IDs
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--users USER_LOGINS Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
-h, --help print help
Usage:
hammer location delete [OPTIONS]
Options:
--id ID Location numeric id to search by
208
CHAPTER 10. REFERENCE
Usage:
hammer location delete-parameter [OPTIONS]
Options:
--location LOCATION_NAME Location name
--location-id LOCATION_ID
--location-title LOCATION_TITLE Location title
--name NAME parameter name
-h, --help print help
Usage:
hammer location info [OPTIONS]
Options:
--id ID Location numeric id to
search by
--name NAME Organization name
--show-hidden-parameters SHOW_HIDDEN_PARAMETERS Display hidden parameter
values
One of true/false,
yes/no, 1/0.
--title TITLE Organization title
-h, --help print help
Usage:
hammer location list [OPTIONS]
Options:
--order ORDER sort results
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
-h, --help print help
209
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer location remove-compute-resource [OPTIONS]
Options:
--compute-resource COMPUTE_RESOURCE_NAME Compute resource name
--compute-resource-id COMPUTE_RESOURCE_ID
--id ID
--name NAME Location name
--title TITLE Location title
-h, --help print help
Usage:
hammer location remove-config-template [OPTIONS]
Options:
--config-template CONFIG_TEMPLATE_NAME Name to search by
--config-template-id CONFIG_TEMPLATE_ID
--id ID
--name NAME Location name
--title TITLE Location title
-h, --help print help
Usage:
hammer location remove-domain [OPTIONS]
Options:
--domain DOMAIN_NAME Domain name
--domain-id DOMAIN_ID Numerical ID or domain name
--id ID
--name NAME Location name
--title TITLE Location title
-h, --help print help
Usage:
hammer location remove-environment [OPTIONS]
Options:
--environment ENVIRONMENT_NAME Environment name
--environment-id ENVIRONMENT_ID
--id ID
210
CHAPTER 10. REFERENCE
Usage:
hammer location remove-hostgroup [OPTIONS]
Options:
--hostgroup HOSTGROUP_NAME Hostgroup name
--hostgroup-id HOSTGROUP_ID
--hostgroup-title HOSTGROUP_TITLE Hostgroup title
--id ID
--name NAME Location name
--title TITLE Location title
-h, --help print help
Usage:
hammer location remove-medium [OPTIONS]
Options:
--id ID
--medium MEDIUM_NAME Medium name
--medium-id MEDIUM_ID
--name NAME Location name
--title TITLE Location title
-h, --help print help
Usage:
hammer location remove-organization [OPTIONS]
Options:
--id ID
--name NAME Location name
--organization ORGANIZATION_NAME Organization name
--organization-id ORGANIZATION_ID organization ID
--organization-title ORGANIZATION_TITLE Organization title
--title TITLE Location title
-h, --help print help
211
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer location remove-smart-proxy [OPTIONS]
Options:
--id ID
--name NAME Location name
--smart-proxy SMART_PROXY_NAME Name to search by
--smart-proxy-id SMART_PROXY_ID
--title TITLE Location title
-h, --help print help
Usage:
hammer location remove-subnet [OPTIONS]
Options:
--id ID
--name NAME Location name
--subnet SUBNET_NAME Subnet name
--subnet-id SUBNET_ID
--title TITLE Location title
-h, --help print help
Usage:
hammer location remove-user [OPTIONS]
Options:
--id ID
--name NAME Location name
--title TITLE Location title
--user USER_LOGIN User's login to search by
--user-id USER_ID
-h, --help print help
Usage:
hammer location set-parameter [OPTIONS]
Options:
--hidden-value HIDDEN_VALUE should the value be hidden
One of true/false, yes/no, 1/0.
212
CHAPTER 10. REFERENCE
Usage:
hammer location update [OPTIONS]
Options:
--compute-resource-ids COMPUTE_RESOURCE_IDS Compute resource
IDs
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--compute-resources COMPUTE_RESOURCE_NAMES Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--config-template-ids CONFIG_TEMPLATE_IDS Provisioning
template IDs
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--config-templates CONFIG_TEMPLATE_NAMES Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--description DESCRIPTION
--domain-ids DOMAIN_IDS Domain IDs
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--domains DOMAIN_NAMES Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--environment-ids ENVIRONMENT_IDS Environment IDs
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--environments ENVIRONMENT_NAMES Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--hostgroup-ids HOSTGROUP_IDS Host group IDs
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--hostgroup-titles HOSTGROUP_TITLES Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--hostgroups HOSTGROUP_NAMES Comma separated
list of values. Values containing comma should be quoted or escaped with
213
Red Hat Satellite 6.3 Hammer CLI Guide
backslash
--id ID Location numeric
id to search by
--ignore-types IGNORE_TYPES List of resources
types that will be automatically associated
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--media MEDIUM_NAMES Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--medium-ids MEDIUM_IDS Medium IDs
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--name NAME Location name
--new-name NEW_NAME
--parent-id PARENT_ID Parent ID
--partition-table-ids PARTITION_TABLE_IDS Partition template
IDs
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--partition-tables PARTITION_TABLE_NAMES Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--provisioning-template-ids PROVISIONING_TEMPLATE_IDS Provisioning
template IDs
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--provisioning-templates PROVISIONING_TEMPLATE_NAMES Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--realm-ids REALM_IDS Realm IDs
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--realms REALM_NAMES Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--smart-proxies SMART_PROXY_NAMES Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--smart-proxy-ids SMART_PROXY_IDS Capsule IDs
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--subnet-ids SUBNET_IDS Subnet IDs
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--subnets SUBNET_NAMES Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--title TITLE Location title
214
CHAPTER 10. REFERENCE
Usage:
hammer medium [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
add-operatingsystem Associate an operating system
create Create a medium
delete Delete a medium
info Show a medium
list List all installation media
remove-operatingsystem Disassociate an operating system
update Update a medium
Options:
-h, --help print help
Usage:
hammer medium add-operatingsystem [OPTIONS]
Options:
--id ID
--name NAME Medium name
--operatingsystem OPERATINGSYSTEM_TITLE Operating system title
--operatingsystem-id OPERATINGSYSTEM_ID
-h, --help print help
Usage:
hammer medium create [OPTIONS]
215
Red Hat Satellite 6.3 Hammer CLI Guide
Options:
--location-ids LOCATION_IDS REPLACE locations with given
ids
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--location-titles LOCATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--locations LOCATION_NAMES Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--name NAME Name of media
--operatingsystem-ids OPERATINGSYSTEM_IDS Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--operatingsystems OPERATINGSYSTEM_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--organization-ids ORGANIZATION_IDS REPLACE organizations with
given ids.
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--organization-titles ORGANIZATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--organizations ORGANIZATION_NAMES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--os-family OS_FAMILY Operating system family,
available values: AIX, Altlinux, Archlinux,
Coreos, Debian, Freebsd,
Gentoo, Junos, NXOS, Redhat, Solaris, Suse,
Windows, Xenserver
--path PATH The path to the medium, can be
a URL or a valid NFS server (exclusive of
the architecture).
for example
mirror.centos.org/centos/$version/os/$arch
where $arch will be
substituted for the host's actual OS architecture
and $version, $major and
$minor will be substituted for the version of the
operating system.
Usage:
hammer medium delete [OPTIONS]
Options:
--id ID
--name NAME Medium name
-h, --help print help
216
CHAPTER 10. REFERENCE
Usage:
hammer medium info [OPTIONS]
Options:
--id ID
--name NAME Medium name
-h, --help print help
Usage:
hammer medium list [OPTIONS]
Options:
--location LOCATION_NAME Location name
--location-id LOCATION_ID
--location-title LOCATION_TITLE Location title
--operatingsystem OPERATINGSYSTEM_TITLE Operating system title
--operatingsystem-id OPERATINGSYSTEM_ID
--order ORDER sort results
--organization ORGANIZATION_NAME Organization name
--organization-id ORGANIZATION_ID organization ID
--organization-title ORGANIZATION_TITLE Organization title
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
-h, --help print help
Usage:
hammer medium remove-operatingsystem [OPTIONS]
Options:
--id ID
--name NAME Medium name
--operatingsystem OPERATINGSYSTEM_TITLE Operating system title
--operatingsystem-id OPERATINGSYSTEM_ID
-h, --help print help
Usage:
217
Red Hat Satellite 6.3 Hammer CLI Guide
Options:
--id ID
--location-ids LOCATION_IDS REPLACE locations with given
ids
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--location-titles LOCATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--locations LOCATION_NAMES Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--name NAME Medium name
--new-name NEW_NAME Name of media
--operatingsystem-ids OPERATINGSYSTEM_IDS Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--operatingsystems OPERATINGSYSTEM_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--organization-ids ORGANIZATION_IDS REPLACE organizations with
given ids.
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--organization-titles ORGANIZATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--organizations ORGANIZATION_NAMES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--os-family OS_FAMILY Operating system family,
available values: AIX, Altlinux, Archlinux,
Coreos, Debian, Freebsd,
Gentoo, Junos, NXOS, Redhat, Solaris, Suse,
Windows, Xenserver
--path PATH The path to the medium, can be
a URL or a valid NFS server (exclusive of
the architecture).
for example
mirror.centos.org/centos/$version/os/$arch
where $arch will be
substituted for the host's actual OS architecture
and $version, $major and
$minor will be substituted for the version of the
operating system.
Usage:
hammer model [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
218
CHAPTER 10. REFERENCE
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
create Create a hardware model
delete Delete a hardware model
info Show a hardware model
list List all hardware models
update Update a hardware model
Options:
-h, --help print help
Usage:
hammer model create [OPTIONS]
Options:
--hardware-model HARDWARE_MODEL
--info INFO
--name NAME
--vendor-class VENDOR_CLASS
-h, --help print help
Usage:
hammer model delete [OPTIONS]
Options:
--id ID
--name NAME Model name
-h, --help print help
Usage:
hammer model info [OPTIONS]
Options:
--id ID
--name NAME Model name
-h, --help print help
219
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer model list [OPTIONS]
Options:
--order ORDER sort results
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
-h, --help print help
Usage:
hammer model update [OPTIONS]
Options:
--hardware-model HARDWARE_MODEL
--id ID
--info INFO
--name NAME Model name
--new-name NEW_NAME
--vendor-class VENDOR_CLASS
-h, --help print help
Usage:
hammer organization [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
add-compute-resource Associate a compute resource
add-config-template Associate a configuration template
add-domain Associate a domain
add-environment Associate an environment
add-hostgroup Associate a hostgroup
add-location Associate a location
add-medium Associate a medium
add-smart-proxy Associate a smart proxy
add-subnet Associate a subnet
add-user Associate an user
create Create organization
delete Delete an organization
delete-parameter Delete parameter for an organization.
info Show organization
220
CHAPTER 10. REFERENCE
Options:
-h, --help print help
Usage:
hammer organization add-compute-resource [OPTIONS]
Options:
--compute-resource COMPUTE_RESOURCE_NAME Compute resource name
--compute-resource-id COMPUTE_RESOURCE_ID
--id ID organization ID
--name NAME Organization name
--title TITLE Organization title
-h, --help print help
Usage:
hammer organization add-config-template [OPTIONS]
Options:
--config-template CONFIG_TEMPLATE_NAME Name to search by
--config-template-id CONFIG_TEMPLATE_ID
--id ID organization ID
--name NAME Organization name
--title TITLE Organization title
-h, --help print help
Usage:
221
Red Hat Satellite 6.3 Hammer CLI Guide
Options:
--domain DOMAIN_NAME Domain name
--domain-id DOMAIN_ID Numerical ID or domain name
--id ID organization ID
--name NAME Organization name
--title TITLE Organization title
-h, --help print help
Usage:
hammer organization add-environment [OPTIONS]
Options:
--environment ENVIRONMENT_NAME Environment name
--environment-id ENVIRONMENT_ID
--id ID organization ID
--name NAME Organization name
--title TITLE Organization title
-h, --help print help
Usage:
hammer organization add-hostgroup [OPTIONS]
Options:
--hostgroup HOSTGROUP_NAME Hostgroup name
--hostgroup-id HOSTGROUP_ID
--hostgroup-title HOSTGROUP_TITLE Hostgroup title
--id ID organization ID
--name NAME Organization name
--title TITLE Organization title
-h, --help print help
Usage:
hammer organization add-location [OPTIONS]
Options:
--id ID organization ID
--location LOCATION_NAME Location name
--location-id LOCATION_ID
--location-title LOCATION_TITLE Location title
222
CHAPTER 10. REFERENCE
Usage:
hammer organization add-medium [OPTIONS]
Options:
--id ID organization ID
--medium MEDIUM_NAME Medium name
--medium-id MEDIUM_ID
--name NAME Organization name
--title TITLE Organization title
-h, --help print help
Usage:
hammer organization add-smart-proxy [OPTIONS]
Options:
--id ID organization ID
--name NAME Organization name
--smart-proxy SMART_PROXY_NAME Name to search by
--smart-proxy-id SMART_PROXY_ID
--title TITLE Organization title
-h, --help print help
Usage:
hammer organization add-subnet [OPTIONS]
Options:
--id ID organization ID
--name NAME Organization name
--subnet SUBNET_NAME Subnet name
--subnet-id SUBNET_ID
--title TITLE Organization title
-h, --help print help
223
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer organization add-user [OPTIONS]
Options:
--id ID organization ID
--name NAME Organization name
--title TITLE Organization title
--user USER_LOGIN User's login to search by
--user-id USER_ID
-h, --help print help
Usage:
hammer organization create [OPTIONS]
Options:
--compute-resource-ids COMPUTE_RESOURCE_IDS Compute resource
IDs
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--compute-resources COMPUTE_RESOURCE_NAMES Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--config-template-ids CONFIG_TEMPLATE_IDS Provisioning
template IDs
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--config-templates CONFIG_TEMPLATE_NAMES Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--description DESCRIPTION description
--domain-ids DOMAIN_IDS Domain IDs
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--domains DOMAIN_NAMES Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--environment-ids ENVIRONMENT_IDS Environment IDs
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--environments ENVIRONMENT_NAMES Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--hostgroup-ids HOSTGROUP_IDS Host group IDs
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--hostgroup-titles HOSTGROUP_TITLES Comma separated
224
CHAPTER 10. REFERENCE
225
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer organization delete [OPTIONS]
Options:
--async Do not wait for the task
--id ID
--label LABEL Organization label to search by
--name NAME Organization name
--title TITLE Organization title
-h, --help print help
Usage:
hammer organization delete-parameter [OPTIONS]
Options:
--name NAME parameter name
--organization ORGANIZATION_NAME Organization name
--organization-id ORGANIZATION_ID organization ID
--organization-title ORGANIZATION_TITLE Organization title
-h, --help print help
Usage:
hammer organization info [OPTIONS]
Options:
--id ID
--label LABEL Organization label to search by
--name NAME Organization name
--title TITLE Organization title
-h, --help print help
Usage:
226
CHAPTER 10. REFERENCE
Options:
--by BY Field to sort the results on
--full-result FULL_RESULT Whether or not to show all results
One of true/false, yes/no, 1/0.
--order ORDER Sort field and order, eg. 'name DESC'
--page PAGE Page number, starting at 1
--per-page PER_PAGE Number of results per page to return
--search SEARCH Search string
-h, --help print help
Usage:
hammer organization remove-compute-resource [OPTIONS]
Options:
--compute-resource COMPUTE_RESOURCE_NAME Compute resource name
--compute-resource-id COMPUTE_RESOURCE_ID
--id ID organization ID
--name NAME Organization name
--title TITLE Organization title
-h, --help print help
Usage:
hammer organization remove-config-template [OPTIONS]
Options:
--config-template CONFIG_TEMPLATE_NAME Name to search by
--config-template-id CONFIG_TEMPLATE_ID
--id ID organization ID
--name NAME Organization name
--title TITLE Organization title
-h, --help print help
Usage:
hammer organization remove-domain [OPTIONS]
Options:
--domain DOMAIN_NAME Domain name
--domain-id DOMAIN_ID Numerical ID or domain name
--id ID organization ID
227
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer organization remove-environment [OPTIONS]
Options:
--environment ENVIRONMENT_NAME Environment name
--environment-id ENVIRONMENT_ID
--id ID organization ID
--name NAME Organization name
--title TITLE Organization title
-h, --help print help
Usage:
hammer organization remove-hostgroup [OPTIONS]
Options:
--hostgroup HOSTGROUP_NAME Hostgroup name
--hostgroup-id HOSTGROUP_ID
--hostgroup-title HOSTGROUP_TITLE Hostgroup title
--id ID organization ID
--name NAME Organization name
--title TITLE Organization title
-h, --help print help
Usage:
hammer organization remove-location [OPTIONS]
Options:
--id ID organization ID
--location LOCATION_NAME Location name
--location-id LOCATION_ID
--location-title LOCATION_TITLE Location title
--name NAME Organization name
--title TITLE Organization title
-h, --help print help
228
CHAPTER 10. REFERENCE
Disassociate a medium
Usage:
hammer organization remove-medium [OPTIONS]
Options:
--id ID organization ID
--medium MEDIUM_NAME Medium name
--medium-id MEDIUM_ID
--name NAME Organization name
--title TITLE Organization title
-h, --help print help
Usage:
hammer organization remove-smart-proxy [OPTIONS]
Options:
--id ID organization ID
--name NAME Organization name
--smart-proxy SMART_PROXY_NAME Name to search by
--smart-proxy-id SMART_PROXY_ID
--title TITLE Organization title
-h, --help print help
Usage:
hammer organization remove-subnet [OPTIONS]
Options:
--id ID organization ID
--name NAME Organization name
--subnet SUBNET_NAME Subnet name
--subnet-id SUBNET_ID
--title TITLE Organization title
-h, --help print help
Usage:
hammer organization remove-user [OPTIONS]
Options:
--id ID organization ID
--name NAME Organization name
229
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer organization 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
--organization ORGANIZATION_NAME Organization name
--organization-id ORGANIZATION_ID organization ID
--organization-title ORGANIZATION_TITLE Organization title
--value VALUE parameter value
-h, --help print help
Usage:
hammer organization update [OPTIONS]
Options:
--compute-resource-ids COMPUTE_RESOURCE_IDS Compute resource
IDs
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--compute-resources COMPUTE_RESOURCE_NAMES Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--config-template-ids CONFIG_TEMPLATE_IDS Provisioning
template IDs
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--config-templates CONFIG_TEMPLATE_NAMES Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--description DESCRIPTION
--domain-ids DOMAIN_IDS Domain IDs
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--domains DOMAIN_NAMES Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
230
CHAPTER 10. REFERENCE
231
Red Hat Satellite 6.3 Hammer CLI Guide
10.37. HAMMER OS
Manipulate operating system.
Usage:
hammer os [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
add-architecture Associate an architecture
add-config-template Associate a configuration template
add-ptable Associate a partition table
create Create an operating system
delete Delete an operating system
delete-default-template
delete-parameter Delete parameter for an operating system.
232
CHAPTER 10. REFERENCE
Options:
-h, --help print help
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
Usage:
hammer os add-config-template [OPTIONS]
Options:
--config-template CONFIG_TEMPLATE_NAME Name to search by
--config-template-id CONFIG_TEMPLATE_ID
--id ID
--title TITLE Operating system title
-h, --help print help
Usage:
hammer os add-ptable [OPTIONS]
Options:
--id ID
--partition-table PARTITION_TABLE_NAME Partition table name
233
Red Hat Satellite 6.3 Hammer CLI Guide
--partition-table-id PARTITION_TABLE_ID
--title TITLE Operating system title
-h, --help print help
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
--architectures ARCHITECTURE_NAMES Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--config-template-ids CONFIG_TEMPLATE_IDS IDs of associated
provisioning templates
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--config-templates CONFIG_TEMPLATE_NAMES Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--description DESCRIPTION
--family FAMILY
--major MAJOR
--media MEDIUM_NAMES Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--medium-ids MEDIUM_IDS IDs of associated
media
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--minor MINOR
--name NAME
--os-parameters-attributes OS_PARAMETERS_ATTRIBUTES Array of parameters
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--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
--partition-tables PARTITION_TABLE_NAMES Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--password-hash PASSWORD_HASH Root password hash
function to use, one of MD5, SHA256, SHA512, Base64
234
CHAPTER 10. REFERENCE
Usage:
hammer os delete [OPTIONS]
Options:
--id ID
--title TITLE Operating system title
-h, --help print help
Usage:
hammer os delete-default-template [OPTIONS]
Options:
--id OS ID operatingsystem id
--type TPL TYPE Type of the config template
-h, --help print help
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
Usage:
hammer os info [OPTIONS]
235
Red Hat Satellite 6.3 Hammer CLI Guide
Options:
--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
Usage:
hammer os list [OPTIONS]
Options:
--architecture ARCHITECTURE_NAME Architecture name
--architecture-id ARCHITECTURE_ID
--config-template CONFIG_TEMPLATE_NAME Name to search by
--config-template-id CONFIG_TEMPLATE_ID
--medium MEDIUM_NAME Medium name
--medium-id MEDIUM_ID
--order ORDER sort results
--os-parameters-attributes OS_PARAMETERS_ATTRIBUTES Array of parameters
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--page PAGE paginate results
--partition-table PARTITION_TABLE_NAME Partition table name
--partition-table-id PARTITION_TABLE_ID
--per-page PER_PAGE number of entries
per request
--provisioning-template PROVISIONING_TEMPLATE_NAME Name to search by
--provisioning-template-id PROVISIONING_TEMPLATE_ID
--search SEARCH filter results
-h, --help print help
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
236
CHAPTER 10. REFERENCE
Usage:
hammer os remove-config-template [OPTIONS]
Options:
--config-template CONFIG_TEMPLATE_NAME Name to search by
--config-template-id CONFIG_TEMPLATE_ID
--id ID
--title TITLE Operating system title
-h, --help print help
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
Usage:
hammer os set-default-template [OPTIONS]
Options:
--config-template-id TPL ID config template id to be set
--id OS ID operatingsystem id
-h, --help print help
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
--value VALUE parameter value
-h, --help print help
237
Red Hat Satellite 6.3 Hammer CLI Guide
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
--architectures ARCHITECTURE_NAMES Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--config-template-ids CONFIG_TEMPLATE_IDS IDs of associated
provisioning templates
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--config-templates CONFIG_TEMPLATE_NAMES Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--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
--medium-ids MEDIUM_IDS IDs of associated
media
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--minor MINOR
--name NAME
--os-parameters-attributes OS_PARAMETERS_ATTRIBUTES Array of parameters
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--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
--partition-tables PARTITION_TABLE_NAMES Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--password-hash PASSWORD_HASH Root password hash
function to use, one of MD5, SHA256, SHA512, Base64
--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
238
CHAPTER 10. REFERENCE
backslash
--provisioning-templates PROVISIONING_TEMPLATE_NAMES Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--release-name RELEASE_NAME
--title TITLE Operating system
title
-h, --help print help
Usage:
hammer ostree-branch [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
info Show an ostree branch
list List ostree_branches
Options:
-h, --help print help
Usage:
hammer ostree-branch info [OPTIONS]
Options:
--id ID an ostree branch identifier
--name NAME Name to search by
--repository REPOSITORY_NAME Repository name to search by
--repository-id REPOSITORY_ID repository ID
-h, --help print help
Usage:
hammer ostree-branch list [OPTIONS]
Options:
--by BY Field to sort the
results on
--content-view CONTENT_VIEW_NAME Content view name to
search by
239
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer package [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
info Show a package
list List packages
240
CHAPTER 10. REFERENCE
Options:
-h, --help print help
Usage:
hammer package info [OPTIONS]
Options:
--id ID a package identifier
--name NAME Name to search by
--repository REPOSITORY_NAME Repository name to search by
--repository-id REPOSITORY_ID repository ID
-h, --help print help
Usage:
hammer package list [OPTIONS]
Options:
--by BY Field to
sort the results on
--content-view CONTENT_VIEW_NAME Content view
name to search by
--content-view-filter CONTENT_VIEW_FILTER_NAME Name to
search by
--content-view-filter-id CONTENT_VIEW_FILTER_ID filter
identifier
--content-view-id CONTENT_VIEW_ID content view
numeric identifier
--content-view-version CONTENT_VIEW_VERSION_VERSION Content view
version number
--content-view-version-id CONTENT_VIEW_VERSION_ID Content view
version identifier
--environment ENVIRONMENT_NAME Environment
name
--environment-id ENVIRONMENT_ID
--full-result FULL_RESULT Whether or
not to show all results
One of
true/false, yes/no, 1/0.
--host HOST_NAME Host name
--host-id HOST_ID
--ids IDS ids to
filter content by
Comma
separated list of values. Values containing comma should be quoted or
escaped with backslash
241
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer package-group [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
info Show a package group
list List package_groups
Options:
-h, --help print help
242
CHAPTER 10. REFERENCE
Usage:
hammer package-group info [OPTIONS]
Options:
--id ID a package group identifier
--name NAME Name to search by
--repository REPOSITORY_NAME Repository name to search by
--repository-id REPOSITORY_ID repository ID
-h, --help print help
Usage:
hammer package-group list [OPTIONS]
Options:
--by BY Field to sort the
results on
--content-view CONTENT_VIEW_NAME Content view name to
search by
--content-view-filter CONTENT_VIEW_FILTER_NAME Name to search by
--content-view-filter-id CONTENT_VIEW_FILTER_ID filter identifier
--content-view-id CONTENT_VIEW_ID content view numeric
identifier
--content-view-version CONTENT_VIEW_VERSION_VERSION Content view version
number
--content-view-version-id CONTENT_VIEW_VERSION_ID Content view version
identifier
--environment ENVIRONMENT_NAME Environment name
--environment-id ENVIRONMENT_ID
--full-result FULL_RESULT Whether or not to
show all results
One of true/false,
yes/no, 1/0.
--ids IDS ids to filter
content by
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--order ORDER Sort field and
order, eg. 'name DESC'
--organization ORGANIZATION_NAME Organization name to
search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label
to search by
--page PAGE Page number,
starting at 1
--per-page PER_PAGE Number of results
per page to return
--product PRODUCT_NAME Product name to
243
Red Hat Satellite 6.3 Hammer CLI Guide
search by
--product-id PRODUCT_ID product numeric
identifier
--repository REPOSITORY_NAME Repository name to
search by
--repository-id REPOSITORY_ID repository ID
--search SEARCH Search string
-h, --help print help
Usage:
hammer partition-table [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
add-operatingsystem Associate an operating system
create Create a partition table
delete Delete a partition table
dump View partition table content.
info Show a partition table
list List all partition tables
remove-operatingsystem Disassociate an operating system
update Update a partition table
Options:
-h, --help print help
Usage:
hammer partition-table add-operatingsystem [OPTIONS]
Options:
--id ID
--name NAME Partition table name
--operatingsystem OPERATINGSYSTEM_TITLE Operating system title
--operatingsystem-id OPERATINGSYSTEM_ID
-h, --help print help
Usage:
hammer partition-table create [OPTIONS]
244
CHAPTER 10. REFERENCE
Options:
--audit-comment AUDIT_COMMENT
--file LAYOUT Path to a file that contains
the partition layout
--host-ids HOST_IDS Array of host IDs to associate
with the partition table
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--hostgroup-ids HOSTGROUP_IDS Array of host group IDs to
associate with the partition table
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--hostgroup-titles HOSTGROUP_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--hostgroups HOSTGROUP_NAMES Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--hosts HOST_NAMES Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--location-ids LOCATION_IDS REPLACE locations with given
ids
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--location-titles LOCATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--locations LOCATION_NAMES Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--locked LOCKED Whether or not the template is
locked for editing
One of true/false, yes/no,
1/0.
--name NAME
--operatingsystem-ids OPERATINGSYSTEM_IDS Array of operating system IDs
to associate with the partition table
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--operatingsystems OPERATINGSYSTEM_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--organization-ids ORGANIZATION_IDS REPLACE organizations with
given ids.
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--organization-titles ORGANIZATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--organizations ORGANIZATION_NAMES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--os-family OS_FAMILY
--snippet SNIPPET One of true/false, yes/no,
1/0.
-h, --help print help
245
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer partition-table delete [OPTIONS]
Options:
--id ID
--name NAME Partition table name
-h, --help print help
Usage:
hammer partition-table dump [OPTIONS]
Options:
--id ID
--name NAME Partition table name
-h, --help print help
Usage:
hammer partition-table info [OPTIONS]
Options:
--id ID
--name NAME Partition table name
-h, --help print help
Usage:
hammer partition-table list [OPTIONS]
Options:
--location LOCATION_NAME Location name
--location-id LOCATION_ID
--location-title LOCATION_TITLE Location title
--operatingsystem OPERATINGSYSTEM_TITLE Operating system title
--operatingsystem-id OPERATINGSYSTEM_ID
--order ORDER sort results
--organization ORGANIZATION_NAME Organization name
--organization-id ORGANIZATION_ID organization ID
--organization-title ORGANIZATION_TITLE Organization title
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
-h, --help print help
246
CHAPTER 10. REFERENCE
Usage:
hammer partition-table remove-operatingsystem [OPTIONS]
Options:
--id ID
--name NAME Partition table name
--operatingsystem OPERATINGSYSTEM_TITLE Operating system title
--operatingsystem-id OPERATINGSYSTEM_ID
-h, --help print help
Usage:
hammer partition-table update [OPTIONS]
Options:
--audit-comment AUDIT_COMMENT
--file LAYOUT Path to a file that contains
the partition layout
--host-ids HOST_IDS Array of host IDs to associate
with the partition table
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--hostgroup-ids HOSTGROUP_IDS Array of host group IDs to
associate with the partition table
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--hostgroup-titles HOSTGROUP_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--hostgroups HOSTGROUP_NAMES Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--hosts HOST_NAMES Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--id ID
--location-ids LOCATION_IDS REPLACE locations with given
ids
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--location-titles LOCATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--locations LOCATION_NAMES Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--locked LOCKED Whether or not the template is
locked for editing
One of true/false, yes/no,
1/0.
--name NAME Partition table name
--new-name NEW_NAME
--operatingsystem-ids OPERATINGSYSTEM_IDS Array of operating system IDs
247
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer ping [OPTIONS]
Options:
-h, --help print help
Usage:
hammer policy [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
create Create a Policy
delete Delete a Policy
info Show a Policy
list List Policies
update Update a Policy
Options:
-h, --help print help
248
CHAPTER 10. REFERENCE
Usage:
hammer policy create [OPTIONS]
Options:
--cron-line CRON_LINE Policy schedule
cron line (only if period == “custom”)
--day-of-month DAY_OF_MONTH Policy schedule
day of month (only if period == “monthly”)
--description DESCRIPTION Policy description
--hostgroup-ids HOSTGROUP_IDS Apply policy to
host groups
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--hostgroups HOSTGROUP_NAMES Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--location-ids LOCATION_IDS REPLACE locations
with given ids
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--locations LOCATION_NAMES Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--name NAME Policy name
--organization-ids ORGANIZATION_IDS REPLACE
organizations with given ids.
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--organizations ORGANIZATION_NAMES Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--period PERIOD Policy schedule
period (weekly, monthly, custom)
--scap-content SCAP_CONTENT_TITLE SCAP content title
--scap-content-id SCAP_CONTENT_ID
--scap-content-profile-id SCAP_CONTENT_PROFILE_ID Policy SCAP content
profile ID
--tailoring-file TAILORING_FILE_NAME Tailoring file
name
--tailoring-file-id TAILORING_FILE_ID
--tailoring-file-profile-id TAILORING_FILE_PROFILE_ID Tailoring file
profile ID
--weekday WEEKDAY Policy schedule
weekday (only if period == “weekly”)
-h, --help print help
Usage:
hammer policy delete [OPTIONS]
249
Red Hat Satellite 6.3 Hammer CLI Guide
Options:
--id ID
--name NAME Name to search by
-h, --help print help
Usage:
hammer policy info [OPTIONS]
Options:
--id ID
--name NAME Name to search by
-h, --help print help
Usage:
hammer policy list [OPTIONS]
Options:
--order ORDER sort results
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
-h, --help print help
Usage:
hammer policy update [OPTIONS]
Options:
--cron-line CRON_LINE Policy schedule
cron line (only if period == “custom”)
--day-of-month DAY_OF_MONTH Policy schedule
day of month (only if period == “monthly”)
--description DESCRIPTION Policy description
--hostgroup-ids HOSTGROUP_IDS Apply policy to
host groups
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--hostgroups HOSTGROUP_NAMES Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
250
CHAPTER 10. REFERENCE
--id ID
--location-ids LOCATION_IDS REPLACE locations
with given ids
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--locations LOCATION_NAMES Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--name NAME Policy name
--new-name NEW_NAME Policy name
--organization-ids ORGANIZATION_IDS REPLACE
organizations with given ids.
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--organizations ORGANIZATION_NAMES Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--period PERIOD Policy schedule
period (weekly, monthly, custom)
--scap-content SCAP_CONTENT_TITLE SCAP content title
--scap-content-id SCAP_CONTENT_ID
--scap-content-profile-id SCAP_CONTENT_PROFILE_ID Policy SCAP content
profile ID
--tailoring-file TAILORING_FILE_NAME Tailoring file
name
--tailoring-file-id TAILORING_FILE_ID
--tailoring-file-profile-id TAILORING_FILE_PROFILE_ID Tailoring file
profile ID
--weekday WEEKDAY Policy schedule
weekday (only if period == “weekly”)
-h, --help print help
Usage:
hammer product [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
create Create a product
delete Destroy a product
info Show a product
list List products
remove-sync-plan Delete assignment sync plan and product.
set-sync-plan Assign sync plan to product.
synchronize Sync all repositories for a product
update Updates a product
251
Red Hat Satellite 6.3 Hammer CLI Guide
Options:
-h, --help print help
Usage:
hammer product create [OPTIONS]
Options:
--description DESCRIPTION Product description
--gpg-key GPG_KEY_NAME Name to search by
--gpg-key-id GPG_KEY_ID gpg key numeric identifier
--label LABEL
--name NAME Product name
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--sync-plan SYNC_PLAN_NAME Sync plan name to search by
--sync-plan-id SYNC_PLAN_ID sync plan numeric identifier
-h, --help print help
Usage:
hammer product delete [OPTIONS]
Options:
--id ID product numeric identifier
--name NAME Product name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
-h, --help print help
Usage:
hammer product info [OPTIONS]
Options:
--id ID product numeric identifier
--name NAME Product name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
-h, --help print help
252
CHAPTER 10. REFERENCE
Usage:
hammer product list [OPTIONS]
Options:
--available-for AVAILABLE_FOR Interpret
specified object to return only Products that can be associated
with specified
object. Only 'sync_plan' is supported.
--by BY Field to sort
the results on
--custom CUSTOM Filter products
by custom
One of
true/false, yes/no, 1/0.
--enabled ENABLED Filter products
by enabled or disabled
One of
true/false, yes/no, 1/0.
--full-result FULL_RESULT Whether or not to
show all results
One of
true/false, yes/no, 1/0.
--include-available-content INCLUDE_AVAILABLE_CONTENT Whether to include
available content attribute in results
One of
true/false, yes/no, 1/0.
--name NAME Filter products
by name
--order ORDER Sort field and
order, eg. 'name DESC'
--organization ORGANIZATION_NAME Organization name
to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label
to search by
--page PAGE Page number,
starting at 1
--per-page PER_PAGE Number of results
per page to return
--search SEARCH Search string
--subscription SUBSCRIPTION_NAME Subscription name
to search by
--subscription-id SUBSCRIPTION_ID Subscription
identifier
--sync-plan SYNC_PLAN_NAME Sync plan name to
search by
--sync-plan-id SYNC_PLAN_ID sync plan numeric
identifier
-h, --help print help
253
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer product remove-sync-plan [OPTIONS]
Options:
--description DESCRIPTION Product description
--gpg-key GPG_KEY_NAME Name to search by
--gpg-key-id GPG_KEY_ID gpg key numeric identifier
--id ID product numeric identifier
--name NAME Product name to search by
--new-name NEW_NAME Product name
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
-h, --help print help
Usage:
hammer product set-sync-plan [OPTIONS]
Options:
--gpg-key GPG_KEY_NAME Name to search by
--gpg-key-id GPG_KEY_ID gpg key numeric identifier
--id ID product numeric identifier
--name NAME Product name to search by
--new-name NEW_NAME Product name
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--sync-plan SYNC_PLAN_NAME Sync plan name to search by
--sync-plan-id SYNC_PLAN_ID sync plan numeric identifier
-h, --help print help
Usage:
hammer product synchronize [OPTIONS]
Options:
--async Do not wait for the task
--id ID product ID
--name NAME Product name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
-h, --help print help
254
CHAPTER 10. REFERENCE
Usage:
hammer product update [OPTIONS]
Options:
--description DESCRIPTION Product description
--gpg-key GPG_KEY_NAME Name to search by
--gpg-key-id GPG_KEY_ID gpg key numeric identifier
--id ID product numeric identifier
--name NAME Product name to search by
--new-name NEW_NAME Product name
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--sync-plan SYNC_PLAN_NAME Sync plan name to search by
--sync-plan-id SYNC_PLAN_ID sync plan numeric identifier
-h, --help print help
Usage:
hammer proxy [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
content Manage the capsule content
create Create a capsule
delete Delete a capsule
import-classes Import puppet classes from puppet Capsule.
info Show a capsule
list List all capsules
refresh-features Refresh capsule features
update Update a capsule
Options:
-h, --help print help
Usage:
hammer proxy content [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
255
Red Hat Satellite 6.3 Hammer CLI Guide
Subcommands:
add-lifecycle-environment Add lifecycle environments to the
capsule
available-lifecycle-environments List the lifecycle environments not
attached to the capsule
cancel-synchronization Cancel running capsule synchronization.
info Get current capsule synchronization
status
lifecycle-environments List the lifecycle environments attached
to the capsule
remove-lifecycle-environment Remove lifecycle environments from the
capsule
synchronization-status Get current capsule synchronization
status
synchronize Synchronize the content to the capsule
Options:
-h, --help print help
Usage:
hammer proxy content add-lifecycle-environment [OPTIONS]
Options:
--environment ENVIRONMENT_NAME Environment name
--environment-id ENVIRONMENT_ID
--id ID Id of the capsule
--name NAME Name to search by
--organization NAME Organization name
--organization-id ID Organization ID
-h, --help print help
Usage:
hammer proxy content available-lifecycle-environments [OPTIONS]
Options:
--id ID Id of the capsule
--name NAME Name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
-h, --help print help
256
CHAPTER 10. REFERENCE
Usage:
hammer proxy content cancel-synchronization [OPTIONS]
Options:
--id ID Id of the capsule
--name NAME Name to search by
-h, --help print help
Usage:
hammer proxy content info [OPTIONS]
Options:
--id ID Id of the capsule
--name NAME Name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
-h, --help print help
Usage:
hammer proxy content lifecycle-environments [OPTIONS]
Options:
--id ID Id of the capsule
--name NAME Name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
-h, --help print help
Usage:
hammer proxy content remove-lifecycle-environment [OPTIONS]
Options:
--environment ENVIRONMENT_NAME Environment name
--environment-id ENVIRONMENT_ID
--id ID Id of the capsule
--name NAME Name to search by
257
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer proxy content synchronization-status [OPTIONS]
Options:
--id ID Id of the capsule
--name NAME Name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
-h, --help print help
Usage:
hammer proxy content synchronize [OPTIONS]
Options:
--async Do not wait for the task
--environment ENVIRONMENT_NAME Environment name
--environment-id ENVIRONMENT_ID
--id ID Id of the capsule
--name NAME Name to search by
--organization NAME Organization name
--organization-id ID Organization ID
--skip-metadata-check SKIP_METADATA_CHECK Skip metadata check on each
repository on the capsule
One of true/false, yes/no,
1/0.
-h, --help print help
Usage:
hammer proxy create [OPTIONS]
Options:
--download-policy DOWNLOAD_POLICY Download Policy of the capsule,
must be one of immediate, on_demand,
background, inherit
--location-ids LOCATION_IDS REPLACE locations with given
ids
Comma separated list of
258
CHAPTER 10. REFERENCE
Usage:
hammer proxy delete [OPTIONS]
Options:
--id ID
--name NAME Name to search by
-h, --help print help
Usage:
hammer proxy import-classes [OPTIONS]
Options:
--dryrun Do not run the import
--environment ENVIRONMENT_NAME Environment name
--environment-id ENVIRONMENT_ID
--except EXCEPT Optional comma-delimited string
containing either 'new',
'updated', or 'obsolete' that is used
to limit the imported
Puppet classes
--id ID
--name NAME Name to search by
-h, --help print help
259
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer proxy info [OPTIONS]
Options:
--id ID
--name NAME Name to search by
-h, --help print help
Usage:
hammer proxy list [OPTIONS]
Options:
--location LOCATION_NAME Location name
--location-id LOCATION_ID
--location-title LOCATION_TITLE Location title
--order ORDER sort results
--organization ORGANIZATION_NAME Organization name
--organization-id ORGANIZATION_ID organization ID
--organization-title ORGANIZATION_TITLE Organization title
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
-h, --help print help
Usage:
hammer proxy refresh-features [OPTIONS]
Options:
--id ID
--name NAME Name to search by
-h, --help print help
Usage:
hammer proxy update [OPTIONS]
Options:
--download-policy DOWNLOAD_POLICY Download Policy of the capsule,
must be one of immediate, on_demand,
background, inherit
--id ID
--location-ids LOCATION_IDS REPLACE locations with given
260
CHAPTER 10. REFERENCE
ids
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--location-titles LOCATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--locations LOCATION_NAMES Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--name NAME Name to search by
--new-name NEW_NAME
--organization-ids ORGANIZATION_IDS REPLACE organizations with
given ids.
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--organization-titles ORGANIZATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--organizations ORGANIZATION_NAMES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--url URL
-h, --help print help
Usage:
hammer puppet-class [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
info Show a Puppet class
list List all Puppet classes
sc-params List all smart class parameters
smart-variables List all smart variables
Options:
-h, --help print help
Usage:
hammer puppet-class info [OPTIONS]
Options:
--environment ENVIRONMENT_NAME Environment name
--environment-id ENVIRONMENT_ID
--host HOST_NAME Host name
--host-id HOST_ID
--hostgroup HOSTGROUP_NAME Hostgroup name
--hostgroup-id HOSTGROUP_ID
261
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer puppet-class list [OPTIONS]
Options:
--environment ENVIRONMENT_NAME Environment name
--environment-id ENVIRONMENT_ID
--host HOST_NAME Host name
--host-id HOST_ID
--hostgroup HOSTGROUP_NAME Hostgroup name
--hostgroup-id HOSTGROUP_ID
--hostgroup-title HOSTGROUP_TITLE Hostgroup title
--order ORDER sort results
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
-h, --help print help
Usage:
hammer puppet-class sc-params [OPTIONS]
Options:
--order ORDER sort results
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--puppet-class PUPPET_CLASS_NAME Puppet class name
--puppet-class-id PUPPET_CLASS_ID ID of Puppet class
--search SEARCH filter results
--show-hidden SHOW_HIDDEN Display hidden values
One of true/false, yes/no, 1/0.
-h, --help print help
Usage:
hammer puppet-class smart-variables [OPTIONS]
Options:
--order ORDER sort results
262
CHAPTER 10. REFERENCE
Usage:
hammer puppet-module [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
info Show a puppet module
list List puppet_modules
Options:
-h, --help print help
Usage:
hammer puppet-module info [OPTIONS]
Options:
--id ID a puppet module identifier
--name NAME Name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--repository REPOSITORY_NAME Repository name to search by
--repository-id REPOSITORY_ID repository ID
-h, --help print help
Usage:
hammer puppet-module list [OPTIONS]
Options:
--by BY Field to sort the
263
Red Hat Satellite 6.3 Hammer CLI Guide
results on
--content-view CONTENT_VIEW_NAME Content view name to
search by
--content-view-filter CONTENT_VIEW_FILTER_NAME Name to search by
--content-view-filter-id CONTENT_VIEW_FILTER_ID filter identifier
--content-view-id CONTENT_VIEW_ID content view numeric
identifier
--content-view-version CONTENT_VIEW_VERSION_VERSION Content view version
number
--content-view-version-id CONTENT_VIEW_VERSION_ID Content view version
identifier
--environment ENVIRONMENT_NAME Environment name
--environment-id ENVIRONMENT_ID
--full-result FULL_RESULT Whether or not to
show all results
One of true/false,
yes/no, 1/0.
--ids IDS ids to filter
content by
Comma separated
list of values. Values containing comma should be quoted or escaped with
backslash
--order ORDER Sort field and
order, eg. 'name DESC'
--organization ORGANIZATION_NAME Organization name to
search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label
to search by
--page PAGE Page number,
starting at 1
--per-page PER_PAGE Number of results
per page to return
--product PRODUCT_NAME Product name to
search by
--product-id PRODUCT_ID product numeric
identifier
--repository REPOSITORY_NAME Repository name to
search by
--repository-id REPOSITORY_ID repository ID
--search SEARCH Search string
-h, --help print help
Usage:
hammer realm [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
264
CHAPTER 10. REFERENCE
Options:
-h, --help print help
Usage:
hammer realm create [OPTIONS]
Options:
--location-ids LOCATION_IDS REPLACE locations with given
ids
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--location-titles LOCATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--locations LOCATION_NAMES Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--name NAME The realm name, e.g.
EXAMPLE.COM
--organization-ids ORGANIZATION_IDS REPLACE organizations with
given ids.
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--organization-titles ORGANIZATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--organizations ORGANIZATION_NAMES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--realm-proxy-id REALM_PROXY_ID Capsule ID to use within this
realm
--realm-type REALM_TYPE Realm type, e.g. Red Hat
Identity Management or Active Directory
-h, --help print help
Usage:
hammer realm delete [OPTIONS]
Options:
--id ID
--name NAME Name to search by
-h, --help print help
265
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer realm info [OPTIONS]
Options:
--id ID Numerical ID or realm name
--name NAME Name to search by
-h, --help print help
Usage:
hammer realm list [OPTIONS]
Options:
--location LOCATION_NAME Location name
--location-id LOCATION_ID
--location-title LOCATION_TITLE Location title
--order ORDER sort results
--organization ORGANIZATION_NAME Organization name
--organization-id ORGANIZATION_ID organization ID
--organization-title ORGANIZATION_TITLE Organization title
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
-h, --help print help
Usage:
hammer realm update [OPTIONS]
Options:
--id ID
--location-ids LOCATION_IDS REPLACE locations with given
ids
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--location-titles LOCATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--locations LOCATION_NAMES Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--name NAME Name to search by
--new-name NEW_NAME The realm name, e.g.
EXAMPLE.COM
--organization-ids ORGANIZATION_IDS REPLACE organizations with
given ids.
266
CHAPTER 10. REFERENCE
Usage:
hammer recurring-logic [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
cancel Cancel recurring logic
info Show recurring logic details
list List recurring logics
Options:
-h, --help print help
Usage:
hammer recurring-logic cancel [OPTIONS]
Options:
--id ID ID of the recurring logic
--name NAME Name to search by
-h, --help print help
Usage:
hammer recurring-logic info [OPTIONS]
Options:
267
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer recurring-logic list [OPTIONS]
Options:
-h, --help print help
Usage:
hammer remote-execution-feature [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
info Show remote execution feature
list List remote execution features
update Update a job template
Options:
-h, --help print help
Usage:
hammer remote-execution-feature info [OPTIONS]
Options:
--id ID
--name NAME Name to search by
-h, --help print help
Usage:
hammer remote-execution-feature list [OPTIONS]
268
CHAPTER 10. REFERENCE
Options:
-h, --help print help
Usage:
hammer remote-execution-feature update [OPTIONS]
Options:
--id ID
--job-template JOB_TEMPLATE_NAME Name to search by
--job-template-id JOB_TEMPLATE_ID
--name NAME Name to search by
--new-name NEW_NAME
-h, --help print help
Usage:
hammer report [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
delete Delete a report
info Show a report
list List all reports
Options:
-h, --help print help
Usage:
hammer report delete [OPTIONS]
Options:
--id ID
-h, --help print help
269
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer report info [OPTIONS]
Options:
--id ID
-h, --help print help
Usage:
hammer report list [OPTIONS]
Options:
--order ORDER sort results
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
-h, --help print help
Usage:
hammer repository [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
create Create a custom repository
delete Destroy a custom repository
export Export content from a repository to the
configured directory
info Show a repository
list List of enabled repositories
remove-content Remove content from a repository
synchronize Sync a repository
update Update a repository
upload-content Upload content into the repository
Options:
-h, --help print help
Usage:
hammer repository create [OPTIONS]
270
CHAPTER 10. REFERENCE
Options:
--checksum-type CHECKSUM_TYPE checksum of
the repository, currently 'sha1' & 'sha256'
are
supported.
--content-type CONTENT_TYPE type of repo
(either 'yum', 'puppet', 'docker', or
'ostree')
Possible
value(s): 'docker', 'file', 'puppet', 'yum', 'ostree'
--docker-upstream-name DOCKER_UPSTREAM_NAME name of the
upstream docker repository
--download-policy DOWNLOAD_POLICY download
policy for yum repos (either 'immediate',
'on_demand',
or 'background')
Possible
value(s): 'immediate', 'on_demand', 'background'
--gpg-key GPG_KEY_NAME Name to
search by
--gpg-key-id GPG_KEY_ID gpg key
numeric identifier
--ignore-global-proxy IGNORE_GLOBAL_PROXY if true, will
ignore the globally configured Capsule when syncing.
One of
true/false, yes/no, 1/0.
--label LABEL
--mirror-on-sync MIRROR_ON_SYNC true if this
repository when synced has to be mirrored from the source and
stale rpms
removed.
One of
true/false, yes/no, 1/0.
--name NAME
--organization ORGANIZATION_NAME Organization
name to search by
--organization-id ORGANIZATION_ID organization
ID
--organization-label ORGANIZATION_LABEL Organization
label to search by
--ostree-upstream-sync-depth OSTREE_UPSTREAM_SYNC_DEPTH if a custom
sync policy is chosen for ostree repositories then a
'depth'
value must be provided.
--ostree-upstream-sync-policy OSTREE_UPSTREAM_SYNC_POLICY policies for
syncing upstream ostree repositories.
Possible
value(s): 'latest', 'all', 'custom'
--product PRODUCT_NAME Product name
to search by
--product-id PRODUCT_ID product
numeric identifier
--publish-via-http ENABLE Publish Via
HTTP
One of
271
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer repository delete [OPTIONS]
Options:
--id ID
--name NAME Repository name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID Organization ID to search by
--organization-label ORGANIZATION_LABEL Organization label to search by
--product PRODUCT_NAME Product name to search by
--product-id PRODUCT_ID product numeric identifier
-h, --help print help
Usage:
hammer repository export [OPTIONS]
Options:
--async Do not wait for the task
--export-to-iso EXPORT_TO_ISO Export to ISO format
One of true/false, yes/no, 1/0.
--id ID Repository identifier
--iso-mb-size ISO_MB_SIZE maximum size of each ISO in MB
--name NAME Repository name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID Organization ID to search by
--organization-label ORGANIZATION_LABEL Organization label to search by
--product PRODUCT_NAME Product name to search by
--product-id PRODUCT_ID product numeric identifier
--since SINCE Optional date of last export
(ex: 2010-01-01T12:00:00Z)
-h, --help print help
272
CHAPTER 10. REFERENCE
Usage:
hammer repository info [OPTIONS]
Options:
--id ID repository ID
--name NAME Repository name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--product PRODUCT_NAME Product name to search by
--product-id PRODUCT_ID product numeric identifier
-h, --help print help
Usage:
hammer repository list [OPTIONS]
Options:
--available-for AVAILABLE_FOR interpret specified
object to return only Repositories that can be
associated with
specified object. Only 'content_view' is
supported.
--by BY Field to sort the
results on
--content-type CONTENT_TYPE limit to only
repositories of this type
Possible value(s):
'docker', 'file', 'puppet', 'yum', 'ostree'
--content-view CONTENT_VIEW_NAME Content view name to
search by
--content-view-id CONTENT_VIEW_ID content view numeric
identifier
--content-view-version CONTENT_VIEW_VERSION_VERSION Content view version
number
--content-view-version-id CONTENT_VIEW_VERSION_ID Content view version
identifier
--environment ENVIRONMENT_NAME Environment name
--environment-id ENVIRONMENT_ID
--erratum-id ERRATUM_ID Id of an erratum to
find repositories that contain the erratum
--full-result FULL_RESULT Whether or not to
show all results
One of true/false,
yes/no, 1/0.
--library LIBRARY show repositories
in Library and the default content view
One of true/false,
273
Red Hat Satellite 6.3 Hammer CLI Guide
yes/no, 1/0.
--name NAME name of the
repository
--order ORDER Sort field and
order, eg. 'name DESC'
--organization ORGANIZATION_NAME Organization name to
search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label
to search by
--ostree-branch OSTREE_BRANCH_NAME Name to search by
--ostree-branch-id OSTREE_BRANCH_ID an ostree branch
identifier
--page PAGE Page number,
starting at 1
--per-page PER_PAGE Number of results
per page to return
--product PRODUCT_NAME Product name to
search by
--product-id PRODUCT_ID product numeric
identifier
--rpm-id RPM_ID Id of a package to
find repositories that contain the rpm
--search SEARCH Search string
-h, --help print help
Usage:
hammer repository remove-content [OPTIONS]
Options:
--id ID repository ID
--ids IDS Array of content ids to remove
Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--name NAME Repository name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID Organization ID to search by
--organization-label ORGANIZATION_LABEL Organization label to search by
--product PRODUCT_NAME Product name to search by
--product-id PRODUCT_ID product numeric identifier
--sync-capsule SYNC_CAPSULE Whether or not to sync an
external capsule after upload. Default: true
One of true/false, yes/no, 1/0.
-h, --help print help
Usage:
274
CHAPTER 10. REFERENCE
Options:
--async Do not wait for the task
--id ID repository ID
--incremental INCREMENTAL perform an incremental import
One of true/false, yes/no,
1/0.
--name NAME Repository name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--product PRODUCT_NAME Product name to search by
--product-id PRODUCT_ID product numeric identifier
--skip-metadata-check SKIP_METADATA_CHECK Force sync even if no upstream
changes are detected. Only used with yum
repositories.
One of true/false, yes/no,
1/0.
--source-url SOURCE_URL temporarily override feed URL
for sync
--validate-contents VALIDATE_CONTENTS Force a sync and validate the
checksums of all content. Only used with yum
repositories.
One of true/false, yes/no,
1/0.
-h, --help print help
Usage:
hammer repository update [OPTIONS]
Options:
--checksum-type CHECKSUM_TYPE checksum of
the repository, currently 'sha1' & 'sha256'
are
supported.'
--docker-upstream-name DOCKER_UPSTREAM_NAME name of the
upstream docker repository
--download-policy DOWNLOAD_POLICY download
policy for yum repos (either 'immediate',
'on_demand',
or 'background')
Possible
value(s): 'immediate', 'on_demand', 'background'
--gpg-key GPG_KEY_NAME Name to
search by
--gpg-key-id GPG_KEY_ID gpg key
numeric identifier
--id ID repository
ID
--mirror-on-sync MIRROR_ON_SYNC true if this
275
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer repository upload-content [OPTIONS]
Options:
--id ID repository ID
--name NAME Repository name to search by
276
CHAPTER 10. REFERENCE
Usage:
hammer repository-set [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
available-repositories Get list of available repositories for the
repository set
disable Disable a repository from the set
enable Enable a repository from the set
info Get info about a repository set
list List repository sets for a product.
Options:
-h, --help print help
Usage:
hammer repository-set available-repositories [OPTIONS]
Options:
--id ID ID of the repository set
--name NAME Repository set name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--product PRODUCT_NAME Product name to search by
--product-id PRODUCT_ID product numeric identifier
-h, --help print help
277
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer repository-set disable [OPTIONS]
Options:
--basearch BASEARCH Basearch to disable
--id ID ID of the repository set to
disable
--name NAME Repository set name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--product PRODUCT_NAME Product name to search by
--product-id PRODUCT_ID product numeric identifier
--releasever RELEASEVER Releasever to disable
-h, --help print help
Usage:
hammer repository-set enable [OPTIONS]
Options:
--basearch BASEARCH Basearch to enable
--id ID ID of the repository set to
enable
--name NAME Repository set name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--product PRODUCT_NAME Product name to search by
--product-id PRODUCT_ID product numeric identifier
--releasever RELEASEVER Releasever to enable
-h, --help print help
Usage:
hammer repository-set info [OPTIONS]
Options:
--id ID ID of the repository set
--name NAME Repository set name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--product PRODUCT_NAME Product name to search by
--product-id PRODUCT_ID product numeric identifier
-h, --help print help
278
CHAPTER 10. REFERENCE
Usage:
hammer repository-set list [OPTIONS]
Options:
--by BY Field to sort the results on
--full-result FULL_RESULT Whether or not to show all
results
One of true/false, yes/no, 1/0.
--name NAME Repository set name to search on
--order ORDER Sort field and order, eg. 'name
DESC'
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--page PAGE Page number, starting at 1
--per-page PER_PAGE Number of results per page to
return
--product PRODUCT_NAME Product name to search by
--product-id PRODUCT_ID product numeric identifier
--search SEARCH Search string
-h, --help print help
Usage:
hammer role [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
clone Clone a role
create Create a role
delete Delete a role
filters List all filters
info Show a role
list List all roles
update Update a role
Options:
-h, --help print help
Usage:
279
Red Hat Satellite 6.3 Hammer CLI Guide
Options:
--description DESCRIPTION Role description
--id ID
--location-ids LOCATION_IDS REPLACE locations with given
ids
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--location-titles LOCATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--locations LOCATION_NAMES Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--name NAME User role name
--new-name NEW_NAME
--organization-ids ORGANIZATION_IDS REPLACE organizations with
given ids.
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--organization-titles ORGANIZATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--organizations ORGANIZATION_NAMES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
-h, --help print help
Usage:
hammer role create [OPTIONS]
Options:
--description DESCRIPTION Role description
--location-ids LOCATION_IDS REPLACE locations with given
ids
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--location-titles LOCATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--locations LOCATION_NAMES Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--name NAME
--organization-ids ORGANIZATION_IDS REPLACE organizations with
given ids.
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--organization-titles ORGANIZATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--organizations ORGANIZATION_NAMES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
-h, --help print help
280
CHAPTER 10. REFERENCE
Delete a role
Usage:
hammer role delete [OPTIONS]
Options:
--id ID
--name NAME User role name
-h, --help print help
Usage:
hammer role filters [OPTIONS]
Options:
--id ID User role id
--name NAME User role name
--order ORDER sort results
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
-h, --help print help
Usage:
hammer role info [OPTIONS]
Options:
--description DESCRIPTION
--id ID
--name NAME User role name
-h, --help print help
Usage:
hammer role list [OPTIONS]
Options:
--order ORDER sort results
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
-h, --help print help
281
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer role update [OPTIONS]
Options:
--description DESCRIPTION Role description
--id ID
--location-ids LOCATION_IDS REPLACE locations with given
ids
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--location-titles LOCATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--locations LOCATION_NAMES Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--name NAME User role name
--new-name NEW_NAME
--organization-ids ORGANIZATION_IDS REPLACE organizations with
given ids.
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--organization-titles ORGANIZATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--organizations ORGANIZATION_NAMES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
-h, --help print help
Usage:
hammer sc-param [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
add-override-value Create an override value for a specific
smart variable
info Show a smart class parameter
list List all smart class parameters
remove-override-value Delete an override value for a specific
smart variable
update Update a smart class parameter
Options:
-h, --help print help
282
CHAPTER 10. REFERENCE
Usage:
hammer sc-param add-override-value [OPTIONS]
Options:
--match MATCH Override match
--omit OMIT Satellite will not
send this parameter in classification output, replaces
use_puppet_default
One of true/false,
yes/no, 1/0.
--puppet-class PUPPET_CLASS_NAME Puppet class name
--puppet-class-id PUPPET_CLASS_ID ID of Puppet class
--smart-class-parameter SMART_CLASS_PARAMETER_NAME Smart class parameter
name
--smart-class-parameter-id SMART_CLASS_PARAMETER_ID
--use-puppet-default USE_PUPPET_DEFAULT Deprecated, please
use omit
One of true/false,
yes/no, 1/0.
--value VALUE Override value,
required if omit is false
-h, --help print help
Usage:
hammer sc-param info [OPTIONS]
Options:
--id ID
--name NAME Smart class parameter name
--puppet-class PUPPET_CLASS_NAME Puppet class name
--puppet-class-id PUPPET_CLASS_ID ID of Puppet class
--show-hidden SHOW_HIDDEN Display hidden values
One of true/false, yes/no, 1/0.
-h, --help print help
Usage:
hammer sc-param list [OPTIONS]
Options:
--environment ENVIRONMENT_NAME Environment name
--environment-id ENVIRONMENT_ID
--host HOST_NAME Host name
--host-id HOST_ID
--hostgroup HOSTGROUP_NAME Hostgroup name
283
Red Hat Satellite 6.3 Hammer CLI Guide
--hostgroup-id HOSTGROUP_ID
--hostgroup-title HOSTGROUP_TITLE Hostgroup title
--order ORDER sort results
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--puppet-class PUPPET_CLASS_NAME Puppet class name
--puppet-class-id PUPPET_CLASS_ID ID of Puppet class
--search SEARCH filter results
--show-hidden SHOW_HIDDEN Display hidden values
One of true/false, yes/no, 1/0.
-h, --help print help
Usage:
hammer sc-param remove-override-value [OPTIONS]
Options:
--id ID
--puppet-class PUPPET_CLASS_NAME Puppet class name
--puppet-class-id PUPPET_CLASS_ID ID of Puppet class
--smart-class-parameter SMART_CLASS_PARAMETER_NAME Smart class parameter
name
--smart-class-parameter-id SMART_CLASS_PARAMETER_ID
-h, --help print help
Usage:
hammer sc-param update [OPTIONS]
Options:
--avoid-duplicates AVOID_DUPLICATES Remove duplicate values (only
array type)
One of true/false, yes/no,
1/0.
--default-value DEFAULT_VALUE Value to use when there is
no match
--description DESCRIPTION Description of smart class
--hidden-value HIDDEN_VALUE When enabled the parameter
is hidden in the UI
One of true/false, yes/no,
1/0.
--id ID
--merge-default MERGE_DEFAULT Include default value when
merging all matching values
One of true/false, yes/no,
1/0.
--merge-overrides MERGE_OVERRIDES Merge all matching values
(only array/hash type)
284
CHAPTER 10. REFERENCE
Usage:
hammer scap-content [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
create Create SCAP content
delete Deletes an SCAP content
download Show an SCAP content as XML
info Show an SCAP content
list List SCAP contents
update Update an SCAP content
285
Red Hat Satellite 6.3 Hammer CLI Guide
Options:
-h, --help print help
Usage:
hammer scap-content create [OPTIONS]
Options:
--location-ids LOCATION_IDS REPLACE locations with given ids
Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--locations LOCATION_NAMES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--organization-ids ORGANIZATION_IDS REPLACE organizations with given
ids.
Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--organizations ORGANIZATION_NAMES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--original-filename ORIGINAL_FILENAME Original file name of the XML file
--scap-file SCAP_FILE SCAP content file
--title TITLE SCAP content name
-h, --help print help
Usage:
hammer scap-content delete [OPTIONS]
Options:
--id ID
--title TITLE SCAP content title
-h, --help print help
Usage:
hammer scap-content download [OPTIONS]
Options:
--id ID
--path PATH Path to directory where downloaded file
will be saved
--title TITLE SCAP content title
-h, --help print help
286
CHAPTER 10. REFERENCE
Usage:
hammer scap-content info [OPTIONS]
Options:
--id ID
--title TITLE SCAP content title
-h, --help print help
Usage:
hammer scap-content list [OPTIONS]
Options:
--order ORDER sort results
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
-h, --help print help
Usage:
hammer scap-content update [OPTIONS]
Options:
--id ID
--location-ids LOCATION_IDS REPLACE locations with given ids
Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--locations LOCATION_NAMES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--new-title NEW_TITLE SCAP content name
--organization-ids ORGANIZATION_IDS REPLACE organizations with given
ids.
Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--organizations ORGANIZATION_NAMES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--original-filename ORIGINAL_FILENAME Original file name of the XML file
--scap-file SCAP_FILE SCAP content file
--title TITLE SCAP content title
-h, --help print help
287
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer settings [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
list List all settings
set Update a setting
Options:
-h, --help print help
Usage:
hammer settings list [OPTIONS]
Options:
--order ORDER sort results
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
-h, --help print help
Usage:
hammer settings set [OPTIONS]
Options:
--id ID
--name NAME Setting name
--value VALUE
-h, --help print help
Usage:
hammer shell [OPTIONS]
Options:
-h, --help print help
288
CHAPTER 10. REFERENCE
Usage:
hammer smart-variable [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
add-override-value Create an override value for a specific
smart variable
create Create a smart variable
delete Delete a smart variable
info Show a smart variable
list List all smart variables
remove-override-value Delete an override value for a specific
smart variable
update Update a smart variable
Options:
-h, --help print help
Usage:
hammer smart-variable add-override-value [OPTIONS]
Options:
--match MATCH Override match
--omit OMIT Satellite will not send this
parameter in classification output, replaces
use_puppet_default
One of true/false, yes/no,
1/0.
--smart-variable SMART_VARIABLE_VARIABLE Smart variable name
--smart-variable-id SMART_VARIABLE_ID
--use-puppet-default USE_PUPPET_DEFAULT Deprecated, please use omit
One of true/false, yes/no,
1/0.
--value VALUE Override value, required if
omit is false
-h, --help print help
Usage:
hammer smart-variable create [OPTIONS]
289
Red Hat Satellite 6.3 Hammer CLI Guide
Options:
--avoid-duplicates AVOID_DUPLICATES Remove duplicate values (only
array type)
One of true/false, yes/no,
1/0.
--default-value DEFAULT_VALUE Default value of variable
--description DESCRIPTION Description of variable
--hidden-value HIDDEN_VALUE When enabled the parameter
is hidden in the UI
One of true/false, yes/no,
1/0.
--merge-default MERGE_DEFAULT Include default value when
merging all matching values
One of true/false, yes/no,
1/0.
--merge-overrides MERGE_OVERRIDES Merge all matching values
(only array/hash type)
One of true/false, yes/no,
1/0.
--override-value-order OVERRIDE_VALUE_ORDER The order in which values are
resolved
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--puppet-class PUPPET_CLASS_NAME Puppet class name
--puppet-class-id PUPPET_CLASS_ID ID of Puppet class
--validator-rule VALIDATOR_RULE Used to enforce certain
values for the parameter values
--validator-type VALIDATOR_TYPE Type of the validator.
Possible value(s):
'regexp', 'list', ''
--variable VARIABLE Name of variable
--variable-type VARIABLE_TYPE Type of the variable.
Possible value(s):
'string', 'boolean', 'integer', 'real', 'array', 'hash', 'yaml', 'json'
-h, --help print help
Usage:
hammer smart-variable delete [OPTIONS]
Options:
--id ID
--name NAME Smart variable name (Deprecated: Use --
variable instead)
--variable VARIABLE Smart variable name
-h, --help print help
290
CHAPTER 10. REFERENCE
Usage:
hammer smart-variable info [OPTIONS]
Options:
--id ID
--name NAME Smart variable name (Deprecated: Use --
variable instead)
--show-hidden SHOW_HIDDEN Display hidden values
One of true/false, yes/no, 1/0.
--variable VARIABLE Smart variable name
-h, --help print help
Usage:
hammer smart-variable list [OPTIONS]
Options:
--host HOST_NAME Host name
--host-id HOST_ID
--hostgroup HOSTGROUP_NAME Hostgroup name
--hostgroup-id HOSTGROUP_ID
--hostgroup-title HOSTGROUP_TITLE Hostgroup title
--order ORDER sort results
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--puppet-class PUPPET_CLASS_NAME Puppet class name
--puppet-class-id PUPPET_CLASS_ID ID of Puppet class
--search SEARCH filter results
--show-hidden SHOW_HIDDEN Display hidden values
One of true/false, yes/no, 1/0.
-h, --help print help
Usage:
hammer smart-variable remove-override-value [OPTIONS]
Options:
--id ID
--smart-variable SMART_VARIABLE_VARIABLE Smart variable name
--smart-variable-id SMART_VARIABLE_ID
-h, --help print help
Usage:
291
Red Hat Satellite 6.3 Hammer CLI Guide
Options:
--avoid-duplicates AVOID_DUPLICATES Remove duplicate values (only
array type)
One of true/false, yes/no,
1/0.
--default-value DEFAULT_VALUE Default value of variable
--description DESCRIPTION Description of variable
--hidden-value HIDDEN_VALUE When enabled the parameter
is hidden in the UI
One of true/false, yes/no,
1/0.
--id ID
--merge-default MERGE_DEFAULT Include default value when
merging all matching values
One of true/false, yes/no,
1/0.
--merge-overrides MERGE_OVERRIDES Merge all matching values
(only array/hash type)
One of true/false, yes/no,
1/0.
--new-variable NEW_VARIABLE Name of variable
--override-value-order OVERRIDE_VALUE_ORDER The order in which values are
resolved
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--puppet-class PUPPET_CLASS_NAME Puppet class name
--puppet-class-id PUPPET_CLASS_ID ID of Puppet class
--validator-rule VALIDATOR_RULE Used to enforce certain
values for the parameter values
--validator-type VALIDATOR_TYPE Type of the validator.
Possible value(s):
'regexp', 'list', ''
--variable VARIABLE Smart variable name
--variable-type VARIABLE_TYPE Type of the variable.
Possible value(s):
'string', 'boolean', 'integer', 'real', 'array', 'hash', 'yaml', 'json'
-h, --help print help
Usage:
hammer subnet [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
create Create a subnet
delete Delete a subnet
delete-parameter Delete parameter for a subnet.
292
CHAPTER 10. REFERENCE
Options:
-h, --help print help
Usage:
hammer subnet create [OPTIONS]
Options:
--boot-mode BOOT_MODE Default boot mode for
interfaces assigned to this subnet, valid values are
“Static”, “DHCP”
--dhcp-id DHCP_ID DHCP Capsule ID to use within
this subnet
--discovery-id DISCOVERY_ID ID of Discovery Capsule to use
within this subnet for managing connection
to discovered hosts
--dns-id DNS_ID DNS Capsule ID to use within
this subnet
--dns-primary DNS_PRIMARY Primary DNS for this subnet
--dns-secondary DNS_SECONDARY Secondary DNS for this subnet
--domain-ids DOMAIN_IDS Domains in which this subnet
is part
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--domains DOMAIN_NAMES Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--from FROM Starting IP Address for IP
auto suggestion
--gateway GATEWAY Primary DNS for this subnet
--ipam IPAM IP Address auto suggestion
mode for this subnet, valid values are “DHCP”,
“Internal DB”, “None”
--location-ids LOCATION_IDS REPLACE locations with given
ids
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--location-titles LOCATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--locations LOCATION_NAMES Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--mask MASK Netmask for this subnet
--name NAME Subnet name
--network NETWORK Subnet network
--network-type NETWORK_TYPE Type or protocol, IPv4 or
IPv6, defaults to IPv4
Possible value(s): 'IPv4',
'IPv6'
293
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer subnet delete [OPTIONS]
Options:
--id ID Subnet numeric identifier
--name NAME Subnet name
-h, --help print help
Usage:
hammer subnet delete-parameter [OPTIONS]
Options:
--name NAME parameter name
--subnet SUBNET_NAME Subnet name
--subnet-id SUBNET_ID
-h, --help print help
Usage:
hammer subnet info [OPTIONS]
Options:
--id ID
--name NAME Subnet name
--show-hidden-parameters SHOW_HIDDEN_PARAMETERS Display hidden parameter
values
294
CHAPTER 10. REFERENCE
One of true/false,
yes/no, 1/0.
-h, --help print help
Usage:
hammer subnet list [OPTIONS]
Options:
--domain DOMAIN_NAME Domain name
--domain-id DOMAIN_ID Numerical ID or domain name
--location LOCATION_NAME Location name
--location-id LOCATION_ID
--location-title LOCATION_TITLE Location title
--order ORDER sort results
--organization ORGANIZATION_NAME Organization name
--organization-id ORGANIZATION_ID organization ID
--organization-title ORGANIZATION_TITLE Organization title
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
-h, --help print help
Usage:
hammer subnet 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
--subnet SUBNET_NAME Subnet name
--subnet-id SUBNET_ID
--value VALUE parameter value
-h, --help print help
Usage:
hammer subnet update [OPTIONS]
Options:
--boot-mode BOOT_MODE Default boot mode for
interfaces assigned to this subnet, valid values are
“Static”, “DHCP”
295
Red Hat Satellite 6.3 Hammer CLI Guide
296
CHAPTER 10. REFERENCE
Manipulate subscriptions.
Usage:
hammer subscription [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
delete-manifest Delete manifest from Red Hat provider
list List organization subscriptions
manifest-history obtain manifest history for subscriptions
refresh-manifest Refresh previously imported manifest for
Red Hat provider
upload Upload a subscription manifest
Options:
-h, --help print help
Usage:
hammer subscription delete-manifest [OPTIONS]
Options:
--async Do not wait for the task
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
-h, --help print help
Usage:
hammer subscription list [OPTIONS]
Options:
--activation-key ACTIVATION_KEY_NAME Activation key name to search by
--activation-key-id ACTIVATION_KEY_ID ID of the activation key
--available-for AVAILABLE_FOR Object to show subscriptions
available for, either 'host' or
'activation_key'
--by BY Field to sort the results on
--full-result FULL_RESULT Whether or not to show all
results
One of true/false, yes/no, 1/0.
--host HOST_NAME Host name
--host-id HOST_ID
--match-host MATCH_HOST Ignore subscriptions that are
297
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer subscription manifest-history [OPTIONS]
Options:
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
-h, --help print help
Usage:
hammer subscription refresh-manifest [OPTIONS]
Options:
--async Do not wait for the task
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
-h, --help print help
Usage:
hammer subscription upload [OPTIONS]
298
CHAPTER 10. REFERENCE
Options:
--async Do not wait for the task
--file MANIFEST Subscription manifest file
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--repository-url REPOSITORY_URL repository url
-h, --help print help
Usage:
hammer sync-plan [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
create Create a sync plan
delete Destroy a sync plan
info Show a sync plan
list List sync plans
update Update a sync plan
Options:
-h, --help print help
Usage:
hammer sync-plan create [OPTIONS]
Options:
--description DESCRIPTION sync plan description
--enabled ENABLED enables or disables
synchronization
One of true/false, yes/no, 1/0.
--interval INTERVAL how often synchronization should
run
Possible value(s): 'hourly',
'daily', 'weekly'
--name NAME sync plan name
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--sync-date SYNC_DATE Start date and time for the sync
plan.Time is optional, if kept blank current system time will be
considered
299
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer sync-plan delete [OPTIONS]
Options:
--id ID sync plan numeric identifier
--name NAME Sync plan name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
-h, --help print help
Usage:
hammer sync-plan info [OPTIONS]
Options:
--id ID sync plan numeric identifier
--name NAME Sync plan name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
-h, --help print help
Usage:
hammer sync-plan list [OPTIONS]
Options:
--by BY Field to sort the results on
--full-result FULL_RESULT Whether or not to show all
results
One of true/false, yes/no, 1/0.
--interval INTERVAL filter by interval
Possible value(s): 'hourly',
'daily', 'weekly'
--name NAME filter by name
--order ORDER Sort field and order, eg. 'name
DESC'
--organization ORGANIZATION_NAME Organization name to search by
300
CHAPTER 10. REFERENCE
Usage:
hammer sync-plan update [OPTIONS]
Options:
--description DESCRIPTION sync plan description
--enabled ENABLED enables or disables
synchronization
One of true/false, yes/no, 1/0.
--id ID sync plan numeric identifier
--interval INTERVAL how often synchronization should
run
Possible value(s): 'hourly',
'daily', 'weekly'
--name NAME Sync plan name to search by
--new-name NEW_NAME sync plan name
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--sync-date SYNC_DATE start date and time of the
synchronization
Date and time in YYYY-MM-DD
HH:MM:SS or ISO 8601 format
-h, --help print help
Usage:
hammer tailoring-file [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
create Create a Tailoring file
delete Deletes a Tailoring file
download Show a Tailoring file as XML
info Show a Tailoring file
list List Tailoring files
301
Red Hat Satellite 6.3 Hammer CLI Guide
Options:
-h, --help print help
Usage:
hammer tailoring-file create [OPTIONS]
Options:
--location-ids LOCATION_IDS REPLACE locations with given ids
Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--locations LOCATION_NAMES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--name NAME Tailoring file name
--organization-ids ORGANIZATION_IDS REPLACE organizations with given
ids.
Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--organizations ORGANIZATION_NAMES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--original-filename ORIGINAL_FILENAME Original file name of the XML file
--scap-file SCAP_FILE Tailoring file content
-h, --help print help
Usage:
hammer tailoring-file delete [OPTIONS]
Options:
--id ID
--name NAME Name to search by
-h, --help print help
Usage:
hammer tailoring-file download [OPTIONS]
Options:
--id ID
--name NAME Tailoring file name
302
CHAPTER 10. REFERENCE
Usage:
hammer tailoring-file info [OPTIONS]
Options:
--id ID
--name NAME Tailoring file name
-h, --help print help
Usage:
hammer tailoring-file list [OPTIONS]
Options:
--order ORDER sort results
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
-h, --help print help
Usage:
hammer tailoring-file update [OPTIONS]
Options:
--id ID
--location-ids LOCATION_IDS REPLACE locations with given ids
Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--locations LOCATION_NAMES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--name NAME Tailoring file name
--new-name NEW_NAME Tailoring file name
--organization-ids ORGANIZATION_IDS REPLACE organizations with given
ids.
Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--organizations ORGANIZATION_NAMES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
303
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer task [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
list List tasks
progress Show the progress of the task
resume Resume all tasks paused in error state
Options:
-h, --help print help
Usage:
hammer task list [OPTIONS]
Options:
--by BY Field to sort the results on
--order ORDER Sort field and order, e.g. 'name DESC'
--page PAGE Page number, starting at 1
--per-page PER_PAGE Number of results per page to return
--search SEARCH Search string
-h, --help print help
Usage:
hammer task progress [OPTIONS]
Options:
--id ID UUID of the task
--name NAME Name to search by
-h, --help print help
304
CHAPTER 10. REFERENCE
Usage:
hammer task resume [OPTIONS]
Options:
--search SEARCH Resume tasks matching search string
--task-ids TASK_IDS Resume specific tasks by ID
Comma separated list of values. Values
containing comma should be quoted or escaped with backslash
--tasks TASK_NAMES Comma separated list of values. Values
containing comma should be quoted or escaped with backslash
-h, --help print help
Usage:
hammer template [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
add-operatingsystem Associate an operating system
build-pxe-default Update the default PXE menu on all
configured TFTP servers
clone Clone a provision template
create Create a provisioning template
delete Delete a provisioning template
dump View provisioning template content.
info Show provisioning template details
kinds List available provisioning template
kinds.
list List provisioning templates
remove-operatingsystem Disassociate an operating system
update Update a provisioning template
Options:
-h, --help print help
Usage:
hammer template add-operatingsystem [OPTIONS]
Options:
--id ID
--name NAME Name to search by
305
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer template build-pxe-default [OPTIONS]
Options:
-h, --help print help
Usage:
hammer template clone [OPTIONS]
Options:
--id ID
--name NAME Name to search by
--new-name NEW_NAME template name
-h, --help print help
Usage:
hammer template create [OPTIONS]
Options:
--audit-comment AUDIT_COMMENT
--file TEMPLATE Path to a file that contains
the template
--location-ids LOCATION_IDS REPLACE locations with given
ids
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--location-titles LOCATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--locations LOCATION_NAMES Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--locked LOCKED Whether or not the template is
locked for editing
One of true/false, yes/no,
1/0.
--name NAME template name
--operatingsystem-ids OPERATINGSYSTEM_IDS Array of operating system IDs
to associate with the template
306
CHAPTER 10. REFERENCE
Usage:
hammer template delete [OPTIONS]
Options:
--id ID
--name NAME Name to search by
-h, --help print help
Usage:
hammer template dump [OPTIONS]
Options:
--id ID
--name NAME Name to search by
-h, --help print help
Usage:
hammer template info [OPTIONS]
Options:
--id ID
--name NAME Name to search by
-h, --help print help
307
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer template kinds [OPTIONS]
Options:
-h, --help print help
Usage:
hammer template list [OPTIONS]
Options:
--location LOCATION_NAME Location name
--location-id LOCATION_ID
--location-title LOCATION_TITLE Location title
--operatingsystem OPERATINGSYSTEM_TITLE Operating system title
--operatingsystem-id OPERATINGSYSTEM_ID
--order ORDER sort results
--organization ORGANIZATION_NAME Organization name
--organization-id ORGANIZATION_ID organization ID
--organization-title ORGANIZATION_TITLE Organization title
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
-h, --help print help
Usage:
hammer template remove-operatingsystem [OPTIONS]
Options:
--id ID
--name NAME Name to search by
--operatingsystem OPERATINGSYSTEM_TITLE Operating system title
--operatingsystem-id OPERATINGSYSTEM_ID
-h, --help print help
Usage:
hammer template update [OPTIONS]
308
CHAPTER 10. REFERENCE
Options:
--audit-comment AUDIT_COMMENT
--file TEMPLATE Path to a file that contains
the template
--id ID
--location-ids LOCATION_IDS REPLACE locations with given
ids
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--location-titles LOCATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--locations LOCATION_NAMES Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--locked LOCKED Whether or not the template is
locked for editing
One of true/false, yes/no,
1/0.
--name NAME Name to search by
--new-name NEW_NAME template name
--operatingsystem-ids OPERATINGSYSTEM_IDS Array of operating system IDs
to associate with the template
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--operatingsystems OPERATINGSYSTEM_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--organization-ids ORGANIZATION_IDS REPLACE organizations with
given ids.
Comma separated list of
values. Values containing comma should be quoted or escaped with backslash
--organization-titles ORGANIZATION_TITLES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--organizations ORGANIZATION_NAMES Comma separated list of values.
Values containing comma should be quoted or escaped with backslash
--type TYPE Template type. Eg. snippet,
script, provision
-h, --help print help
Usage:
hammer template-input [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
create Create a template input
delete Delete a template input
info Show template input details
list List template inputs
309
Red Hat Satellite 6.3 Hammer CLI Guide
Options:
-h, --help print help
Usage:
hammer template-input create [OPTIONS]
Options:
--advanced ADVANCED Input is advanced
One of true/false,
yes/no, 1/0.
--description DESCRIPTION Input description
--fact-name FACT_NAME Fact name, used when
input type is fact
--input-type INPUT_TYPE Input type
Possible value(s):
'user', 'fact', 'variable', 'puppet_parameter'
--name NAME Input name
--options OPTIONS Selectable values for
user inputs
Comma separated list
of values. Values containing comma should be quoted or escaped with
backslash
--puppet-parameter-class PUPPET_PARAMETER_CLASS Puppet class name, used
when input type is puppet_parameter
--puppet-parameter-name PUPPET_PARAMETER_NAME Puppet parameter name,
used when input type is puppet_parameter
--required REQUIRED Input is required
One of true/false,
yes/no, 1/0.
--template-id TEMPLATE_ID
--variable-name VARIABLE_NAME Variable name, used when
input type is variable
-h, --help print help
Usage:
hammer template-input delete [OPTIONS]
Options:
--id ID
--name NAME Name to search by
--template-id TEMPLATE_ID
-h, --help print help
310
CHAPTER 10. REFERENCE
Usage:
hammer template-input info [OPTIONS]
Options:
--id ID
--name NAME Name to search by
--template-id TEMPLATE_ID
-h, --help print help
Usage:
hammer template-input list [OPTIONS]
Options:
--order ORDER sort results
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
--template-id TEMPLATE_ID
-h, --help print help
Usage:
hammer user [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
add-role Assign a user role
create Create a user
delete Delete a user
info Show a user
list List all users
remove-role Remove a user role
ssh-keys Managing User SSH Keys.
update Update a user
Options:
-h, --help print help
311
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer user add-role [OPTIONS]
Options:
--id ID
--login LOGIN User's login to search by
--role ROLE_NAME User role name
--role-id ROLE_ID
-h, --help print help
Usage:
hammer user create [OPTIONS]
Options:
--admin ADMIN is an admin account
One of true/false,
yes/no, 1/0.
--ask-password ASK_PW One of true/false,
yes/no, 1/0.
--auth-source-id AUTH_SOURCE_ID
--default-location DEFAULT_LOCATION_NAME Default location name
--default-location-id DEFAULT_LOCATION_ID
--default-organization DEFAULT_ORGANIZATION_NAME Default organization
name
--default-organization-id DEFAULT_ORGANIZATION_ID
--description DESCRIPTION
--firstname FIRSTNAME
--lastname LASTNAME
--locale LOCALE User's preferred
locale
Possible value(s):
'ca', 'de', 'en', 'en_GB', 'es', 'fr', 'gl', 'it', 'ja', 'ko', 'pl',
'pt_BR', 'ru', 'sv_SE', 'zh_CN', 'zh_TW'
--location-ids LOCATION_IDS REPLACE locations with
given ids
Comma separated list
of values. Values containing comma should be quoted or escaped with
backslash
--location-titles LOCATION_TITLES Comma separated list
of values. Values containing comma should be quoted or escaped with
backslash
--locations LOCATION_NAMES Comma separated list
of values. Values containing comma should be quoted or escaped with
backslash
--login LOGIN
--mail MAIL
--organization-ids ORGANIZATION_IDS REPLACE organizations
with given ids.
Comma separated list
of values. Values containing comma should be quoted or escaped with
backslash
312
CHAPTER 10. REFERENCE
Usage:
hammer user delete [OPTIONS]
Options:
--id ID
--login LOGIN User's login to search by
-h, --help print help
313
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer user info [OPTIONS]
Options:
--id ID
--login LOGIN User's login to search by
-h, --help print help
Usage:
hammer user list [OPTIONS]
Options:
--auth-source-ldap AUTH_SOURCE_LDAP_NAME Name to search by
--auth-source-ldap-id AUTH_SOURCE_LDAP_ID
--location LOCATION_NAME Location name
--location-id LOCATION_ID
--location-title LOCATION_TITLE Location title
--order ORDER sort results
--organization ORGANIZATION_NAME Organization name
--organization-id ORGANIZATION_ID organization ID
--organization-title ORGANIZATION_TITLE Organization title
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--role ROLE_NAME User role name
--role-id ROLE_ID
--search SEARCH filter results
--user-group USER_GROUP_NAME Name to search by
--user-group-id USER_GROUP_ID
-h, --help print help
Usage:
hammer user remove-role [OPTIONS]
Options:
--id ID
--login LOGIN User's login to search by
--role ROLE_NAME User role name
--role-id ROLE_ID
-h, --help print help
314
CHAPTER 10. REFERENCE
Usage:
hammer user ssh-keys [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
add Create an SSH key for a user
delete Delete an SSH key for a user
info Show an SSH key from a user
list List all SSH keys for a user
Options:
-h, --help print help
Usage:
hammer user ssh-keys add [OPTIONS]
Options:
--key KEY Public SSH key
--key-file KEY_FILE Path to a SSH public key
--name NAME
--user USER_LOGIN User's login to search by
--user-id USER_ID
-h, --help print help
Usage:
hammer user ssh-keys delete [OPTIONS]
Options:
--id ID
--name NAME Name to search by
--user USER_LOGIN User's login to search by
--user-id USER_ID
-h, --help print help
Usage:
hammer user ssh-keys info [OPTIONS]
315
Red Hat Satellite 6.3 Hammer CLI Guide
Options:
--id ID
--name NAME Name to search by
--user USER_LOGIN User's login to search by
--user-id USER_ID
-h, --help print help
Usage:
hammer user ssh-keys list [OPTIONS]
Options:
--order ORDER sort results
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
--user USER_LOGIN User's login to search by
--user-id USER_ID
-h, --help print help
Usage:
hammer user update [OPTIONS]
Options:
--admin ADMIN is an admin account
One of true/false,
yes/no, 1/0.
--ask-password ASK_PW One of true/false,
yes/no, 1/0.
--auth-source-id AUTH_SOURCE_ID
--current-password CURRENT_PASSWORD Required when user
want to change own password
--default-location DEFAULT_LOCATION_NAME Default location name
--default-location-id DEFAULT_LOCATION_ID
--default-organization DEFAULT_ORGANIZATION_NAME Default organization
name
--default-organization-id DEFAULT_ORGANIZATION_ID
--description DESCRIPTION
--firstname FIRSTNAME
--id ID
--lastname LASTNAME
--locale LOCALE User's preferred
locale
Possible value(s):
'ca', 'de', 'en', 'en_GB', 'es', 'fr', 'gl', 'it', 'ja', 'ko', 'pl',
'pt_BR', 'ru', 'sv_SE', 'zh_CN', 'zh_TW'
316
CHAPTER 10. REFERENCE
317
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer user-group [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
add-role Assign a user role
add-user Associate an user
add-user-group Associate an user group
create Create a user group
delete Delete a user group
external View and manage user group's external user
groups
info Show a user group
list List all user groups
remove-role Remove a user role
remove-user Disassociate an user
remove-user-group Disassociate an user group
update Update a user group
Options:
-h, --help print help
Usage:
hammer user-group add-role [OPTIONS]
Options:
--id ID
--name NAME Name to search by
--role ROLE_NAME User role name
--role-id ROLE_ID
-h, --help print help
318
CHAPTER 10. REFERENCE
Associate an user
Usage:
hammer user-group add-user [OPTIONS]
Options:
--id ID
--name NAME Name to search by
--user USER_LOGIN User's login to search by
--user-id USER_ID
-h, --help print help
Usage:
hammer user-group add-user-group [OPTIONS]
Options:
--id ID
--name NAME Name to search by
--user-group USER_GROUP_NAME Name to search by
--user-group-id USER_GROUP_ID
-h, --help print help
Usage:
hammer user-group create [OPTIONS]
Options:
--admin ADMIN is an admin user group
One of true/false, yes/no, 1/0.
--name NAME
--role-ids ROLE_IDS Comma separated list of values. Values
containing comma should be quoted or escaped with backslash
--roles ROLE_NAMES Comma separated list of values. Values
containing comma should be quoted or escaped with backslash
--user-group-ids USER_GROUP_IDS Comma separated list of values. Values
containing comma should be quoted or escaped with backslash
--user-groups USER_GROUP_NAMES Comma separated list of values. Values
containing comma should be quoted or escaped with backslash
--user-ids USER_IDS Comma separated list of values. Values
containing comma should be quoted or escaped with backslash
--users USER_LOGINS Comma separated list of values. Values
containing comma should be quoted or escaped with backslash
-h, --help print help
319
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer user-group delete [OPTIONS]
Options:
--id ID
--name NAME Name to search by
-h, --help print help
Usage:
hammer user-group external [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
create Create an external user group linked to a
user group
delete Delete an external user group
info Show an external user group for user group
list List all external user groups for user
group
refresh Refresh external user group
update Update external user group
Options:
-h, --help print help
Usage:
hammer user-group external create [OPTIONS]
Options:
--auth-source-id AUTH_SOURCE_ID ID of linked authentication source
--name NAME External user group name
--user-group USER_GROUP_NAME Name to search by
--user-group-id USER_GROUP_ID
-h, --help print help
Usage:
320
CHAPTER 10. REFERENCE
Options:
--id ID ID or name external user group
--name NAME Name to search by
--user-group USER_GROUP_NAME Name to search by
--user-group-id USER_GROUP_ID
-h, --help print help
Usage:
hammer user-group external info [OPTIONS]
Options:
--id ID ID or name of external user group
--name NAME Name to search by
--user-group USER_GROUP_NAME Name to search by
--user-group-id USER_GROUP_ID
-h, --help print help
Usage:
hammer user-group external list [OPTIONS]
Options:
--user-group USER_GROUP_NAME Name to search by
--user-group-id USER_GROUP_ID
-h, --help print help
Usage:
hammer user-group external refresh [OPTIONS]
Options:
--id ID ID or name of external user group
--name NAME Name to search by
--user-group USER_GROUP_NAME Name to search by
--user-group-id USER_GROUP_ID
-h, --help print help
321
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer user-group external update [OPTIONS]
Options:
--auth-source-id AUTH_SOURCE_ID ID of linked authentication source
--id ID ID or name of external user group
--name NAME Name to search by
--new-name NEW_NAME External user group name
--user-group USER_GROUP_NAME Name to search by
--user-group-id USER_GROUP_ID
-h, --help print help
Usage:
hammer user-group info [OPTIONS]
Options:
--id ID
--name NAME Name to search by
-h, --help print help
Usage:
hammer user-group list [OPTIONS]
Options:
--order ORDER sort results
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
-h, --help print help
Usage:
hammer user-group remove-role [OPTIONS]
Options:
--id ID
--name NAME Name to search by
--role ROLE_NAME User role name
--role-id ROLE_ID
-h, --help print help
322
CHAPTER 10. REFERENCE
Usage:
hammer user-group remove-user [OPTIONS]
Options:
--id ID
--name NAME Name to search by
--user USER_LOGIN User's login to search by
--user-id USER_ID
-h, --help print help
Usage:
hammer user-group remove-user-group [OPTIONS]
Options:
--id ID
--name NAME Name to search by
--user-group USER_GROUP_NAME Name to search by
--user-group-id USER_GROUP_ID
-h, --help print help
Usage:
hammer user-group update [OPTIONS]
Options:
--admin ADMIN is an admin user group
One of true/false, yes/no, 1/0.
--id ID
--name NAME Name to search by
--new-name NEW_NAME
--role-ids ROLE_IDS Comma separated list of values. Values
containing comma should be quoted or escaped with backslash
--roles ROLE_NAMES Comma separated list of values. Values
containing comma should be quoted or escaped with backslash
--user-group-ids USER_GROUP_IDS Comma separated list of values. Values
containing comma should be quoted or escaped with backslash
--user-groups USER_GROUP_NAMES Comma separated list of values. Values
containing comma should be quoted or escaped with backslash
--user-ids USER_IDS Comma separated list of values. Values
containing comma should be quoted or escaped with backslash
--users USER_LOGINS Comma separated list of values. Values
containing comma should be quoted or escaped with backslash
-h, --help print help
323
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer virt-who-config [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
create Create a virt-who configuration
delete Delete a virt-who configuration
deploy Download and execute script for the
specified virt-who configuration
fetch Renders a deploy script for the specified
virt-who configuration
info Show a virt-who configuration
list List of virt-who configurations
update Update a virt-who configuration
Options:
-h, --help print help
Usage:
hammer virt-who-config create [OPTIONS]
Options:
--blacklist BLACKLIST Hypervisor blacklist,
applicable only when filtering mode is set to 2.
Wildcards and regular
expressions are supported, multiple records must be
separated by comma.
--debug DEBUG Enable debugging output
One of true/false, yes/no,
1/0.
--filtering-mode MODE Hypervisor filtering mode
Possible value(s): 'none',
'whitelist', 'blacklist'
--hypervisor-id HYPERVISOR_ID Specifies how the hypervisor
will be identified.
Possible value(s):
'hostname', 'uuid', 'hwuuid'
--hypervisor-password HYPERVISOR_PASSWORD Hypervisor password, required
for all hypervisor types except for libvirt
--hypervisor-server HYPERVISOR_SERVER Fully qualified host name or IP
address of the hypervisor
--hypervisor-type HYPERVISOR_TYPE Hypervisor type
Possible value(s): 'esx',
'rhevm', 'hyperv', 'xen', 'libvirt'
324
CHAPTER 10. REFERENCE
Usage:
hammer virt-who-config delete [OPTIONS]
Options:
--id ID Configuration numeric identifier
--name NAME Name to search by
-h, --help print help
Usage:
hammer virt-who-config deploy [OPTIONS]
Options:
--id ID
--name NAME Name to search by
-h, --help print help
325
Red Hat Satellite 6.3 Hammer CLI Guide
Usage:
hammer virt-who-config fetch [OPTIONS]
Options:
--id ID
--name NAME Name to search by
--output, -o FILE File where the script will be written.
-h, --help print help
Usage:
hammer virt-who-config info [OPTIONS]
Options:
--id ID
--name NAME Name to search by
-h, --help print help
Usage:
hammer virt-who-config list [OPTIONS]
Options:
--order ORDER sort results
--page PAGE paginate results
--per-page PER_PAGE number of entries per request
--search SEARCH filter results
-h, --help print help
Usage:
hammer virt-who-config update [OPTIONS]
Options:
--blacklist BLACKLIST Hypervisor blacklist,
applicable only when filtering mode is set to 2.
Wildcards and regular
expressions are supported, multiple records must be
separated by comma.
--debug DEBUG Enable debugging output
One of true/false, yes/no,
1/0.
326
CHAPTER 10. REFERENCE
327