Chapter 19. compute


This chapter describes the commands under the compute command.

19.1. compute agent create

Usage:

openstack compute agent create [-h] [-f {json,shell,table,value,yaml}]

                                    [-c COLUMN] [--max-width <integer>]
                                    [--fit-width] [--print-empty]
                                    [--noindent] [--prefix PREFIX]
                                    <os> <architecture> <version> <url>
                                    <md5hash> <hypervisor>
Copy to Clipboard Toggle word wrap

Create compute agent

Expand
Table 19.1. Positional Arguments
ValueSummary

<os>

Type of os

<architecture>

Type of architecture

<version>

Version

<url>

Url

<md5hash>

Md5 hash

<hypervisor>

Type of hypervisor

Expand
Table 19.2. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

Expand
Table 19.3. Output Formatters
ValueSummary

-f {json,shell,table,value,yaml}, --format {json,shell,table,value,yaml}

the output format, defaults to table

-c COLUMN, --column COLUMN

specify the column(s) to include, can be repeated

Expand
Table 19.4. Table Formatter
ValueSummary

--max-width <integer>

Maximum display width, <1 to disable. You can also use the CLIFF_MAX_TERM_WIDTH environment variable, but the parameter takes precedence.

--fit-width

Fit the table to the display width. implied if --max- width greater than 0. Set the environment variable CLIFF_FIT_WIDTH=1 to always enable

--print-empty

Print empty table if there is no data to show.

Expand
Table 19.5. JSON Formatter
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 19.6. shell formatter
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

19.2. compute agent delete

Usage:

openstack compute agent delete [-h] <id> [<id> ...]
Copy to Clipboard Toggle word wrap

Delete compute agent(s)

Expand
Table 19.7. Positional Arguments
ValueSummary

<id>

Id of agent(s) to delete

Expand
Table 19.8. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

19.3. compute agent list

Usage:

openstack compute agent list [-h] [-f {csv,json,table,value,yaml}]

                                  [-c COLUMN] [--max-width <integer>]
                                  [--fit-width] [--print-empty] [--noindent]
                                  [--quote {all,minimal,none,nonnumeric}]
                                  [--sort-column SORT_COLUMN]
                                  [--hypervisor <hypervisor>]
Copy to Clipboard Toggle word wrap

List compute agents

Expand
Table 19.9. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

--hypervisor <hypervisor>

Type of hypervisor

Expand
Table 19.10. Output Formatters
ValueSummary

-f {csv,json,table,value,yaml}, --format {csv,json,table,value,yaml}

the output format, defaults to table

-c COLUMN, --column COLUMN

specify the column(s) to include, can be repeated

--sort-column SORT_COLUMN

specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), can be repeated

Expand
Table 19.11. Table Formatter
ValueSummary

--max-width <integer>

Maximum display width, <1 to disable. You can also use the CLIFF_MAX_TERM_WIDTH environment variable, but the parameter takes precedence.

--fit-width

Fit the table to the display width. implied if --max- width greater than 0. Set the environment variable CLIFF_FIT_WIDTH=1 to always enable

--print-empty

Print empty table if there is no data to show.

Expand
Table 19.12. JSON Formatter
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 19.13. CSV Formatter
ValueSummary

--quote {all,minimal,none,nonnumeric}

when to include quotes, defaults to nonnumeric

19.4. compute agent set

Usage:

openstack compute agent set [-h] [--agent-version <version>]

                                 [--url <url>] [--md5hash <md5hash>]
                                 <id>
Copy to Clipboard Toggle word wrap

Set compute agent properties

Expand
Table 19.14. Positional Arguments
ValueSummary

<id>

Id of the agent

Expand
Table 19.15. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

--agent-version <version>

Version of the agent

--url <url>

Url of the agent

--md5hash <md5hash>

Md5 hash of the agent

19.5. compute service delete

Usage:

openstack compute service delete [-h] <service> [<service> ...]
Copy to Clipboard Toggle word wrap

Delete compute service(s)

Expand
Table 19.16. Positional Arguments
ValueSummary

<service>

Compute service(s) to delete (id only)

Expand
Table 19.17. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

19.6. compute service list

Usage:

openstack compute service list [-h] [-f {csv,json,table,value,yaml}]

                                    [-c COLUMN] [--max-width <integer>]
                                    [--fit-width] [--print-empty]
                                    [--noindent]
                                    [--quote {all,minimal,none,nonnumeric}]
                                    [--sort-column SORT_COLUMN]
                                    [--host <host>] [--service <service>]
                                    [--long]
Copy to Clipboard Toggle word wrap

List compute services

Expand
Table 19.18. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

--host <host>

List services on specified host (name only)

--service <service>

List only specified service (name only)

--long

List additional fields in output

Expand
Table 19.19. Output Formatters
ValueSummary

-f {csv,json,table,value,yaml}, --format {csv,json,table,value,yaml}

the output format, defaults to table

-c COLUMN, --column COLUMN

specify the column(s) to include, can be repeated

--sort-column SORT_COLUMN

specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), can be repeated

Expand
Table 19.20. Table Formatter
ValueSummary

--max-width <integer>

Maximum display width, <1 to disable. You can also use the CLIFF_MAX_TERM_WIDTH environment variable, but the parameter takes precedence.

--fit-width

Fit the table to the display width. implied if --max- width greater than 0. Set the environment variable CLIFF_FIT_WIDTH=1 to always enable

--print-empty

Print empty table if there is no data to show.

Expand
Table 19.21. JSON Formatter
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 19.22. CSV Formatter
ValueSummary

--quote {all,minimal,none,nonnumeric}

when to include quotes, defaults to nonnumeric

19.7. compute service set

Usage:

openstack compute service set [-h] [--enable | --disable]

                                   [--disable-reason <reason>]
                                   [--up | --down]
                                   <host> <service>
Copy to Clipboard Toggle word wrap

Set compute service properties

Expand
Table 19.23. Positional Arguments
ValueSummary

<host>

Name of host

<service>

Name of service (binary name)

Expand
Table 19.24. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

--enable

Enable service

--disable

Disable service

--disable-reason <reason>

Reason for disabling the service (in quotes). Should be used with --disable option.

--up

Force up service

--down

Force down service

Back to top
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2025 Red Hat