

This documentation references AWS ParallelCluster. For running HPC and AI workloads, we recommend [AWS Parallel Computing Service (AWS PCS)](https://aws.amazon.com/pcs/), our managed Slurm service that lets you focus on running your workloads rather than managing infrastructure.

# `awsbhosts`

Shows the hosts that belong to the cluster’s compute environment.

```sh
awsbhosts [-h] [-c {{CLUSTER}}] [-d] [{{instance_ids}} [{{instance_ids}} ... ]]
```

## Positional Arguments
<a name="awsbatchcli.awsbhosts-v3.arguments"></a>

**{{instance\_ids}}**  
Specifies a space-separated list of instances IDs. If a single instance is requested, it is shown in a detailed version.

## Named Arguments
<a name="awsbatchcli.awsbhosts-v3.namedarguments"></a>

**-c {{CLUSTER}}, --cluster {{CLUSTER}}**  
Specifies the name of the cluster to use.

**-d, --details**  
Indicates whether to show the details of the hosts.  
Default: False