pcluster describe-cluster-instances - AWS ParallelCluster

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

pcluster describe-cluster-instances

說明叢集中的執行個體。

pcluster describe-cluster-instances [-h] --cluster-name CLUSTER_NAME [--debug] [--next-token NEXT_TOKEN] [--node-type {HeadNode,ComputeNode,LoginNode}] [--query QUERY] [--queue-name QUEUE_NAME] [--region REGION]

命名參數

-h, --help

顯示的說明文字pcluster describe-cluster-instances

--cluster-name, -n CLUSTER_NAME

指定叢集的名稱。

--debug

啟用偵錯記錄。

--next-token NEXT_TOKEN

指定要用於分頁請求的權杖。

--node-type {HeadNode,ComputeNode,LoginNode}

指定要列出的節點類型。支援的值為HeadNodeComputeNodeLoginNode。如果未指定此參數HeadNode,則會描述ComputeNode和執行LoginNode個體。

--query QUERY

指定要在輸出上執行的 JMESPath 查詢。

--queue-name QUEUE_NAME

指定要列出的佇列名稱。如果未指定此參數,則會說明所有佇列中的執行個體。

--region, -r REGION

指定 AWS 區域 要使用的。 AWS 區域 必須使用AWS_DEFAULT_REGION環境變數、~/.aws/config檔案[default]區段中的region設定或--region參數來指定。

使用 AWS ParallelCluster 版本 3.1.4 的示例:

$ pcluster describe-cluster-instances -n cluster-v3 { "instances": [ { "launchTime": "2022-07-12T17:22:21.000Z", "instanceId": "i-1234567890abcdef0", "publicIpAddress": "198.51.100.44", "instanceType": "t2.micro", "state": "running", "nodeType": "HeadNode", "privateIpAddress": "192.0.2.0.196" }, { "launchTime": "2022-07-12T17:37:42.000Z", "instanceId": "i-021345abcdef6789", "queueName": "queue1", "publicIpAddress": "198.51.100.44", "instanceType": "t2.micro", "state": "pending", "nodeType": "ComputeNode", "privateIpAddress": "192.0.2.0.196" } ] }