openstack Verified current stable Not installed? Networking

Openstack / List Servers

List Servers

List all servers in OpenStack.

$
Terminal
openstack server list

When To Use

During an operational review to gauge resource utilization and status across compute resources.

Pro Tip

Use `--status` to filter by specific instance states (ACTIVE, SHUTOFF).

Anatomy of Output

Understanding the result

+--------------------------------------+---------+-------------------------------------+----------+ Output Header

Details server IDs, names, and statuses.

| ID | Name | Status | Networks | Column Details

Shows relevant attributes for all servers.

| 4567890a-abcd-ef00-4444-556677889900 | test-server | ACTIVE | private=192.168.1.5 | Server Entry

An example server entry showcasing its status and network.

Power User Variants

Optimized versions

openstack server list --status ACTIVE

List only active servers.

openstack server list --format json

Get server list in JSON format for processing.

Troubleshooting

Common pitfalls

Unauthorized (HTTP 401)

Solution: Verify user credentials and ensure sufficient roles.

No suitable hosts found (HTTP 503)

Solution: Check compute host availability and resource allocation.

Server not found (HTTP 404)

Solution: Confirm server ID or name for accuracy.

Command Breakdown

What each part is doing

openstack
Base Command
The executable that performs this operation. Here it runs Openstack before the shell applies any redirect operators.

Alternative Approaches

Comparable commands in other tools

Alternative networking tools for the same job.