本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
pcluster describe-cluster-instances
描述叢集中的執行個體。
pcluster describe-cluster-instances [-h] --cluster-nameCLUSTER_NAME[--debug] [--next-tokenNEXT_TOKEN] [--node-type {HeadNode,ComputeNode,LoginNode}] [--queryQUERY] [--queue-nameQUEUE_NAME] [--regionREGION]
具名引數
-h, --help-
顯示 的說明文字
pcluster describe-cluster-instances。 --cluster-name, -nCLUSTER_NAME-
指定叢集的名稱。
--debug-
啟用偵錯記錄。
--next-tokenNEXT_TOKEN-
下一組結果的字符。
--node-type {HeadNode,ComputeNode,LoginNode}-
指定要列出的節點類型。支援的值為
HeadNode、ComputeNode和LoginNode。如果未指定此參數,則會描述HeadNodeComputeNode和LoginNode執行個體。 --queryQUERY-
指定要在輸出上執行的 JMESPath 查詢。
--queue-nameQUEUE_NAME-
指定要列出的佇列名稱。如果未指定此參數,則會描述所有佇列中的執行個體。
--region, -rREGION-
指定 AWS 區域 要使用的 。 AWS 區域 必須使用
AWS_DEFAULT_REGION環境變數、~/.aws/config檔案[default]區段中的region設定或--region參數來指定 。
使用 3.1.4 AWS ParallelCluster 版的範例:
$pcluster describe-cluster-instances -ncluster-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" }, { "launchTime": "2022-07-12T17:37:42.000Z", "instanceId": "i-021345abcdef6789", "poolName": "pool1", "publicIpAddress": "198.51.100.44", "instanceType": "t2.micro", "state": "pending", "nodeType": "loginNode", "privateIpAddress": "192.0.2.0.196" } ] }