3.35. hammer 主机
操作主机
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, 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 reboot Reboot a host rebuild-config Rebuild orchestration related configurations for host reports List all reports reset Reset a host 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
3.35.1. hammer 主机 ansible-roles
管理主机上的 Ansible 角色
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
3.35.1.1. hammer 主机 ansible-roles 分配
为主机分配 Ansible 角色
Usage: hammer host ansible-roles assign [OPTIONS] Options: --ansible-role-ids LIST Ansible roles to assign to a host --ansible-roles LIST --id VALUE --location VALUE Set the current location context for the request --location-id NUMBER Set the current location context for the request --location-title VALUE Set the current location context for the request --name VALUE Host name --organization VALUE Set the current organization context for the request --organization-id NUMBER Set the current organization context for the request --organization-title VALUE Set the current organization context for the request -h, --help Print help Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.1.2. hammer 主机 ansible-roles 列表
列出主机的所有 Ansible 角色
Usage: hammer host ansible-roles <list|index> [OPTIONS] Options: --fields LIST Show specified fields or predefined field sets only. (See below) --id VALUE --location VALUE Set the current location context for the request --location-id NUMBER Set the current location context for the request --location-title VALUE Set the current location context for the request --name VALUE Host name --organization VALUE Set the current organization context for the request --organization-id NUMBER Set the current organization context for the request --organization-title VALUE 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 | ------------|-----|---------|----- Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.1.3. hammer 主机 ansible-roles play
在主机上运行所有 Ansible 角色
Usage: hammer host ansible-roles play [OPTIONS] Options: --id VALUE --location VALUE Set the current location context for the request --location-id NUMBER Set the current location context for the request --location-title VALUE Set the current location context for the request --name VALUE Host name --organization VALUE Set the current organization context for the request --organization-id NUMBER Set the current organization context for the request --organization-title VALUE Set the current organization context for the request -h, --help Print help Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.2. hammer 主机引导
从指定设备引导主机
Usage: hammer host boot [OPTIONS] Options: --device VALUE Boot device, valid devices are disk, cdrom, pxe, bios --id VALUE --location VALUE Set the current location context for the request --location-id NUMBER Set the current location context for the request --location-title VALUE Set the current location context for the request --name VALUE Host name --organization VALUE Set the current organization context for the request --organization-id NUMBER Set the current organization context for the request --organization-title VALUE Set the current organization context for the request -h, --help Print help Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.3. hammer 主机 config-reports
列出所有报告
Usage: hammer host config-reports [OPTIONS] Options: --fields LIST Show specified fields or predefined field sets only. (See below) --id VALUE Host id --location VALUE Set the current location context for the request --location-id NUMBER Set the current location context for the request --location-title VALUE Set the current location context for the request --name VALUE Host name --order VALUE Sort and order by a searchable field, e.g. '<field> DESC' --organization VALUE Set the current organization context for the request --organization-id NUMBER Set the current organization context for the request --organization-title VALUE Set the current organization context for the request --page NUMBER Page number, starting at 1 --per-page VALUE Number of results per page to return, 'all' to return all results --search VALUE Filter results -h, --help Print help Predefined field sets: -----------------|-----|---------|----- FIELDS | ALL | DEFAULT | THIN -----------------|-----|---------|----- Id | x | x | x Host | x | x | Last report | x | x | Origin | x | x | Applied | x | x | Restarted | x | x | Failed | x | x | Restart failures | x | x | Skipped | x | x | Pending | x | x | -----------------|-----|---------|----- Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string Search / Order fields: applied integer eventful Values: true, false failed integer failed_restarts integer host string host_id integer host_owner_id integer hostgroup string hostgroup_fullname string hostgroup_title string last_report datetime location string log text organization string origin string pending integer reported datetime resource text restarted integer skipped integer
3.35.4. hammer 主机创建
创建主机
Usage: hammer host create [OPTIONS] Options: --ansible-role-ids LIST IDs of associated ansible roles --ansible-roles LIST --architecture VALUE Architecture name --architecture-id NUMBER Required if host is managed and value is not inherited from host group --ask-root-password BOOLEAN --autoheal BOOLEAN Sets whether the Host will autoheal subscriptions upon checkin --build BOOLEAN --comment VALUE Additional information about this host --compute-attributes KEY_VALUE_LIST Compute resource attributes --compute-profile VALUE Compute profile name --compute-profile-id NUMBER --compute-resource VALUE Compute resource name --compute-resource-id NUMBER Nil means host is bare metal --content-source VALUE Content Source name --content-source-id NUMBER --content-view VALUE Name to search by --content-view-id NUMBER --domain VALUE Domain name --domain-id NUMBER Required if host is managed and value is not inherited from host group --enabled BOOLEAN Include this host within Satellite reporting --hostgroup VALUE Hostgroup name --hostgroup-id NUMBER --hostgroup-title VALUE Hostgroup title --hypervisor-guest-uuids LIST List of hypervisor guest uuids --image VALUE Name to search by --image-id NUMBER --installed-products-attributes SCHEMA List of products installed on the host --interface KEY_VALUE_LIST Interface parameters Can be specified multiple times. --ip VALUE Not required if using a subnet with DHCP Capsule --kickstart-repository VALUE Kickstart repository name --kickstart-repository-id NUMBER Repository Id associated with the kickstart repo used for provisioning --lifecycle-environment VALUE Name to search by --lifecycle-environment-id NUMBER --location VALUE Set the current location context for the request --location-id NUMBER Set the current location context for the request --location-title VALUE Set the current location context for the request --mac VALUE Required for managed host that is bare metal, not required if it's a virtual machine --managed BOOLEAN True/False flag whether a host is managed or unmanaged. Note: this value also determines whether several parameters are required or not --medium VALUE Medium name --medium-id VALUE Required if not imaged based provisioning and host is managed and value is not inherited from host group --model VALUE Model name --model-id NUMBER --name VALUE --openscap-proxy-id NUMBER ID of OpenSCAP Capsule --operatingsystem VALUE Operating system title --operatingsystem-id NUMBER Required if host is managed and value is not inherited from host group --organization VALUE Set the current organization context for the request --organization-id NUMBER Set the current organization context for the request --organization-title VALUE Set the current organization context for the request --overwrite BOOLEAN Default: "true" --owner VALUE Login of the owner --owner-id VALUE ID of the owner --owner-type ENUM Host's owner type Possible value(s): 'User', 'Usergroup' --parameters KEY_VALUE_LIST Replaces with new host parameters --partition-table VALUE Partition table name --partition-table-id NUMBER Required if host is managed and custom partition has not been defined --product VALUE Name to search by --product-id NUMBER Product id as listed from a host's installed products, this is not the same product id as the products api returns --progress-report-id VALUE UUID to track orchestration tasks status, GET /api/orchestration/:UUID/tasks --provision-method ENUM The method used to provision the host. Possible value(s): 'build', 'image', 'bootdisk' --puppet-ca-proxy-id NUMBER Puppet CA Capsule ID --puppet-proxy-id NUMBER Puppet Capsule ID --purpose-addons LIST Sets the system add-ons --purpose-role VALUE Sets the system purpose usage --purpose-usage VALUE Sets the system purpose usage --pxe-loader ENUM DHCP filename option (Grub2/PXELinux by default) Possible value(s): 'None', 'PXELinux BIOS', 'PXELinux UEFI', 'Grub UEFI', 'Grub2 BIOS', 'Grub2 ELF', 'Grub2 UEFI', 'Grub2 UEFI SecureBoot', 'Grub2 UEFI HTTP', 'Grub2 UEFI HTTPS', 'Grub2 UEFI HTTPS SecureBoot', 'iPXE Embedded', 'iPXE UEFI HTTP', 'iPXE Chain BIOS', 'iPXE Chain UEFI' --realm VALUE Name to search by --realm-id NUMBER --release-version VALUE Release version for this Host to use (7Server, 7.1, etc) --root-password VALUE Required if host is managed and value is not inherited from host group or default password in settings --service-level VALUE Service level to be used for autoheal --subnet VALUE Subnet name --subnet-id NUMBER Required if host is managed and value is not inherited from host group --typed-parameters SCHEMA Replaces with new host parameters (with type support) --volume KEY_VALUE_LIST Volume parameters Can be specified multiple times. -h, --help Print help Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string Following parameters accept format defined by its schema (bold are required; <> contains acceptable type; [] contains acceptable value): --typed-parameters "name=<string>\,value=<string>\,parameter_type=[string|boolean|integer|real|array|hash|yaml|json]\,hidden_value=[true|false|1|0], ... " --installed-products-attributes "product_id=<string>\,product_name=<string>\,arch=<string>\,version=<string>, ... " Available keys for --interface: mac ip type Possible values: interface, bmc, bond, bridge name subnet_id domain_id identifier managed true/false primary true/false, each managed hosts needs to have one primary interface. provision true/false virtual true/false 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 Provider specific options: NOTE: Bold attributes are required. EC2: --volume: --interface: --compute-attributes: availability_zone flavor_id groups security_group_ids managed_ip GCE: --volume: size_gb Volume size in GB, integer value --interface: --compute-attributes: machine_type network associate_external_ip Libvirt: --volume: pool_name One of available storage pools capacity String value, e.g. 10G allocation Initial allocation, e.g. 0G format_type Possible values: raw, qcow2 --interface: compute_type Possible values: bridge, network compute_bridge Name of interface according to type compute_model Possible values: virtio, rtl8139, ne2k_pci, pcnet, e1000 compute_network Libvirt instance network, e.g. default --compute-attributes: cpus Number of CPUs memory String, amount of memory, value in bytes cpu_mode Possible values: default, host-model, host-passthrough start Boolean (expressed as 0 or 1), whether to start the machine or not OpenStack: --volume: --interface: --compute-attributes: availability_zone boot_from_volume flavor_ref image_ref tenant_id security_groups network oVirt: --volume: size_gb Volume size in GB, integer value storage_domain ID or name of storage domain bootable Boolean, set 1 for bootable, only one volume can be bootable preallocate Boolean, set 1 to preallocate wipe_after_delete Boolean, set 1 to wipe disk after delete interface Disk interface name, must be ide, virto or virto_scsi --interface: compute_name Compute name, e.g. eth0 compute_network Select one of available networks for a cluster, must be an ID or a name compute_interface Interface type compute_vnic_profile Vnic Profile --compute-attributes: cluster ID or name of cluster to use template Hardware profile to use cores Integer value, number of cores sockets Integer value, number of sockets memory Amount of memory, integer value in bytes ha Boolean, set 1 to high availability display_type Possible values: VNC, SPICE keyboard_layout Possible values: ar, de-ch, es, fo, fr-ca, hu, ja, mk, no, pt-br, sv, da, en-gb, et, fr, fr-ch, is, lt, nl, pl, ru, th, de, en-us, fi, fr-be, hr, it, lv, nl-be, pt, sl, tr. Not usable if display type is SPICE. start Boolean, set 1 to start the vm Rackspace: --volume: --interface: --compute-attributes: flavor_id VMware: --volume: name storage_pod Storage Pod ID from VMware datastore Datastore ID from VMware mode persistent/independent_persistent/independent_nonpersistent size_gb Integer number, volume size in GB thin true/false eager_zero true/false controller_key Associated SCSI controller key --interface: compute_type Type of the network adapter, for example one of: VirtualVmxnet3 VirtualE1000 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 or Network Name from VMware --compute-attributes: cluster Cluster ID from VMware corespersocket Number of cores per socket (applicable to hardware versions < 10 only) cpus CPU count memory_mb Integer number, amount of memory in MB path Path to folder resource_pool Resource Pool ID from VMware firmware automatic/bios/efi guest_id Guest OS ID form VMware hardware_version Hardware version ID from VMware memoryHotAddEnabled Must be a 1 or 0, lets you add memory resources while the machine is on cpuHotAddEnabled Must be a 1 or 0, lets you add CPU resources while the machine is on add_cdrom Must be a 1 or 0, Add a CD-ROM drive to the virtual machine annotation Annotation Notes scsi_controllers List with SCSI controllers definitions type - ID of the controller from VMware key - Key of the controller (e.g. 1000) start Must be a 1 or 0, whether to start the machine or not AzureRM: --volume: disk_size_gb Volume Size in GB (integer value) data_disk_caching Data Disk Caching (None, ReadOnly, ReadWrite) --interface: compute_network Select one of available Azure Subnets, must be an ID compute_public_ip Public IP (None, Static, Dynamic) compute_private_ip Static Private IP (expressed as true or false) --compute-attributes: resource_group Existing Azure Resource Group of user vm_size VM Size, eg. Standard_A0 etc. username The Admin username password The Admin password platform OS type eg. Linux ssh_key_data SSH key for passwordless authentication os_disk_caching OS disk caching premium_os_disk Premium OS Disk, Boolean as 0 or 1 script_command Custom Script Command script_uris Comma seperated file URIs
3.35.5. hammer 主机 deb-package
管理主机上的 deb 软件包
Usage: hammer host deb-package [OPTIONS] SUBCOMMAND [ARG] ... Parameters: SUBCOMMAND Subcommand [ARG] ... Subcommand arguments Subcommands: list, index List deb packages installed on the host Options: -h, --help Print help
3.35.5.1. hammer 主机 deb-package 列表
列出主机上安装的 deb 软件包
Usage: hammer host deb-package <list|index> [OPTIONS] Options: --fields LIST Show specified fields or predefined field sets only. (See below) --full-result BOOLEAN Whether or not to show all results --host VALUE Host name --host-id NUMBER ID of the host --order VALUE Sort field and order, eg. 'id DESC' --page NUMBER Page number, starting at 1 --per-page NUMBER Number of results per page to return --search VALUE Search string -h, --help Print help Predefined field sets: --------|-----|---------|----- FIELDS | ALL | DEFAULT | THIN --------|-----|---------|----- Id | x | x | x Name | x | x | x Version | x | x | Arch | x | x | --------|-----|---------|----- Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.6. hammer 主机删除
删除主机
Usage: hammer host <delete|destroy> [OPTIONS] Options: --id VALUE --location VALUE Set the current location context for the request --location-id NUMBER Set the current location context for the request --location-title VALUE Set the current location context for the request --name VALUE Host name --organization VALUE Set the current organization context for the request --organization-id NUMBER Set the current organization context for the request --organization-title VALUE Set the current organization context for the request -h, --help Print help Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.7. hammer host delete-parameter
主机的删除参数
Usage: hammer host delete-parameter [OPTIONS] Options: --host VALUE Host name --host-id NUMBER --name VALUE Parameter name -h, --help Print help Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.8. Hammer 主机解除关联
解除关联主机
Usage: hammer host disassociate [OPTIONS] Options: --id VALUE --location VALUE Set the current location context for the request --location-id NUMBER Set the current location context for the request --location-title VALUE Set the current location context for the request --name VALUE Host name --organization VALUE Set the current organization context for the request --organization-id NUMBER Set the current organization context for the request --organization-title VALUE Set the current organization context for the request -h, --help Print help Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.9. hammer 主机 enc-dump
转储主机的 ENC YAML
Usage: hammer host enc-dump [OPTIONS] Options: --id VALUE --location VALUE Set the current location context for the request --location-id NUMBER Set the current location context for the request --location-title VALUE Set the current location context for the request --name VALUE Host name --organization VALUE Set the current organization context for the request --organization-id NUMBER Set the current organization context for the request --organization-title VALUE Set the current organization context for the request -h, --help Print help Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.10. Hammer 主机勘误
管理主机上的勘误
Usage: hammer host errata [OPTIONS] SUBCOMMAND [ARG] ... Parameters: SUBCOMMAND Subcommand [ARG] ... Subcommand arguments Subcommands: apply Schedule errata for installation using katello-agent. NOTE: Katello-agent is deprecated and will be removed in a future release. Consider using remote execution instead. info Retrieve a single errata for a host list List errata available for the content host recalculate Force regenerate applicability. Options: -h, --help Print help
3.35.10.1. 应用的 Hammer 主机勘误
使用 katello-agent 为安装调度勘误。注意: Katello-agent 已被弃用,并将在以后的发行版本中删除。考虑改为使用远程执行。
Usage: hammer host errata apply [OPTIONS] Options: --async Do not wait for the task --errata-ids LIST List of Errata ids to install. Will be removed in a future release --full-result BOOLEAN Whether or not to show all results --host VALUE Host name --host-id NUMBER Host ID --order VALUE Sort field and order, eg. 'id DESC' --page NUMBER Page number, starting at 1 --per-page NUMBER Number of results per page to return --search VALUE Search string for erratum to perform an action on --sort-by VALUE Field to sort the results on --sort-order VALUE How to order the sorted results (e.g. ASC for ascending) -h, --help Print help Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.10.2. Hammer 主机勘误表信息
为主机检索单个勘误
Usage: hammer host errata info [OPTIONS] Options: --fields LIST Show specified fields or predefined field sets only. (See below) --host VALUE Host name --host-id NUMBER Host ID --id VALUE Errata id of the erratum (RHSA-2012:108) --name VALUE Name to search by -h, --help Print help Predefined field sets: ------------------------|-----|-------- FIELDS | ALL | DEFAULT ------------------------|-----|-------- Title | x | x Version | x | x Description | x | x Status | x | x Id | x | x Errata id | x | x Reboot suggested | x | x Updated | x | x Issued | x | x Release | x | x Solution | x | x Packages | x | x Module streams/name | x | x Module streams/stream | x | x Module streams/packages | x | x ------------------------|-----|-------- Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.10.3. Hammer 主机勘误列表
列出可用于内容主机的勘误
Usage: hammer host errata list [OPTIONS] Options: --content-view VALUE Content view name to search by --content-view-id NUMBER Calculate Applicable Errata based on a particular Content View --environment VALUE Lifecycle environment name to search by (--environment is deprecated: Use --lifecycle-environment instead) --environment-id NUMBER (--environment-id is deprecated: Use --lifecycle-environment-id instead) --fields LIST Show specified fields or predefined field sets only. (See below) --full-result BOOLEAN Whether or not to show all results --host VALUE Host name --host-id NUMBER UUID of the content host --include-applicable BOOLEAN Return errata that are applicable to this host. Defaults to false) --lifecycle-environment VALUE Lifecycle environment name to search by --lifecycle-environment-id NUMBER Calculate Applicable Errata based on a particular Environment --order VALUE Sort field and order, eg. 'id DESC' --organization VALUE Organization name to search by --organization-id VALUE Organization ID to search by --organization-label VALUE Organization label to search by --page NUMBER Page number, starting at 1 --per-page NUMBER Number of results per page to return --search VALUE Search string --severity VALUE Return only errata of a particular severity (None, Low, Moderate, Important, Critical) --type VALUE Return only errata of a particular type (security, bugfix, enhancement) -h, --help Print help Predefined field sets: ------------|-----|-------- FIELDS | ALL | DEFAULT ------------|-----|-------- Id | x | x Erratum id | x | x Type | x | x Title | x | x Installable | x | x ------------|-----|-------- Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.10.4. Hammer 主机勘误重新计算
强制重新生成适用性。
Usage: hammer host errata recalculate [OPTIONS] Options: --host VALUE Host name --host-id NUMBER Host ID -h, --help Print help Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.11. hammer 主机事实
列出所有事实值
Usage: hammer host facts [OPTIONS] Options: --fields LIST Show specified fields or predefined field sets only. (See below) --id VALUE --location VALUE Set the current location context for the request --location-id NUMBER Set the current location context for the request --location-title VALUE Set the current location context for the request --name VALUE Host name --order VALUE Sort and order by a searchable field, e.g. '<field> DESC' --organization VALUE Set the current organization context for the request --organization-id NUMBER Set the current organization context for the request --organization-title VALUE Set the current organization context for the request --page NUMBER Page number, starting at 1 --per-page VALUE Number of results per page to return, 'all' to return all results --search VALUE Filter results -h, --help Print help Predefined field sets: -------|-----|-------- FIELDS | ALL | DEFAULT -------|-----|-------- Fact | x | x Value | x | x -------|-----|-------- Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string Search / Order fields: fact string fact_short_name string facts string host string host.hostgroup string host_id integer location string location_id integer name string organization string organization_id integer origin string reported_at datetime short_name string type string value string
3.35.12. hammer 主机信息
显示主机
Usage: hammer host <info|show> [OPTIONS] Options: --fields LIST Show specified fields or predefined field sets only. (See below) --id VALUE --location VALUE Set the current location context for the request --location-id NUMBER Set the current location context for the request --location-title VALUE Set the current location context for the request --name VALUE Host name --organization VALUE Set the current organization context for the request --organization-id NUMBER Set the current organization context for the request --organization-title VALUE Set the current organization context for the request --show-hidden-parameters BOOLEAN Display hidden parameter values -h, --help Print help Predefined field sets: --------------------------------------------------------|-----|---------|----- FIELDS | ALL | DEFAULT | THIN --------------------------------------------------------|-----|---------|----- Id | x | x | x Uuid | x | x | Name | x | x | x Organization | x | x | Location | x | x | Host group | x | x | Compute resource | x | x | Compute profile | x | x | Cert name | x | x | Managed | x | x | Installed at | x | x | Last report | x | x | Uptime (seconds) | x | x | Status/global status | x | x | Status/build status | x | x | Network/ipv4 address | x | x | Network/ipv6 address | x | x | Network/mac | x | x | Network/subnet ipv4 | x | x | Network/subnet ipv6 | x | x | Network/domain | x | x | Network/service provider/sp name | x | x | Network/service provider/sp ip | x | x | Network/service provider/sp mac | x | x | Network/service provider/sp subnet | x | x | Network interfaces/id | x | x | Network interfaces/identifier | x | x | Network interfaces/type | x | x | Network interfaces/mac address | x | x | Network interfaces/ipv4 address | x | x | Network interfaces/ipv6 address | x | x | Network interfaces/fqdn | x | x | Operating system/architecture | x | x | Operating system/operating system | x | x | Operating system/build | x | x | Operating system/medium | x | x | Operating system/partition table | x | x | Operating system/pxe loader | x | x | Operating system/custom partition table | x | x | Operating system/image | x | x | Operating system/image file | x | x | Operating system/use image | x | x | Parameters/ | x | x | All parameters/ | x | x | Additional info/owner | x | x | Additional info/owner id | x | x | Additional info/owner type | x | x | Additional info/enabled | x | x | Additional info/model | x | x | Additional info/comment | x | x | Openscap proxy | x | x | Content information/content view/id | x | x | Content information/content view/name | x | x | Content information/lifecycle environment/id | x | x | Content information/lifecycle environment/name | x | x | Content information/content source/id | x | x | Content information/content source/name | x | x | Content information/kickstart repository/id | x | x | Content information/kickstart repository/name | x | x | Content information/applicable packages | x | x | Content information/upgradable packages | x | x | Content information/applicable errata/enhancement | x | x | Content information/applicable errata/bug fix | x | x | Content information/applicable errata/security | x | x | Subscription information/uuid | x | x | Subscription information/last checkin | x | x | Subscription information/release version | x | x | Subscription information/autoheal | x | x | Subscription information/registered to | x | x | Subscription information/registered at | x | x | Subscription information/registered by activation keys/ | x | x | Subscription information/system purpose/service level | x | x | Subscription information/system purpose/purpose usage | x | x | Subscription information/system purpose/purpose role | x | x | Subscription information/system purpose/purpose addons | x | x | Trace status | x | x | Host collections/id | x | x | Host collections/name | x | x | --------------------------------------------------------|-----|---------|----- Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.13. Hammer 主机接口
查看并管理主机的网络接口
Usage: hammer host interface [OPTIONS] SUBCOMMAND [ARG] ... Parameters: SUBCOMMAND Subcommand [ARG] ... Subcommand arguments Subcommands: create Create an interface on a host delete, destroy Delete a host's interface info, show Show an interface for host list, index List all interfaces for host update Update a host's interface Options: -h, --help Print help
3.35.13.1. hammer 主机接口创建
在主机上创建一个接口
Usage: hammer host interface create [OPTIONS] Options: --attached-devices LIST Identifiers of attached interfaces, e.g. `['eth1', 'eth2']`. For bond interfaces those are the slaves. Only for bond and bridges interfaces. --attached-to VALUE Identifier of the interface to which this interface belongs, e.g. eth1. Only for virtual interfaces. --bond-options VALUE Space separated options, e.g. miimon=100. Only for bond interfaces. --compute-attributes KEY_VALUE_LIST Compute resource specific attributes --domain VALUE Domain name --domain-id NUMBER Satellite domain ID of interface. Required for primary interfaces on managed hosts. --execution BOOLEAN Should this interface be used for remote execution? --host VALUE Host name --host-id VALUE ID or name of host --identifier VALUE Device identifier, e.g. eth0 or eth1.1 --ip VALUE IPv4 address of interface --ip6 VALUE IPv6 address of interface --location VALUE Set the current location context for the request --location-id NUMBER Set the current location context for the request --location-title VALUE Set the current location context for the request --mac VALUE MAC address of interface. Required for managed interfaces on bare metal. --managed BOOLEAN Should this interface be managed via DHCP and DNS capsule and should it be configured during provisioning? --mode ENUM 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' --mtu NUMBER MTU, this attribute has precedence over the subnet MTU. --name VALUE Interface's DNS name --organization VALUE Set the current organization context for the request --organization-id NUMBER Set the current organization context for the request --organization-title VALUE Set the current organization context for the request --password VALUE 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 ENUM Interface provider, e.g. IPMI. Only for BMC interfaces. Possible value(s): 'IPMI', 'Redfish', '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 VALUE Subnet name --subnet-id NUMBER Satellite subnet ID of IPv4 interface --subnet6-id NUMBER Satellite subnet ID of IPv6 interface --tag VALUE VLAN tag, this attribute has precedence over the subnet VLAN ID. Only for virtual interfaces. --type ENUM Interface type, e.g. bmc. Default is interface Possible value(s): 'interface', 'bmc', 'bond', 'bridge' --username VALUE Only for BMC interfaces. --virtual BOOLEAN Alias or VLAN device -h, --help Print help Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.13.2. hammer 主机接口删除
删除主机接口
Usage: hammer host interface <delete|destroy> [OPTIONS] Options: --host VALUE Host name --host-id VALUE ID or name of host --id VALUE ID of interface --location VALUE Set the current location context for the request --location-id NUMBER Set the current location context for the request --location-title VALUE Set the current location context for the request --organization VALUE Set the current organization context for the request --organization-id NUMBER Set the current organization context for the request --organization-title VALUE Set the current organization context for the request -h, --help Print help Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.13.3. hammer 主机接口信息
显示主机接口
Usage: hammer host interface <info|show> [OPTIONS] Options: --fields LIST Show specified fields or predefined field sets only. (See below) --host VALUE Host name --host-id VALUE ID or name of host --id VALUE ID or name of interface --location VALUE Set the current location context for the request --location-id NUMBER Set the current location context for the request --location-title VALUE Set the current location context for the request --organization VALUE Set the current organization context for the request --organization-id NUMBER Set the current organization context for the request --organization-title VALUE Set the current organization context for the request -h, --help Print help Predefined field sets: ----------------------|-----|---------|----- FIELDS | ALL | DEFAULT | THIN ----------------------|-----|---------|----- Id | x | x | x Identifier | x | x | Type | x | x | Mac address | x | x | Ip address | x | x | Dns name | x | x | Subnet | x | x | Domain | x | x | Managed | x | x | Primary | x | x | Provision | x | x | Virtual | x | x | Tag | x | x | Attached to | x | x | Bmc/username | x | x | Bmc/provider | x | x | Bond/mode | x | x | Bond/attached devices | x | x | Bond/bond options | x | x | Execution | x | x | ----------------------|-----|---------|----- Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.13.4. hammer 主机接口列表
列出主机的所有接口
Usage: hammer host interface <list|index> [OPTIONS] Options: --domain VALUE Domain name --domain-id VALUE ID or name of domain --fields LIST Show specified fields or predefined field sets only. (See below) --host VALUE Host name --host-id VALUE ID or name of host --location VALUE Set the current location context for the request --location-id NUMBER Set the current location context for the request --location-title VALUE Set the current location context for the request --organization VALUE Set the current organization context for the request --organization-id NUMBER Set the current organization context for the request --organization-title VALUE Set the current organization context for the request --page NUMBER Page number, starting at 1 --per-page VALUE Number of results per page to return, 'all' to return all results --subnet VALUE Subnet name --subnet-id VALUE ID or name of subnet -h, --help Print help Predefined field sets: ------------|-----|---------|----- FIELDS | ALL | DEFAULT | THIN ------------|-----|---------|----- Id | x | x | x Identifier | x | x | Type | x | x | Mac address | x | x | Ip address | x | x | Dns name | x | x | ------------|-----|---------|----- Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.13.5. Hammer 主机接口更新
更新主机接口
Usage: hammer host interface update [OPTIONS] Options: --attached-devices LIST Identifiers of attached interfaces, e.g. `['eth1', 'eth2']`. For bond interfaces those are the slaves. Only for bond and bridges interfaces. --attached-to VALUE Identifier of the interface to which this interface belongs, e.g. eth1. Only for virtual interfaces. --bond-options VALUE Space separated options, e.g. miimon=100. Only for bond interfaces. --compute-attributes KEY_VALUE_LIST Compute resource specific attributes --domain VALUE Domain name --domain-id NUMBER Satellite domain ID of interface. Required for primary interfaces on managed hosts. --execution BOOLEAN Should this interface be used for remote execution? --host VALUE Host name --host-id VALUE ID or name of host --id VALUE ID of interface --identifier VALUE Device identifier, e.g. eth0 or eth1.1 --ip VALUE IPv4 address of interface --ip6 VALUE IPv6 address of interface --location VALUE Set the current location context for the request --location-id NUMBER Set the current location context for the request --location-title VALUE Set the current location context for the request --mac VALUE MAC address of interface. Required for managed interfaces on bare metal. --managed BOOLEAN Should this interface be managed via DHCP and DNS capsule and should it be configured during provisioning? --mode ENUM 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' --mtu NUMBER MTU, this attribute has precedence over the subnet MTU. --name VALUE Interface's DNS name --organization VALUE Set the current organization context for the request --organization-id NUMBER Set the current organization context for the request --organization-title VALUE Set the current organization context for the request --password VALUE 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 ENUM Interface provider, e.g. IPMI. Only for BMC interfaces. Possible value(s): 'IPMI', 'Redfish', '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 VALUE Subnet name --subnet-id NUMBER Satellite subnet ID of IPv4 interface --subnet6-id NUMBER Satellite subnet ID of IPv6 interface --tag VALUE VLAN tag, this attribute has precedence over the subnet VLAN ID. Only for virtual interfaces. --type ENUM Interface type, e.g. bmc. Default is interface Possible value(s): 'interface', 'bmc', 'bond', 'bridge' --username VALUE Only for BMC interfaces. --virtual BOOLEAN Alias or VLAN device -h, --help Print help Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.14. hammer 主机列表
列出所有主机
Usage: hammer host <list|index> [OPTIONS] Options: --fields LIST Show specified fields or predefined field sets only. (See below) --hostgroup VALUE Hostgroup name --hostgroup-id VALUE ID of host group --hostgroup-title VALUE Hostgroup title --location VALUE Set the current location context for the request --location-id VALUE ID of location --location-title VALUE Set the current location context for the request --order VALUE Sort and order by a searchable field, e.g. '<field> DESC' --organization VALUE Set the current organization context for the request --organization-id VALUE ID of organization --organization-title VALUE Set the current organization context for the request --page NUMBER Page number, starting at 1 --per-page VALUE Number of results per page to return, 'all' to return all results --search VALUE Filter results --thin BOOLEAN Only list ID and name of hosts -h, --help Print help Predefined field sets: -----------------------|-----|---------|----- FIELDS | ALL | DEFAULT | THIN -----------------------|-----|---------|----- Id | x | x | x Name | x | x | x Operating system | x | x | Host group | x | x | Ip | x | x | Mac | x | x | Global status | x | x | Organization | x | | Location | x | | Additional information | x | | Content view | x | x | Lifecycle environment | x | x | Security | x | | Bugfix | x | | Enhancement | x | | Trace status | x | x | -----------------------|-----|---------|----- Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string Search / Order fields: activation_key string activation_key_id string addon string addons_status Values: mismatched, matched, not_specified ansible_role string applicable_debs string applicable_errata string applicable_errata_issued date applicable_rpms string architecture string autoheal boolean boot_time build Values: true, false build_status Values: built, pending, token_expired, build_failed comment text compute_resource string compute_resource_id integer content_source string content_view string content_view_id integer created_at datetime cve_id integer domain string domain_id integer errata_status Values: security_needed, errata_needed, updated, unknown execution_status Values: ok, error facts string global_status Values: ok, warning, error has_ip string has_mac string hostgroup string hostgroup_fullname string hostgroup_id integer hostgroup_name string hostgroup_title string hypervisor boolean hypervisor_host string id integer image string infrastructure_facet.foreman infrastructure_facet.smart_proxy_id insights_recommendations_count integer installable_errata string installed_at datetime ip string job_invocation.id string job_invocation.result Values: cancelled, failed, pending, success last_checkin datetime last_report datetime lifecycle_environment string lifecycle_environment_id integer location string location_id integer mac string managed Values: true, false model string name string organization string organization_id integer origin string os string os_description string os_id integer os_major string os_minor string os_title string owner string owner_id integer owner_type string params string params_name string parent_hostgroup string puppet_ca string puppet_proxy_id integer puppetmaster string purpose_status Values: mismatched, matched, not_specified realm string realm_id integer registered_at datetime registered_through string release_version string reported.boot_time reported.cores reported.disks_total reported.ram reported.sockets reported.virtual Values: true, false repository string repository_content_label string role text role_status Values: mismatched, matched, not_specified service_level string sla_status Values: mismatched, matched, not_specified smart_proxy string status.applied integer status.enabled Values: true, false status.failed integer status.failed_restarts integer status.interesting Values: true, false status.pending integer status.restarted integer status.skipped integer subnet string subnet.name text subnet6 string subnet6.name text subscription_id string subscription_name string subscription_status Values: valid, partial, invalid, unknown, disabled, unsubscribed_hypervisor subscription_uuid string trace_status Values: reboot_needed, process_restart_needed, updated upgradable_debs string upgradable_rpms string usage text usage_status Values: mismatched, matched, not_specified user.firstname string user.lastname string user.login string user.mail string usergroup string usergroup.name string uuid string
3.35.15. hammer 主机软件包
管理主机上的软件包
Usage: hammer host package [OPTIONS] SUBCOMMAND [ARG] ... Parameters: SUBCOMMAND Subcommand [ARG] ... Subcommand arguments Subcommands: install Install packages remotely using katello-agent. NOTE: Katello-agent is deprecated and will be removed in a future release. Consider using remote execution instead. list, index List packages installed on the host remove Uninstall packages remotely using katello-agent. NOTE: Katello-agent is deprecated and will be removed in a future release. Consider using remote execution instead. upgrade Update packages remotely using katello-agent. NOTE: Katello-agent is deprecated and will be removed in a future release. Consider using remote execution instead. upgrade-all Update packages remotely using katello-agent. NOTE: Katello-agent is deprecated and will be removed in a future release. Consider using remote execution instead. Options: -h, --help Print help
3.35.15.1. hammer 主机软件包安装
使用 katello-agent 远程安装软件包。注意: Katello-agent 已被弃用,并将在以后的发行版本中删除。考虑改为使用远程执行。
Usage: hammer host package install [OPTIONS] Options: --async Do not wait for the task --host VALUE Host name --host-id NUMBER ID of the host --packages LIST List of package names -h, --help Print help Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.15.2. hammer 主机软件包列表
列出主机上安装的软件包
Usage: hammer host package <list|index> [OPTIONS] Options: --fields LIST Show specified fields or predefined field sets only. (See below) --full-result BOOLEAN Whether or not to show all results --host VALUE Host name --host-id NUMBER ID of the host --include-latest-upgradable BOOLEAN Also include the latest upgradable package version for each host package --order VALUE Sort field and order, eg. 'id DESC' --page NUMBER Page number, starting at 1 --per-page NUMBER Number of results per page to return --search VALUE Search string --status VALUE Return only packages of a particular status (upgradable or up-to-date) -h, --help Print help Predefined field sets: -------|-----|-------- FIELDS | ALL | DEFAULT -------|-----|-------- Nvra | x | x -------|-----|-------- Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string Search / Order fields: arch string epoch string name string nvra string nvrea string release string version string
3.35.15.3. hammer 主机软件包删除
使用 katello-agent 远程卸载软件包。注意: Katello-agent 已被弃用,并将在以后的发行版本中删除。考虑改为使用远程执行。
Usage: hammer host package remove [OPTIONS] Options: --async Do not wait for the task --host VALUE Host name --host-id NUMBER ID of the host --packages LIST List of package names -h, --help Print help Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.15.4. hammer 主机软件包升级
使用 katello-agent 远程更新软件包。注意: Katello-agent 已被弃用,并将在以后的发行版本中删除。考虑改为使用远程执行。
Usage: hammer host package upgrade [OPTIONS] Options: --async Do not wait for the task --host VALUE Host name --host-id NUMBER ID of the host --packages LIST List of packages names -h, --help Print help Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.15.5. hammer 主机软件包 upgrade-all
使用 katello-agent 远程更新软件包。注意: Katello-agent 已被弃用,并将在以后的发行版本中删除。考虑改为使用远程执行。
Usage: hammer host package upgrade-all [OPTIONS] Options: --async Do not wait for the task --host VALUE Host name --host-id NUMBER ID of the host -h, --help Print help Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.16. hammer host package-group
管理主机上的 package-groups
Usage: hammer host package-group [OPTIONS] SUBCOMMAND [ARG] ... Parameters: SUBCOMMAND Subcommand [ARG] ... Subcommand arguments Subcommands: install Install packages remotely using katello-agent. NOTE: Katello-agent is deprecated and will be removed in a future release. Consider using remote execution instead. remove Uninstall packages remotely using katello-agent. NOTE: Katello-agent is deprecated and will be removed in a future release. Consider using remote execution instead. Options: -h, --help Print help
3.35.16.1. hammer host package-group install
使用 katello-agent 远程安装软件包。注意: Katello-agent 已被弃用,并将在以后的发行版本中删除。考虑改为使用远程执行。
Usage: hammer host package-group install [OPTIONS] Options: --async Do not wait for the task --groups LIST List of package group names (Deprecated) --host VALUE Host name --host-id NUMBER ID of the host -h, --help Print help Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.16.2. hammer host package-group remove
使用 katello-agent 远程卸载软件包。注意: Katello-agent 已被弃用,并将在以后的发行版本中删除。考虑改为使用远程执行。
Usage: hammer host package-group remove [OPTIONS] Options: --async Do not wait for the task --groups LIST List of package group names (Deprecated) --host VALUE Host name --host-id NUMBER ID of the host -h, --help Print help Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.17. hammer 主机 policy-enc
查看主机的策略 ENC
Usage: hammer host policies-enc [OPTIONS] Options: --fields LIST Show specified fields or predefined field sets only. (See below) --id VALUE The identifier of the host --location VALUE Set the current location context for the request --location-id NUMBER Set the current location context for the request --location-title VALUE Set the current location context for the request --name VALUE Host name --organization VALUE Set the current organization context for the request --organization-id NUMBER Set the current organization context for the request --organization-title VALUE Set the current organization context for the request -h, --help Print help Predefined field sets: ------------------------|-----|-------- FIELDS | ALL | DEFAULT ------------------------|-----|-------- Id | x | x Profile id | x | x Content path | x | x Content download path | x | x Tailoring path | x | x Tailoring download path | x | x Day of month | x | x Hour | x | x Minute | x | x Month | x | x Week | x | x ------------------------|-----|-------- Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.18. Hammer 主机重新引导
重启主机
Usage: hammer host reboot [OPTIONS] Options: --id VALUE --location VALUE Set the current location context for the request --location-id NUMBER Set the current location context for the request --location-title VALUE Set the current location context for the request --name VALUE Host name --organization VALUE Set the current organization context for the request --organization-id NUMBER Set the current organization context for the request --organization-title VALUE Set the current organization context for the request -h, --help Print help Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.19. hammer 主机 rebuild-config
为主机重建与编配相关的配置
Usage: hammer host rebuild-config [OPTIONS] Options: --id VALUE --location VALUE Set the current location context for the request --location-id NUMBER Set the current location context for the request --location-title VALUE Set the current location context for the request --name VALUE Host name --only LIST Limit rebuild steps, valid steps are DHCP, DNS, TFTP, Content_Host_Status, Refresh_Content_Host_Status --organization VALUE Set the current organization context for the request --organization-id NUMBER Set the current organization context for the request --organization-title VALUE Set the current organization context for the request -h, --help Print help Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.20. Hammer 主机报告
列出所有报告
Usage: hammer host reports [OPTIONS] Options: --fields LIST Show specified fields or predefined field sets only. (See below) --id VALUE Host id --location VALUE Set the current location context for the request --location-id NUMBER Set the current location context for the request --location-title VALUE Set the current location context for the request --name VALUE Host name --order VALUE Sort and order by a searchable field, e.g. '<field> DESC' --organization VALUE Set the current organization context for the request --organization-id NUMBER Set the current organization context for the request --organization-title VALUE Set the current organization context for the request --page NUMBER Page number, starting at 1 --per-page VALUE Number of results per page to return, 'all' to return all results --search VALUE Filter results -h, --help Print help Predefined field sets: -----------------|-----|---------|----- FIELDS | ALL | DEFAULT | THIN -----------------|-----|---------|----- Id | x | x | x Host | x | x | Last report | x | x | Origin | x | x | Applied | x | x | Restarted | x | x | Failed | x | x | Restart failures | x | x | Skipped | x | x | Pending | x | x | -----------------|-----|---------|----- Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string Search / Order fields: applied integer eventful Values: true, false failed integer failed_restarts integer host string host_id integer host_owner_id integer hostgroup string hostgroup_fullname string hostgroup_title string last_report datetime location string log text organization string origin string pending integer reported datetime resource text restarted integer skipped integer
3.35.21. hammer 主机重置
重置主机
Usage: hammer host reset [OPTIONS] Options: --id VALUE --location VALUE Set the current location context for the request --location-id NUMBER Set the current location context for the request --location-title VALUE Set the current location context for the request --name VALUE Host name --organization VALUE Set the current organization context for the request --organization-id NUMBER Set the current organization context for the request --organization-title VALUE Set the current organization context for the request -h, --help Print help Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.22. hammer host set-parameter
为主机创建或附加参数
Usage: hammer host set-parameter [OPTIONS] Options: --hidden-value BOOLEAN Should the value be hidden --host VALUE Host name --host-id NUMBER --name VALUE Parameter name --parameter-type ENUM Type of the parameter Possible value(s): 'string', 'boolean', 'integer', 'real', 'array', 'hash', 'yaml', 'json' Default: "string" --value VALUE Parameter value -h, --help Print help Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.23. hammer 主机启动
打开主机电源
Usage: hammer host start [OPTIONS] Options: --id VALUE --location VALUE Set the current location context for the request --location-id NUMBER Set the current location context for the request --location-title VALUE Set the current location context for the request --name VALUE Host name --organization VALUE Set the current organization context for the request --organization-id NUMBER Set the current organization context for the request --organization-title VALUE Set the current organization context for the request -h, --help Print help Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.24. hammer 主机状态
获取主机状态
Usage: hammer host status [OPTIONS] Options: --id VALUE --location VALUE Set the current location context for the request --location-id NUMBER Set the current location context for the request --location-title VALUE Set the current location context for the request --name VALUE Host name --organization VALUE Set the current organization context for the request --organization-id NUMBER Set the current organization context for the request --organization-title VALUE Set the current organization context for the request --type ENUM Status type, can be one of Global Configuration Build Possible value(s): 'HostStatus::Global', 'configuration', 'build' -h, --help Print help Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.25. hammer 主机停止
关闭主机
Usage: hammer host stop [OPTIONS] Options: --force Force turning off a host --id VALUE --location VALUE Set the current location context for the request --location-id NUMBER Set the current location context for the request --location-title VALUE Set the current location context for the request --name VALUE Host name --organization VALUE Set the current organization context for the request --organization-id NUMBER Set the current organization context for the request --organization-title VALUE Set the current organization context for the request -h, --help Print help Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.26. hammer 主机订阅
管理主机上的订阅信息
Usage: hammer host subscription [OPTIONS] SUBCOMMAND [ARG] ... Parameters: SUBCOMMAND Subcommand [ARG] ... Subcommand arguments Subcommands: attach Add a subscription to a host auto-attach Trigger an auto-attach of subscriptions content-override Override product content defaults enabled-repositories List enabled repositories on a host product-content List associated products register Register a host with subscription and information remove Remove a subscription from a host unregister Unregister the host as a subscription consumer Options: -h, --help Print help
3.35.26.1. hammer 主机订阅附加
为主机添加订阅
Usage: hammer host subscription attach [OPTIONS] Options: --host VALUE Host name --host-id NUMBER Id of the host --quantity VALUE Quantity of this subscriptions to add. Defaults to 1 --subscription-id VALUE ID of subscription -h, --help Print help Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.26.2. hammer 主机订阅自动附加
触发订阅的自动附加
Usage: hammer host subscription auto-attach [OPTIONS] Options: --host VALUE Host name --host-id NUMBER Id of the host -h, --help Print help Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.26.3. hammer 主机订阅内容-override
覆盖产品内容默认值
Usage: hammer host subscription content-override [OPTIONS] Options: --content-label VALUE Label of the content --host VALUE Host name --host-id VALUE Id of the content host --override-name VALUE 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 Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.26.4. hammer 主机订阅已启用-repositories
列出主机上启用的存储库
Usage: hammer host subscription enabled-repositories [OPTIONS] Options: --host HOST_NAME Host name --host-id HOST_ID Id of the host -h, --help Print help
请注意,您必须使用此命令及选项来识别主机。
3.35.26.5. hammer 主机订阅 product-content
列出关联的产品
Usage: hammer host subscription product-content [OPTIONS] Options: --content-access-mode-all BOOLEAN Get all content available, not just that provided by subscriptions --content-access-mode-env BOOLEAN Limit content to just that available in the host's content view version --fields LIST Show specified fields or predefined field sets only. (See below) --host VALUE Host name --host-id VALUE Id of the host -h, --help Print help Predefined field sets: -----------------|-----|---------|----- FIELDS | ALL | DEFAULT | THIN -----------------|-----|---------|----- Id | x | x | x Name | x | x | x Type | x | x | Url | x | x | Gpg key | x | x | Label | x | x | Default enabled? | x | x | Override | x | x | -----------------|-----|---------|----- Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.26.6. hammer 主机订阅注册
使用订阅和信息注册主机
Usage: hammer host subscription register [OPTIONS] Options: --content-view VALUE Content view name to search by --content-view-id NUMBER Content View ID --environment VALUE Lifecycle environment name to search by (--environment is deprecated: Use --lifecycle-environment instead) --environment-id NUMBER (--environment-id is deprecated: Use --lifecycle-environment-id instead) --hypervisor-guest-uuids LIST UUIDs of the virtual guests from the host's hypervisor --lifecycle-environment VALUE Lifecycle environment name to search by --lifecycle-environment-id NUMBER Lifecycle Environment ID --name VALUE Name of the host --organization VALUE Organization name to search by --organization-id VALUE Organization ID to search by --organization-label VALUE Organization label to search by --release-version VALUE Release version of the content host --service-level VALUE A service level for auto-healing process, e.g. SELF-SUPPORT --uuid VALUE UUID to use for registered host, random uuid is generated if not provided -h, --help Print help Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.26.7. hammer 主机订阅删除
从主机中删除订阅
Usage: hammer host subscription remove [OPTIONS] Options: --host VALUE Host name --host-id NUMBER Id of the host --quantity VALUE Remove the first instance of a subscription with matching id and quantity --subscription-id VALUE ID of subscription -h, --help Print help Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.26.8. hammer 主机订阅未注册
取消主机作为订阅消费者注册
Usage: hammer host subscription unregister [OPTIONS] Options: --host VALUE Host name --host-id NUMBER Id of the host -h, --help Print help Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.27. Hammer 主机跟踪
列出主机上的 trace
Usage: hammer host traces [OPTIONS] SUBCOMMAND [ARG] ... Parameters: SUBCOMMAND Subcommand [ARG] ... Subcommand arguments Subcommands: list List services that need restarting on the host resolve Resolve traces Options: -h, --help Print help
3.35.27.1. Hammer 主机跟踪列表
列出主机上需要重启的服务
Usage: hammer host traces list [OPTIONS] Options: --fields LIST Show specified fields or predefined field sets only. (See below) --host VALUE Host name --host-id NUMBER ID of the host -h, --help Print help Predefined field sets: ------------|-----|-------- FIELDS | ALL | DEFAULT ------------|-----|-------- Trace id | x | x Application | x | x Helper | x | x Type | x | x ------------|-----|-------- Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.27.2. Hammer 主机跟踪解析
解决 trace
Usage: hammer host traces resolve [OPTIONS] Options: --async Do not wait for the task --host VALUE Host name --host-id NUMBER ID of the host --trace-ids LIST Array of Trace IDs -h, --help Print help Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
3.35.28. hammer 主机更新
更新主机
Usage: hammer host update [OPTIONS] Options: --ansible-role-ids LIST IDs of associated ansible roles --ansible-roles LIST --architecture VALUE Architecture name --architecture-id NUMBER Required if host is managed and value is not inherited from host group --ask-root-password BOOLEAN --autoheal BOOLEAN Sets whether the Host will autoheal subscriptions upon checkin --build BOOLEAN --comment VALUE Additional information about this host --compute-attributes KEY_VALUE_LIST Compute resource attributes --compute-profile VALUE Compute profile name --compute-profile-id NUMBER --compute-resource VALUE Compute resource name --compute-resource-id NUMBER Nil means host is bare metal --content-source VALUE Content Source name --content-source-id NUMBER --content-view VALUE Name to search by --content-view-id NUMBER --domain VALUE Domain name --domain-id NUMBER Required if host is managed and value is not inherited from host group --enabled BOOLEAN Include this host within Satellite reporting --hostgroup VALUE Hostgroup name --hostgroup-id NUMBER --hostgroup-title VALUE Hostgroup title --hypervisor-guest-uuids LIST List of hypervisor guest uuids --id VALUE --image VALUE Name to search by --image-id NUMBER --installed-products-attributes SCHEMA List of products installed on the host --interface KEY_VALUE_LIST Interface parameters Can be specified multiple times. --ip VALUE Not required if using a subnet with DHCP Capsule --kickstart-repository VALUE Kickstart repository name --kickstart-repository-id NUMBER Repository Id associated with the kickstart repo used for provisioning --lifecycle-environment VALUE Name to search by --lifecycle-environment-id NUMBER --location VALUE Set the current location context for the request --location-id NUMBER Set the current location context for the request --location-title VALUE Set the current location context for the request --mac VALUE Required for managed host that is bare metal, not required if it's a virtual machine --managed BOOLEAN True/False flag whether a host is managed or unmanaged. Note: this value also determines whether several parameters are required or not --medium VALUE Medium name --medium-id VALUE Required if not imaged based provisioning and host is managed and value is not inherited from host group --model VALUE Model name --model-id NUMBER --name VALUE --new-location VALUE Use to update associated location --new-location-id NUMBER Use to update associated location --new-location-title VALUE Use to update associated location --new-name VALUE --new-organization VALUE Use to update associated organization --new-organization-id NUMBER Use to update associated organization --new-organization-title VALUE Use to update associated organization --openscap-proxy-id NUMBER ID of OpenSCAP Capsule --operatingsystem VALUE Operating system title --operatingsystem-id NUMBER Required if host is managed and value is not inherited from host group --organization VALUE Set the current organization context for the request --organization-id NUMBER Set the current organization context for the request --organization-title VALUE Set the current organization context for the request --overwrite BOOLEAN --owner VALUE Login of the owner --owner-id VALUE ID of the owner --owner-type ENUM Host's owner type Possible value(s): 'User', 'Usergroup' --parameters KEY_VALUE_LIST Replaces with new host parameters --partition-table VALUE Partition table name --partition-table-id NUMBER Required if host is managed and custom partition has not been defined --product VALUE Name to search by --product-id NUMBER Product id as listed from a host's installed products, this is not the same product id as the products api returns --progress-report-id VALUE UUID to track orchestration tasks status, GET /api/orchestration/:UUID/tasks --provision-method ENUM The method used to provision the host. Possible value(s): 'build', 'image', 'bootdisk' --puppet-ca-proxy-id NUMBER Puppet CA Capsule ID --puppet-proxy-id NUMBER Puppet Capsule ID --purpose-addons LIST Sets the system add-ons --purpose-role VALUE Sets the system purpose usage --purpose-usage VALUE Sets the system purpose usage --pxe-loader ENUM DHCP filename option (Grub2/PXELinux by default) Possible value(s): 'None', 'PXELinux BIOS', 'PXELinux UEFI', 'Grub UEFI', 'Grub2 BIOS', 'Grub2 ELF', 'Grub2 UEFI', 'Grub2 UEFI SecureBoot', 'Grub2 UEFI HTTP', 'Grub2 UEFI HTTPS', 'Grub2 UEFI HTTPS SecureBoot', 'iPXE Embedded', 'iPXE UEFI HTTP', 'iPXE Chain BIOS', 'iPXE Chain UEFI' --realm VALUE Name to search by --realm-id NUMBER --release-version VALUE Release version for this Host to use (7Server, 7.1, etc) --root-password VALUE Required if host is managed and value is not inherited from host group or default password in settings --service-level VALUE Service level to be used for autoheal --subnet VALUE Subnet name --subnet-id NUMBER Required if host is managed and value is not inherited from host group --typed-parameters SCHEMA Replaces with new host parameters (with type support) --volume KEY_VALUE_LIST Volume parameters Can be specified multiple times. -h, --help Print help Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string Following parameters accept format defined by its schema (bold are required; <> contains acceptable type; [] contains acceptable value): --typed-parameters "name=<string>\,value=<string>\,parameter_type=[string|boolean|integer|real|array|hash|yaml|json]\,hidden_value=[true|false|1|0], ... " --installed-products-attributes "product_id=<string>\,product_name=<string>\,arch=<string>\,version=<string>, ... " Available keys for --interface: mac ip type Possible values: interface, bmc, bond, bridge name subnet_id domain_id identifier managed true/false primary true/false, each managed hosts needs to have one primary interface. provision true/false virtual true/false 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 Provider specific options: NOTE: Bold attributes are required. EC2: --volume: --interface: --compute-attributes: availability_zone flavor_id groups security_group_ids managed_ip GCE: --volume: size_gb Volume size in GB, integer value --interface: --compute-attributes: machine_type network associate_external_ip Libvirt: --volume: pool_name One of available storage pools capacity String value, e.g. 10G allocation Initial allocation, e.g. 0G format_type Possible values: raw, qcow2 --interface: compute_type Possible values: bridge, network compute_bridge Name of interface according to type compute_model Possible values: virtio, rtl8139, ne2k_pci, pcnet, e1000 compute_network Libvirt instance network, e.g. default --compute-attributes: cpus Number of CPUs memory String, amount of memory, value in bytes cpu_mode Possible values: default, host-model, host-passthrough start Boolean (expressed as 0 or 1), whether to start the machine or not OpenStack: --volume: --interface: --compute-attributes: availability_zone boot_from_volume flavor_ref image_ref tenant_id security_groups network oVirt: --volume: size_gb Volume size in GB, integer value storage_domain ID or name of storage domain bootable Boolean, set 1 for bootable, only one volume can be bootable preallocate Boolean, set 1 to preallocate wipe_after_delete Boolean, set 1 to wipe disk after delete interface Disk interface name, must be ide, virto or virto_scsi --interface: compute_name Compute name, e.g. eth0 compute_network Select one of available networks for a cluster, must be an ID or a name compute_interface Interface type compute_vnic_profile Vnic Profile --compute-attributes: cluster ID or name of cluster to use template Hardware profile to use cores Integer value, number of cores sockets Integer value, number of sockets memory Amount of memory, integer value in bytes ha Boolean, set 1 to high availability display_type Possible values: VNC, SPICE keyboard_layout Possible values: ar, de-ch, es, fo, fr-ca, hu, ja, mk, no, pt-br, sv, da, en-gb, et, fr, fr-ch, is, lt, nl, pl, ru, th, de, en-us, fi, fr-be, hr, it, lv, nl-be, pt, sl, tr. Not usable if display type is SPICE. start Boolean, set 1 to start the vm Rackspace: --volume: --interface: --compute-attributes: flavor_id VMware: --volume: name storage_pod Storage Pod ID from VMware datastore Datastore ID from VMware mode persistent/independent_persistent/independent_nonpersistent size_gb Integer number, volume size in GB thin true/false eager_zero true/false controller_key Associated SCSI controller key --interface: compute_type Type of the network adapter, for example one of: VirtualVmxnet3 VirtualE1000 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 or Network Name from VMware --compute-attributes: cluster Cluster ID from VMware corespersocket Number of cores per socket (applicable to hardware versions < 10 only) cpus CPU count memory_mb Integer number, amount of memory in MB path Path to folder resource_pool Resource Pool ID from VMware firmware automatic/bios/efi guest_id Guest OS ID form VMware hardware_version Hardware version ID from VMware memoryHotAddEnabled Must be a 1 or 0, lets you add memory resources while the machine is on cpuHotAddEnabled Must be a 1 or 0, lets you add CPU resources while the machine is on add_cdrom Must be a 1 or 0, Add a CD-ROM drive to the virtual machine annotation Annotation Notes scsi_controllers List with SCSI controllers definitions type - ID of the controller from VMware key - Key of the controller (e.g. 1000) start Must be a 1 or 0, whether to start the machine or not AzureRM: --volume: disk_size_gb Volume Size in GB (integer value) data_disk_caching Data Disk Caching (None, ReadOnly, ReadWrite) --interface: compute_network Select one of available Azure Subnets, must be an ID compute_public_ip Public IP (None, Static, Dynamic) compute_private_ip Static Private IP (expressed as true or false) --compute-attributes: resource_group Existing Azure Resource Group of user vm_size VM Size, eg. Standard_A0 etc. username The Admin username password The Admin password platform OS type eg. Linux ssh_key_data SSH key for passwordless authentication os_disk_caching OS disk caching premium_os_disk Premium OS Disk, Boolean as 0 or 1 script_command Custom Script Command script_uris Comma seperated file URIs