The watcher client is the command-line interface (CLI) for the Infrastructure Optimization service API and its extensions.
This chapter documents watcher version 0.25.1
.
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>]
[--watcher-api-version <watcher-api-version>]
[--os-endpoint-type OS_ENDPOINT_TYPE] [--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>
--os-tenant-id
. Defaults to
env[OS_PROJECT_ID]
.--os-project-name <auth-project-name>
--os-tenant-name
. Defaults to
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]
.--watcher-api-version <watcher-api-version>
env[WATCHER_API_VERSION]
.--os-endpoint-type OS_ENDPOINT_TYPE
env[OS_ENDPOINT_TYPE]
or “publicURL”--insecure
--os-cacert <ca-certificate>
env[OS_CACERT]
.--os-cert <certificate>
env[OS_CERT]
.--os-key <key>
env[OS_KEY]
.--timeout <seconds>
usage: watcher action list [-h] [-f {csv,html,json,table,value,yaml}]
[-c COLUMN] [--max-width <integer>] [--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>] [--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>]
[--noindent] [--prefix PREFIX] -a
<audit_template> [-d <deadline>]
[-t <audit_type>]
Create new audit.
Optional arguments:
-h, --help
-a <audit_template>, --audit-template <audit_template>
-d <deadline>, --deadline <deadline>
-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>]
[--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>]
[--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>]
[--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>]
[--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>] [--noindent]
[--prefix PREFIX] [-d <deadline>]
[-t <audit_type>] [-p <name=value>]
[-i <interval>] [-g <goal>] [-s <strategy>]
[-r <host-aggregate>] [-a <audit_template>]
Create new audit.
Optional arguments:
-h, --help
-d <deadline>, --deadline <deadline>
-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>
-r <host-aggregate>, --host-aggregate <host-aggregate>
-a <audit_template>, --audit-template <audit_template>
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>] [--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>] [--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>] [--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>]
[--noindent] [--prefix PREFIX]
[-s <strategy>] [-d <description>]
[-e <key=value>] [-a <host-aggregate>]
<name> <goal>
Create new audit template.
Positional arguments:
<name>
<goal>
Optional arguments:
-h, --help
-s <strategy>, --strategy <strategy>
-d <description>, --description <description>
-e <key=value>, --extra <key=value>
-a <host-aggregate>, --host-aggregate <host-aggregate>
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>]
[--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>]
[--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>]
[--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>] [--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>] [--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>]
[--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>]
[--noindent] [--prefix PREFIX]
<scoring_engine>
Show detailed information about a given scoring engine.
Positional arguments:
<scoring_engine>
Optional arguments:
-h, --help
usage: watcher strategy list [-h] [-f {csv,html,json,table,value,yaml}]
[-c COLUMN] [--max-width <integer>] [--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>] [--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.