The watcher client is the command-line interface (CLI) for the Infrastructure Optimization service (watcher) API and its extensions.
This chapter documents watcher version 1.0.0
.
For help on a specific watcher command, enter:
$ watcher help COMMAND
usage: watcher [--version] [-v | -q] [--log-file LOG_FILE] [-h] [--debug]
[--no-auth] [--os-identity-api-version <identity-api-version>]
[--os-auth-url <auth-url>] [--os-region-name <region-name>]
[--os-username <auth-user-name>] [--os-user-id <auth-user-id>]
[--os-password <auth-password>]
[--os-user-domain-id <auth-user-domain-id>]
[--os-user-domain-name <auth-user-domain-name>]
[--os-tenant-name <auth-tenant-name>]
[--os-tenant-id <tenant-id>]
[--os-project-id <auth-project-id>]
[--os-project-name <auth-project-name>]
[--os-project-domain-id <auth-project-domain-id>]
[--os-project-domain-name <auth-project-domain-name>]
[--os-auth-token <auth-token>]
[--os-watcher-api-version <os-watcher-api-version>]
[--os-endpoint-type OS_ENDPOINT_TYPE]
[--os-endpoint-override <endpoint-override>] [--insecure]
[--os-cacert <ca-certificate>] [--os-cert <certificate>]
[--os-key <key>] [--timeout <seconds>]
--version
-v, --verbose
-q, --quiet
--log-file LOG_FILE
-h, --help
--debug
--no-auth, -N
--os-identity-api-version <identity-api-version>
env[OS_IDENTITY_API_VERSION]
or 3.--os-auth-url <auth-url>, -A <auth-url>
env[OS_AUTH_URL]
.--os-region-name <region-name>, -R <region-name>
env[OS_REGION_NAME]
.--os-username <auth-user-name>, -U <auth-user-name>
env[OS_USERNAME]
.--os-user-id <auth-user-id>
env[OS_USER_ID]
.--os-password <auth-password>, -P <auth-password>
env[OS_PASSWORD]
.--os-user-domain-id <auth-user-domain-id>
env[OS_USER_DOMAIN_ID]
.--os-user-domain-name <auth-user-domain-name>
env[OS_USER_DOMAIN_NAME]
.--os-tenant-name <auth-tenant-name>, -T <auth-tenant-name>
env[OS_TENANT_NAME]
.--os-tenant-id <tenant-id>, -I <tenant-id>
env[OS_TENANT_ID]
.--os-project-id <auth-project-id>
env[OS_PROJECT_ID]
.--os-project-name <auth-project-name>
env[OS_PROJECT_NAME]
.--os-project-domain-id <auth-project-domain-id>
env[OS_PROJECT_DOMAIN_ID]
.--os-project-domain-name <auth-project-domain-name>
env[OS_PROJECT_DOMAIN_NAME]
.--os-auth-token <auth-token>
env[OS_AUTH_TOKEN]
.--os-watcher-api-version <os-watcher-api-version>
env[OS_WATCHER_API_VERSION]
.--os-endpoint-type OS_ENDPOINT_TYPE
env[OS_ENDPOINT_TYPE]
or "publicURL"--os-endpoint-override <endpoint-override>
usage: watcher action list [-h] [-f {csv,html,json,table,value,yaml}]
[-c COLUMN] [--max-width <integer>] [--print-empty]
[--noindent]
[--quote {all,minimal,none,nonnumeric}]
[--action-plan <action-plan>] [--audit <audit>]
[--detail] [--limit <limit>] [--sort-key <field>]
[--sort-dir <direction>]
List information on retrieved actions.
Optional arguments:
-h, --help
--action-plan <action-plan>
--audit <audit>
--detail
--limit <limit>
--sort-key <field>
--sort-dir <direction>
usage: watcher action show [-h] [-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>] [--print-empty]
[--noindent] [--prefix PREFIX]
<action>
Show detailed information about a given action.
Positional arguments:
<action>
Optional arguments:
-h, --help
usage: watcher actionplan create [-h] [-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--prefix PREFIX] -a <audit_template>
[-t <audit_type>]
Create new audit.
Optional arguments:
-h, --help
-a <audit_template>, --audit-template <audit_template>
-t <audit_type>, --audit_type <audit_type>
usage: watcher actionplan delete [-h] <action-plan> [<action-plan> ...]
Delete action plan command.
Positional arguments:
<action-plan>
Optional arguments:
-h, --help
usage: watcher actionplan list [-h] [-f {csv,html,json,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--quote {all,minimal,none,nonnumeric}]
[--audit <audit>] [--detail] [--limit <limit>]
[--sort-key <field>] [--sort-dir <direction>]
List information on retrieved action plans.
Optional arguments:
-h, --help
--audit <audit>
--detail
--limit <limit>
--sort-key <field>
--sort-dir <direction>
usage: watcher actionplan show [-h] [-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent] [--prefix PREFIX]
<action-plan>
Show detailed information about a given action plan.
Positional arguments:
<action-plan>
Optional arguments:
-h, --help
usage: watcher actionplan start [-h] [-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent] [--prefix PREFIX]
<action-plan>
Start action plan command.
Positional arguments:
<action-plan>
Optional arguments:
-h, --help
usage: watcher actionplan update [-h] [-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--prefix PREFIX]
<action-plan> <op> <path=value>
[<path=value> ...]
Update action plan command.
Positional arguments:
<action-plan>
<op>
<path=value>
Optional arguments:
-h, --help
usage: watcher audit create [-h] [-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent] [--prefix PREFIX]
[-t <audit_type>] [-p <name=value>]
[-i <interval>] [-g <goal>] [-s <strategy>]
[-a <audit_template>] [--auto-trigger]
Create new audit.
Optional arguments:
-h, --help
-t <audit_type>, --audit_type <audit_type>
-p <name=value>, --parameter <name=value>
-i <interval>, --interval <interval>
-g <goal>, --goal <goal>
-s <strategy>, --strategy <strategy>
-a <audit_template>, --audit-template <audit_template>
--auto-trigger
usage: watcher audit delete [-h] <audit> [<audit> ...]
Delete audit command.
Positional arguments:
<audit>
Optional arguments:
-h, --help
usage: watcher audit list [-h] [-f {csv,html,json,table,value,yaml}]
[-c COLUMN] [--max-width <integer>] [--print-empty]
[--noindent] [--quote {all,minimal,none,nonnumeric}]
[--detail] [--goal <goal>] [--strategy <strategy>]
[--limit <limit>] [--sort-key <field>]
[--sort-dir <direction>]
List information on retrieved audits.
Optional arguments:
-h, --help
--detail
--goal <goal>
--strategy <strategy>
--limit <limit>
--sort-key <field>
--sort-dir <direction>
usage: watcher audit show [-h] [-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>] [--print-empty]
[--noindent] [--prefix PREFIX]
<audit>
Show detailed information about a given audit.
Positional arguments:
<audit>
Optional arguments:
-h, --help
usage: watcher audit update [-h] [-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent] [--prefix PREFIX]
<audit> <op> <path=value> [<path=value> ...]
Update audit command.
Positional arguments:
<audit>
<op>
<path=value>
Optional arguments:
-h, --help
usage: watcher audittemplate create [-h]
[-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--prefix PREFIX] [-s <strategy>]
[-d <description>] [--scope <path>]
<name> <goal>
Create new audit template.
Positional arguments:
<name>
<goal>
Optional arguments:
-h, --help
-s <strategy>, --strategy <strategy>
-d <description>, --description <description>
--scope <path>
Part of the cluster on which an audit will be done. Can be provided either in yaml or json file. YAML example: ---- host_aggregates: - id: 1 - id: 2 - id: 3 - availability_zones: - name: AZ1 - name: AZ2 - exclude: - instances: - uuid: UUID1 - uuid: UUID2 - compute_nodes: - name: compute1
JSON example: [{'host_aggregates': [ {'id': 1}, {'id': 2}, {'id': 3}]}, {'availability_zones': [ {'name': 'AZ1'}, {'name': 'AZ2'}]}, {'exclude': [ {'instances': [ {'uuid': 'UUID1'}, {'uuid': 'UUID2'} ]}, {'compute_nodes': [ {'name': 'compute1'} ]} ]}]
usage: watcher audittemplate delete [-h]
<audit-template> [<audit-template> ...]
Delete audit template command.
Positional arguments:
<audit-template>
Optional arguments:
-h, --help
usage: watcher audittemplate list [-h] [-f {csv,html,json,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--quote {all,minimal,none,nonnumeric}]
[--detail] [--goal <goal>]
[--strategy <strategy>] [--limit <limit>]
[--sort-key <field>]
[--sort-dir <direction>]
List information on retrieved audit templates.
Optional arguments:
-h, --help
--detail
--goal <goal>
--strategy <strategy>
--limit <limit>
--sort-key <field>
--sort-dir <direction>
usage: watcher audittemplate show [-h] [-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--prefix PREFIX]
<audit-template>
Show detailed information about a given audit template.
Positional arguments:
<audit-template>
Optional arguments:
-h, --help
usage: watcher audittemplate update [-h]
[-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--prefix PREFIX]
<audit-template> <op> <path=value>
[<path=value> ...]
Update audit template command.
Positional arguments:
<audit-template>
<op>
<path=value>
Optional arguments:
-h, --help
usage: watcher goal list [-h] [-f {csv,html,json,table,value,yaml}]
[-c COLUMN] [--max-width <integer>] [--print-empty]
[--noindent] [--quote {all,minimal,none,nonnumeric}]
[--detail] [--limit <limit>] [--sort-key <field>]
[--sort-dir <direction>]
List information on retrieved goals.
Optional arguments:
-h, --help
--detail
--limit <limit>
--sort-key <field>
--sort-dir <direction>
usage: watcher goal show [-h] [-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>] [--print-empty]
[--noindent] [--prefix PREFIX]
<goal>
Show detailed information about a given goal.
Positional arguments:
<goal>
Optional arguments:
-h, --help
usage: watcher scoringengine list [-h] [-f {csv,html,json,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--quote {all,minimal,none,nonnumeric}]
[--detail] [--limit <limit>]
[--sort-key <field>]
[--sort-dir <direction>]
List information on retrieved scoring engines.
Optional arguments:
-h, --help
--detail
--limit <limit>
--sort-key <field>
--sort-dir <direction>
usage: watcher scoringengine show [-h] [-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--prefix PREFIX]
<scoring_engine>
Show detailed information about a given scoring engine.
Positional arguments:
<scoring_engine>
Optional arguments:
-h, --help
usage: watcher service list [-h] [-f {csv,html,json,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--quote {all,minimal,none,nonnumeric}] [--detail]
[--limit <limit>] [--sort-key <field>]
[--sort-dir <direction>]
List information on retrieved services.
Optional arguments:
-h, --help
--detail
--limit <limit>
--sort-key <field>
--sort-dir <direction>
usage: watcher service show [-h] [-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent] [--prefix PREFIX]
<service>
Show detailed information about a given service.
Positional arguments:
<service>
Optional arguments:
-h, --help
usage: watcher strategy list [-h] [-f {csv,html,json,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent]
[--quote {all,minimal,none,nonnumeric}]
[--goal <goal>] [--detail] [--limit <limit>]
[--sort-key <field>] [--sort-dir <direction>]
List information on retrieved strategies.
Optional arguments:
-h, --help
--goal <goal>
--detail
--limit <limit>
--sort-key <field>
--sort-dir <direction>
usage: watcher strategy show [-h] [-f {html,json,shell,table,value,yaml}]
[-c COLUMN] [--max-width <integer>]
[--print-empty] [--noindent] [--prefix PREFIX]
<strategy>
Show detailed information about a given strategy.
Positional arguments:
<strategy>
Optional arguments:
-h, --help
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.