2.34. hammer host
Manipulate hosts
Usage:
hammer host [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND Subcommand
[ARG] ... Subcommand arguments
Subcommands:
ansible-roles Manage Ansible roles on a host
boot Boot host from specified device
config-reports List all reports
create Create a host
delete, destroy Delete a host
delete-parameter Delete parameter for a host
disassociate Disassociate a host
enc-dump Dump host's ENC YAML
errata Manage errata on your hosts
facts List all fact values
info, show Show a host
interface View and manage host's network interfaces
list, index List all hosts
package Manage packages on your hosts
package-group Manage package-groups on your hosts
policies-enc View policies ENC for host
puppet-classes List all Puppet classes
puppetrun Force a Puppet agent run on the host
reboot Reboot a host
rebuild-config Rebuild orchestration related configurations for host
reports List all reports
reset Reset a host
sc-params List all smart class parameters
set-parameter Create or append a parameter for a host
start Power a host on
status Get status of host
stop Power a host off
subscription Manage subscription information on your hosts
traces List traces on your hosts
update Update a host
Options:
-h, --help Print help
Usage:
hammer host [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND Subcommand
[ARG] ... Subcommand arguments
Subcommands:
ansible-roles Manage Ansible roles on a host
boot Boot host from specified device
config-reports List all reports
create Create a host
delete, destroy Delete a host
delete-parameter Delete parameter for a host
disassociate Disassociate a host
enc-dump Dump host's ENC YAML
errata Manage errata on your hosts
facts List all fact values
info, show Show a host
interface View and manage host's network interfaces
list, index List all hosts
package Manage packages on your hosts
package-group Manage package-groups on your hosts
policies-enc View policies ENC for host
puppet-classes List all Puppet classes
puppetrun Force a Puppet agent run on the host
reboot Reboot a host
rebuild-config Rebuild orchestration related configurations for host
reports List all reports
reset Reset a host
sc-params List all smart class parameters
set-parameter Create or append a parameter for a host
start Power a host on
status Get status of host
stop Power a host off
subscription Manage subscription information on your hosts
traces List traces on your hosts
update Update a host
Options:
-h, --help Print help
2.34.1. hammer host ansible-roles リンクのコピーリンクがクリップボードにコピーされました!
リンクのコピーリンクがクリップボードにコピーされました!
Manage Ansible roles on a host
Usage:
hammer host ansible-roles [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND Subcommand
[ARG] ... Subcommand arguments
Subcommands:
assign Assigns Ansible roles to a host
list, index List all Ansible roles for a host
play Runs all Ansible roles on a host
Options:
-h, --help Print help
Usage:
hammer host ansible-roles [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND Subcommand
[ARG] ... Subcommand arguments
Subcommands:
assign Assigns Ansible roles to a host
list, index List all Ansible roles for a host
play Runs all Ansible roles on a host
Options:
-h, --help Print help
2.34.1.1. hammer host ansible-roles assign リンクのコピーリンクがクリップボードにコピーされました!
リンクのコピーリンクがクリップボードにコピーされました!
Assigns Ansible roles to a host
Usage:
hammer host ansible-roles assign [OPTIONS]
Options:
--ansible-role-ids ANSIBLE_ROLE_IDS Ansible roles to assign to a host
Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
JSON is acceptable and preferred way for complex parameters
--ansible-roles ANSIBLE_ROLE_NAMES Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
JSON is acceptable and preferred way for complex parameters
--id ID
--location LOCATION_NAME Set the current location context for the request
--location-id LOCATION_ID Set the current location context for the request
--location-title LOCATION_TITLE Set the current location context for the request
--name NAME Host name
--organization ORGANIZATION_NAME Set the current organization context for the request
--organization-id ORGANIZATION_ID Set the current organization context for the request
--organization-title ORGANIZATION_TITLE Set the current organization context for the request
-h, --help Print help
Usage:
hammer host ansible-roles assign [OPTIONS]
Options:
--ansible-role-ids ANSIBLE_ROLE_IDS Ansible roles to assign to a host
Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
JSON is acceptable and preferred way for complex parameters
--ansible-roles ANSIBLE_ROLE_NAMES Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
JSON is acceptable and preferred way for complex parameters
--id ID
--location LOCATION_NAME Set the current location context for the request
--location-id LOCATION_ID Set the current location context for the request
--location-title LOCATION_TITLE Set the current location context for the request
--name NAME Host name
--organization ORGANIZATION_NAME Set the current organization context for the request
--organization-id ORGANIZATION_ID Set the current organization context for the request
--organization-title ORGANIZATION_TITLE Set the current organization context for the request
-h, --help Print help
2.34.1.2. hammer host ansible-roles list リンクのコピーリンクがクリップボードにコピーされました!
リンクのコピーリンクがクリップボードにコピーされました!
List all Ansible roles for a host
Usage:
hammer host ansible-roles <list|index> [OPTIONS]
Options:
--fields FIELDS Show specified fields or predefined field sets only. (See below)
Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
JSON is acceptable and preferred way for complex parameters
--id ID
--location LOCATION_NAME Set the current location context for the request
--location-id LOCATION_ID Set the current location context for the request
--location-title LOCATION_TITLE Set the current location context for the request
--name NAME Host name
--organization ORGANIZATION_NAME Set the current organization context for the request
--organization-id ORGANIZATION_ID Set the current organization context for the request
--organization-title ORGANIZATION_TITLE Set the current organization context for the request
-h, --help Print help
Predefined field sets:
------------|-----|---------|-----
FIELDS | ALL | DEFAULT | THIN
------------|-----|---------|-----
Id | x | x | x
Name | x | x | x
Imported at | x | x |
------------|-----|---------|-----
Usage:
hammer host ansible-roles <list|index> [OPTIONS]
Options:
--fields FIELDS Show specified fields or predefined field sets only. (See below)
Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
JSON is acceptable and preferred way for complex parameters
--id ID
--location LOCATION_NAME Set the current location context for the request
--location-id LOCATION_ID Set the current location context for the request
--location-title LOCATION_TITLE Set the current location context for the request
--name NAME Host name
--organization ORGANIZATION_NAME Set the current organization context for the request
--organization-id ORGANIZATION_ID Set the current organization context for the request
--organization-title ORGANIZATION_TITLE Set the current organization context for the request
-h, --help Print help
Predefined field sets:
------------|-----|---------|-----
FIELDS | ALL | DEFAULT | THIN
------------|-----|---------|-----
Id | x | x | x
Name | x | x | x
Imported at | x | x |
------------|-----|---------|-----
2.34.1.3. hammer host ansible-roles play リンクのコピーリンクがクリップボードにコピーされました!
リンクのコピーリンクがクリップボードにコピーされました!
Runs all Ansible roles on a host
Usage:
hammer host ansible-roles play [OPTIONS]
Options:
--id ID
--location LOCATION_NAME Set the current location context for the request
--location-id LOCATION_ID Set the current location context for the request
--location-title LOCATION_TITLE Set the current location context for the request
--name NAME Host name
--organization ORGANIZATION_NAME Set the current organization context for the request
--organization-id ORGANIZATION_ID Set the current organization context for the request
--organization-title ORGANIZATION_TITLE Set the current organization context for the request
-h, --help Print help
Usage:
hammer host ansible-roles play [OPTIONS]
Options:
--id ID
--location LOCATION_NAME Set the current location context for the request
--location-id LOCATION_ID Set the current location context for the request
--location-title LOCATION_TITLE Set the current location context for the request
--name NAME Host name
--organization ORGANIZATION_NAME Set the current organization context for the request
--organization-id ORGANIZATION_ID Set the current organization context for the request
--organization-title ORGANIZATION_TITLE Set the current organization context for the request
-h, --help Print help