robottelo.cli.host

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 deb-package Manage deb packages on your hosts delete 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 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 policies-enc View policies ENC for host puppet-classes List all Puppet classes 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

Module Contents

Classes

Host

Manipulates Foreman’s hosts.

HostInterface

Manages interface functionality for hosts.

class robottelo.cli.host.Host

Bases: robottelo.cli.base.Base

Manipulates Foreman’s hosts.

command_base = host
classmethod ansible_roles_play(cls, options)

Plays the associated ansible-roles

classmethod enc_dump(cls, options)

Dump host’s ENC YAML.

Usage:

hammer host enc-dump [OPTIONS]

Options:

--id ID
--location LOCATION_NAME                Location name
--location-id LOCATION_ID
--location-title LOCATION_TITLE         Location title
--name NAME                             Host name
--organization ORGANIZATION_NAME        Organization name
--organization-id ORGANIZATION_ID       Organization ID
--organization-title ORGANIZATION_TITLE Organization title
-h, --help                              Print help
classmethod errata_apply(cls, options)

Schedule errata for installation

classmethod errata_info(cls, options)

Retrieve a single errata for a system

classmethod errata_list(cls, options)

List errata available for the content host.

classmethod facts(cls, options=None)

List all fact values.

Usage:

hammer host facts [OPTIONS]

Options:

--id ID                       resource id
--name NAME                   resource 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
classmethod package_install(cls, options)

Install packages remotely.

classmethod package_list(cls, options)

List packages installed on the host.

classmethod package_remove(cls, options)

Uninstall packages remotely.

classmethod package_upgrade(cls, options)

Update packages remotely.

classmethod package_upgrade_all(cls, options)

Update all packages remotely.

classmethod package_group_install(cls, options)

Install package groups remotely.

classmethod package_group_remove(cls, options)

Uninstall package groups remotely.

classmethod reboot(cls, options=None)

Reboot a host

Usage:

hammer host reboot [OPTIONS]

Options:

--id ID                       resource id
--name NAME                   resource name
-h, --help                    print help
classmethod reports(cls, options=None)

List all reports.

Usage:

hammer host reports [OPTIONS]

Options:

--id ID                       resource id
--name NAME                   resource 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
classmethod start(cls, options=None)

Power a host on

Usage:

hammer host start [OPTIONS]

Options:

--id ID                       resource id
--name NAME                   resource name
-h, --help                    print help
classmethod status(cls, options=None)

Get status of host

Usage:

hammer host status [OPTIONS]

Options:

--id ID                       resource id
--name NAME                   resource name
-h, --help                    print help
classmethod stop(cls, options=None)

Power a host off

Usage:

hammer host stop [OPTIONS]

Options:

--force                       Force turning off a host
--id ID                       resource id
--name NAME                   resource name
-h, --help                    print help
classmethod subscription_register(cls, options=None)

Register a host with subscription and information.

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.
--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
--organization-label ORGANIZATION_LABEL             Organization
                                                    label 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
classmethod subscription_unregister(cls, options=None)

Unregister the host as a subscription consumer.

Usage:

hammer host subscription unregister [OPTIONS]

Options:

--host HOST_NAME              Name to search by
--host-id HOST_ID             Host ID
classmethod subscription_attach(cls, options=None)

Attach a subscription to host

Usage:

hammer host subscription attach [OPTIONS]

Options:

--host HOST_NAME                  Name to search by
--host-id HOST_ID                 Host ID
--quantity Quantity               Quantity of this subscriptions to
                                  add. Defaults to 1
--subscription-id SUBSCRIPTION_ID ID of subscription
classmethod subscription_remove(cls, options=None)

Remove a subscription from host

Usage:

hammer host subscription remove [OPTIONS]

Options:

--host HOST_NAME                    Name to search by
--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
classmethod subscription_auto_attach(cls, options=None)

Auto attach subscription to host

Usage:

hammer host subscription auto-attach [OPTIONS]

Options:

--host HOST_NAME              Name to search by
--host-id HOST_ID
-h, --help                    print help
classmethod sc_params(cls, options=None)

List all smart class parameters

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
class robottelo.cli.host.HostInterface

Bases: robottelo.cli.base.Base

Manages interface functionality for hosts.

Usage::

hammer host interface [OPTIONS] SUBCOMMAND [ARG] …

Subcommands::

create Create an interface on a host delete Delete a host’s interface info Show an interface for host list List all interfaces for host update Update a host’s interface

command_base = host interface
classmethod create(cls, options=None)

Create new network interface for host