2.88. hammer virt-who-config
管理 Virt Who 配置
Usage: hammer virt-who-config [OPTIONS] SUBCOMMAND [ARG] ... Parameters: SUBCOMMAND Subcommand [ARG] ... Subcommand arguments Subcommands: create Create a virt-who configuration delete, destroy Delete a virt-who configuration deploy Download and execute script for the specified virt-who configuration fetch Renders a deploy script for the specified virt-who configuration info, show Show a virt-who configuration list, index List of virt-who configurations update Update a virt-who configuration Options: -h, --help Print help
2.88.1. hammer virt-who-config create
创建 virt-who 配置
Usage: hammer virt-who-config create [OPTIONS] Options: --blacklist BLACKLIST Hypervisor blacklist, applicable only when filtering mode is set to 2. Wildcards and regular expressions are supported, multiple records must be separated by comma. --debug DEBUG Enable debugging output One of true/false, yes/no, 1/0. --exclude-host-parents EXCLUDE_HOST_PARENTS Applicable only for esx provider type. Hosts which parent (usually ComputeResource) name is specified in comma-separated list in this option will NOT be reported. Wildcards and regular expressions are supported, multiple records must be separated by comma. Put the value into the double-quotes if it contains special characters like comma. All new line characters will be removed in resulting configuration file, white spaces are removed from beginning and end. --filter-host-parents FILTER_HOST_PARENTS Applicable only for esx provider type. Only hosts which parent (usually ComputeResource) name is specified in comma-separated list in this option will be reported. Wildcards and regular expressions are supported, multiple records must be separated by comma. Put the value into the double-quotes if it contains special characters like comma. All new line characters will be removed in resulting configuration file, white spaces are removed from beginning and end. --filtering-mode MODE Hypervisor filtering mode Possible value(s): 'none', 'whitelist', 'blacklist' --http-proxy HTTP_PROXY_NAME Name to search by --http-proxy-id HTTP_PROXY_ID HTTP Proxy that should be used for communication between the server on which virt-who is running and the hypervisors and virtualization managers. --hypervisor-id HYPERVISOR_ID Specifies how the hypervisor will be identified. Possible value(s): 'hostname', 'uuid', 'hwuuid' --hypervisor-password HYPERVISOR_PASSWORD Hypervisor password, required for all hypervisor types except for libvirt --hypervisor-server HYPERVISOR_SERVER Fully qualified host name or IP address of the hypervisor --hypervisor-type HYPERVISOR_TYPE Hypervisor type Possible value(s): 'esx', 'hyperv', 'libvirt', 'kubevirt' --hypervisor-username HYPERVISOR_USERNAME Account name by which virt-who is to connect to the hypervisor. --interval INTERVAL Configuration interval in minutes Possible value(s): '60', '120', '240', '480', '720', '1440', '2880', '4320' --location LOCATION_NAME Set the current location context for the request --location-id LOCATION_ID Set the current location context for the request --location-title LOCATION_TITLE Set the current location context for the request --name NAME Configuration name --no-proxy NO_PROXY Ignore Proxy. A comma-separated list of hostnames or domains or ip addresses to ignore Capsule settings for. Optionally this may be set to * to bypass proxy settings for all hostnames domains or ip addresses. --organization ORGANIZATION_NAME Set the current organization context for the request --organization-id ORGANIZATION_ID Set the current organization context for the request --organization-title ORGANIZATION_TITLE Set the current organization context for the request --satellite-url SATELLITE_URL Satellite server FQDN --whitelist WHITELIST Hypervisor whitelist, applicable only when filtering mode is set to 1. Wildcards and regular expressions are supported, multiple records must be separated by comma. -h, --help Print help
2.88.2. hammer virt-who-config delete
删除 virt-who 配置
Usage: hammer virt-who-config <delete|destroy> [OPTIONS] Options: --id ID Configuration numeric identifier --location LOCATION_NAME Set the current location context for the request --location-id LOCATION_ID Set the current location context for the request --location-title LOCATION_TITLE Set the current location context for the request --name NAME Name to search by --organization ORGANIZATION_NAME Set the current organization context for the request --organization-id ORGANIZATION_ID Set the current organization context for the request --organization-title ORGANIZATION_TITLE Set the current organization context for the request -h, --help Print help
2.88.3. hammer virt-who-config deploy
为指定的 virt-who 配置下载并执行脚本
Usage: hammer virt-who-config deploy [OPTIONS] Options: --id ID --location LOCATION_NAME Set the current location context for the request --location-id LOCATION_ID Set the current location context for the request --location-title LOCATION_TITLE Set the current location context for the request --name NAME Name to search by --organization ORGANIZATION_NAME Set the current organization context for the request --organization-id ORGANIZATION_ID Set the current organization context for the request --organization-title ORGANIZATION_TITLE Set the current organization context for the request -h, --help Print help
2.88.4. hammer virt-who-config fetch
为指定的 virt-who 配置呈现部署脚本
Usage: hammer virt-who-config fetch [OPTIONS] Options: --id ID --location LOCATION_NAME Set the current location context for the request --location-id LOCATION_ID Set the current location context for the request --location-title LOCATION_TITLE Set the current location context for the request --name NAME Name to search by --organization ORGANIZATION_NAME Set the current organization context for the request --organization-id ORGANIZATION_ID Set the current organization context for the request --organization-title ORGANIZATION_TITLE Set the current organization context for the request -h, --help Print help -o, --output FILE File where the script will be written
2.88.5. hammer virt-who-config info
显示 virt-who 配置
Usage: hammer virt-who-config <info|show> [OPTIONS] Options: --fields FIELDS Show specified fields or predefined field sets only. (See below) Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for complex parameters --id ID --location LOCATION_NAME Set the current location context for the request --location-id LOCATION_ID Set the current location context for the request --location-title LOCATION_TITLE Set the current location context for the request --name NAME Name to search by --organization ORGANIZATION_NAME Set the current organization context for the request --organization-id ORGANIZATION_ID Set the current organization context for the request --organization-title ORGANIZATION_TITLE Set the current organization context for the request -h, --help Print help Predefined field sets: ----------------------------------------|-----|-------- FIELDS | ALL | DEFAULT ----------------------------------------|-----|-------- General information/id | x | x General information/name | x | x General information/hypervisor type | x | x General information/hypervisor server | x | x General information/hypervisor username | x | x General information/configuration file | x | x General information/status | x | x Schedule/interval | x | x Schedule/last report at | x | x Connection/satellite server | x | x Connection/hypervisor id | x | x Connection/filtering | x | x Connection/excluded hosts | x | x Connection/filtered hosts | x | x Connection/filter host parents | x | x Connection/exclude host parents | x | x Connection/debug mode | x | x Connection/ignore proxy | x | x Http proxy/http proxy id | x | x Http proxy/http proxy name | x | x Http proxy/http proxy url | x | x Locations/ | x | x Organizations/ | x | x ----------------------------------------|-----|--------
2.88.6. hammer virt-who-config list
virt-who 配置列表
Usage: hammer virt-who-config <list|index> [OPTIONS] Options: --fields FIELDS Show specified fields or predefined field sets only. (See below) Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for complex parameters --location LOCATION_NAME Set the current location context for the request --location-id LOCATION_ID Set the current location context for the request --location-title LOCATION_TITLE Set the current location context for the request --order ORDER Sort field and order, eg. ‘id DESC’ --organization ORGANIZATION_NAME Set the current organization context for the request --organization-id ORGANIZATION_ID Set the current organization context for the request --organization-title ORGANIZATION_TITLE Set the current organization context for the request --page PAGE Page number, starting at 1 --per-page PER_PAGE Number of results per page to return, 'all' to return all results --search SEARCH Filter results -h, --help Print help Predefined field sets: ---------------|-----|---------|----- FIELDS | ALL | DEFAULT | THIN ---------------|-----|---------|----- Id | x | x | x Name | x | x | x Interval | x | x | Status | x | x | Last report at | x | x | ---------------|-----|---------|-----
2.88.7. hammer virt-who-config update
更新 virt-who 配置
Usage: hammer virt-who-config update [OPTIONS] Options: --blacklist BLACKLIST Hypervisor blacklist, applicable only when filtering mode is set to 2. Wildcards and regular expressions are supported, multiple records must be separated by comma. --debug DEBUG Enable debugging output One of true/false, yes/no, 1/0. --exclude-host-parents EXCLUDE_HOST_PARENTS Applicable only for esx provider type. Hosts which parent (usually ComputeResource) name is specified in comma-separated list in this option will NOT be reported. Wildcards and regular expressions are supported, multiple records must be separated by comma. Put the value into the double-quotes if it contains special characters like comma. All new line characters will be removed in resulting configuration file, white spaces are removed from beginning and end. --filter-host-parents FILTER_HOST_PARENTS Applicable only for esx provider type. Only hosts which parent (usually ComputeResource) name is specified in comma-separated list in this option will be reported. Wildcards and regular expressions are supported, multiple records must be separated by comma. Put the value into the double-quotes if it contains special characters like comma. All new line characters will be removed in resulting configuration file, white spaces are removed from beginning and end. --filtering-mode MODE Hypervisor filtering mode Possible value(s): 'none', 'whitelist', 'blacklist' --http-proxy HTTP_PROXY_NAME Name to search by --http-proxy-id HTTP_PROXY_ID HTTP Proxy that should be used for communication between the server on which virt-who is running and the hypervisors and virtualization managers. --hypervisor-id HYPERVISOR_ID Specifies how the hypervisor will be identified. Possible value(s): 'hostname', 'uuid', 'hwuuid' --hypervisor-password HYPERVISOR_PASSWORD Hypervisor password, required for all hypervisor types except for libvirt --hypervisor-server HYPERVISOR_SERVER Fully qualified host name or IP address of the hypervisor --hypervisor-type HYPERVISOR_TYPE Hypervisor type Possible value(s): 'esx', 'hyperv', 'libvirt', 'kubevirt' --hypervisor-username HYPERVISOR_USERNAME Account name by which virt-who is to connect to the hypervisor. --id ID Configuration numeric identifier --interval INTERVAL Configuration interval in minutes Possible value(s): '60', '120', '240', '480', '720', '1440', '2880', '4320' --location LOCATION_NAME Set the current location context for the request --location-id LOCATION_ID Set the current location context for the request --location-title LOCATION_TITLE Set the current location context for the request --name NAME Name to search by --new-name NEW_NAME Configuration name --no-proxy NO_PROXY Ignore Proxy. A comma-separated list of hostnames or domains or ip addresses to ignore Capsule settings for. Optionally this may be set to * to bypass proxy settings for all hostnames domains or ip addresses. --organization ORGANIZATION_NAME Set the current organization context for the request --organization-id ORGANIZATION_ID Set the current organization context for the request --organization-title ORGANIZATION_TITLE Set the current organization context for the request --satellite-url SATELLITE_URL Satellite server FQDN --whitelist WHITELIST Hypervisor whitelist, applicable only when filtering mode is set to 1. Wildcards and regular expressions are supported, multiple records must be separated by comma. -h, --help Print help