

• 2026 年 4 月 30 日之後， AWS Systems Manager CloudWatch Dashboard 將不再可用。客戶可以繼續使用 Amazon CloudWatch 主控台來檢視、建立和管理其 Amazon CloudWatch 儀表板，就像現在一樣。如需詳細資訊，請參閱 [Amazon CloudWatch Dashboard 文件](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Dashboards.html)。

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

# 在 Amazon Q 中使用文字提示探索節點
<a name="view-aggregated-node-details-Q"></a>

藉助 Systems Manager 與 Amazon Q Developer 的整合，您可以使用文字提示檢視由生成式 AI 建立的受管節點相關資訊。

Amazon Q Developer 是採用生成式 AI 技術的對話式助理，可協助您了解、建置、擴展和操作 AWS 應用程式。為了加速您的建置 AWS，支援 Amazon Q 的模型會擴增高品質 AWS 內容，以產生更完整、可行且參考的答案。如需詳細資訊，請參閱《Amazon Q Developer 使用者指南》**中的 [What is Amazon Q Developer?](https://docs.aws.amazon.com/amazonq/latest/aws-builder-use-ug/what-is.html) 部分。

Systems Manager 和 Amazon Q 之間的整合可讓您快速掌握和控制跨多個 AWS 帳戶 和 區域的大型分散式環境。您可以使用自然語言查詢快速搜尋節點資料，然後識別問題並以更快的速度採取行動。

當您詢問有關受管節點或受管執行個體的自然語言問題時，Amazon Q 會使用 Systems Manager `ListNodes` 動作，並根據文字輸入建立篩選條件來擷取結果。

例如，假設您對 Amazon Q 提供下方提示：

**List my managed nodes running Red Hat Enterprise Linux 9.2**

Amazon Q 會判斷要包含在請求中的篩選條件，然後執行如下所示的查詢：

```
aws ssm list-nodes \
    --filters Key=PlatformName,Values='Red Hat Enterprise Linux',Type=Equal Key=PlatformVersion,Values=9.2,Type=Equal
```

之後，Amazon Q 會產生帳戶中關於 Red Hat Enterprise Linux 執行個體的報告，列出執行個體的數量、ID 以及區域等資訊。

您可以檢視每個執行個體詳細資訊的 JSON 摘要，也可以開啟連結，在 Systems Manager **探索節點**頁面中檢視 EC2 執行個體或受管節點的完整清單。**探索節點**會顯示符合提示所包含篩選條件的結果。您可以在該處變更或精簡請求的篩選條件，如在[探索節點](view-aggregated-node-details.md)中所述。

**Topics**
+ [

# 學習制定有效的提示向 Amazon Q 詢問有關機群的問題
](view-aggregated-node-details-Q-prompts.md)
+ [

# 使用 Amazon Q 探索受管節點
](explore-managed-nodes-using-Q.md)

# 學習制定有效的提示向 Amazon Q 詢問有關機群的問題
<a name="view-aggregated-node-details-Q-prompts"></a>

您提供給 Amazon Q 品質越好的問題或提示，Amazon Q 提供的結果就越好。

**查詢提示的提示**  
在向 Amazon Q 查詢有關機群的問題時，請記住下列提示：

1. 為了協助提高結果的準確性，請在提示中使用「受管節點」和「受管執行個體」等字詞，而不是只使用「節點」和「執行個體」。

1. 若要查詢組織中多個帳戶的結果**，如 中所設定 AWS Organizations，您必須登入指定主區域中的委派管理員帳戶。

1. 在委派管理員帳戶中，使用字詞來協助 Amazon Q 了解您詢問的是有關整個組織的節點和執行個體，具體使用「在我的組織中」或「在我的帳戶 123456789012 中」等字詞。

**Topics**
+ [

## Amazon Q 的範例問題
](#sample-questions-Q)
+ [

## 提示支援的作業系統名稱和版本
](#supported-os-names-Q)

## Amazon Q 的範例問題
<a name="sample-questions-Q"></a>

在下表中，我們提供數個範例問題，示範了您可以建立 Amazon Q 查詢來產生較佳結果的一些方式。

我們也提供 Amazon Q 會在執行 [ListNodes](https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_ListNodes.html) 命令時套用的篩選條件範例，而這些篩選條件是根據提示內容產生的。


| 自然語言問題範例 | Amazon Q 套用的篩選條件 | 
| --- | --- | 
| Show me my Windows managed nodes. | <pre>PlatformType = Windows</pre> | 
| List my managed instances in account 123456789012. | <pre>AccountId = 123456789012</pre> | 
| Show me all managed nodes running Amazon Linux 2 across my organization. | <pre>PlatformName = Amazon Linux<br />PlatformVersion = 2</pre> | 
| Show me all managed instances running Microsoft Windows Server 2019 Datacenter in my organization. | <pre> PlatformName = Microsoft Windows Server 2019 Datacenter</pre> | 
| Can you show me all managed nodes with SSM Agent version 3.3.1142.0? | <pre>AgentType = amazon-ssm-agent<br />AgentVersion = 3.3.1142.0                               </pre> | 
| List all Amazon Linux 2 managed instances in account 123456789012 that have SSM Agent version 3.3.1230.0. | <pre>PlatformName = Amazon Linux<br />PlatformVersion = 2<br />AccountId = 123456789012<br />AgentType = amazon-ssm-agent<br />AgentVersion = 3.3.1230.0</pre> | 
| What Microsoft Windows Server 2012 R2 Enterprise managed nodes are running in the eu-central-1 region across my entire organization? | <pre>PlatformName = Microsoft Windows Server 2012 R2 Enterprise<br />Region = eu-central-1</pre> | 
| Show me all managed instances running Red Hat Linux 7 in ou-d6ty-gxdma6vm. | <pre>PlatformName = RHEL Linux<br />PlatformVersion = 7<br />OrganizationalUnitId = ou-d6ty-gxdma6vm</pre> | 
| What Ubuntu managed instances are in account 123456789012?  | <pre>PlatformName = Ubuntu<br />AccountId = 123456789012</pre> | 
| List my Linux managed instances. | <pre>PlatformType = Linux</pre> | 
| Find my macOS managed nodes. | <pre>PlatformType = macOS</pre> | 
| Show me all versions of Amazon Linux managed nodes in my org. | <pre>PlatformName = Amazon Linux</pre> | 
| List managed nodes running Amazon Linux 2. | <pre>PlatformName = Amazon Linux<br />PlatformVersion = 2                               </pre> | 
| List the managed nodes with Ubuntu 16.04 in account 123456789012. | <pre>PlatformName = Ubuntu<br />PlatformVersion = 16.04<br />AccountId = 123456789012</pre> | 
| Find all managed nodes that have an SSM Agent version that is not 3.3.987.0. | <pre>AgentType = amazon-ssm-agent<br />AgentVersion != 3.3.987.0                               </pre> | 
| List all managed instances that are not running a Linux operating system. | <pre>PlatformType != Linux</pre> | 

## 提示支援的作業系統名稱和版本
<a name="supported-os-names-Q"></a>

當您向 Amazon Q 詢問帳戶中的受管節點時，提供如 Systems Manager 中標示的作業系統名稱會很有幫助。您也可以提供版本編號，進一步縮小結果範圍。例如，如下表所示，您可以要求具體關於 **macOS 14.5**、 **Microsoft Windows Server 2019 Datacenter** 和 **AlmaLinux 9.2 through 9.4** 等的結果。

這些清單並非詳盡無遺，僅作為範例提供。


**macOS**  

| 平台名稱 | 版本編號 | 
| --- | --- | 
| macOS | 13.2、13.4、13.7、14.1、14.5、14.6.1、15.0 | 


**Windows**  

| 推出 | 版本編號 | 
| --- | --- | 
| Microsoft Windows Server 2012 R2 Datacenter | 6.3.9600 | 
| Microsoft Windows Server 2012 R2 Standard | 6.3.9600 | 
| Microsoft Windows Server 2012 Standard | 6.2.9200  | 
| Microsoft Windows Server 2016 Datacenter | 無 | 
| Microsoft Windows Server 2016 Standard | 10.0.14393  | 
| Microsoft Windows Server 2019 Datacenter | 無 | 
| Microsoft Windows Server 2019 Standard | 無 | 
| Microsoft Windows Server 2022 Datacenter | 無 | 
| Microsoft Windows Server 2022 Standard | 20348 年 10 月 0 日  | 


**Linux**  

| 平台名稱 | 版本編號 | 
| --- | --- | 
| AlmaLinux  | 8.10、9.2、9.3、9.4 | 
| Amazon Linux 2 | 2.0 及更新版本 | 
| Amazon Linux 2023 | 2023.0.20230315.0 及更新版本 | 
| Bottlerocket | 1.14.3、1.16.1、1.18.0、1.19.1、1.19.2、1.19.5、1.20.0、1.20.1、1.20.2、1.20.3、1.20.5、1.21.1、1.23.0、1.24.0、1.24.1、1.25.0、1.26.1、 | 
| CentOS Stream | 9  | 
| Debian GNU/Linux  | 11-12 | 
| Oracle Linux 伺服器  | 7.8、8.2、8.3、8.8、8.9、8.10、9.4 | 
| Red Hat Enterprise Linux | 8.2、8.3、8.4、8.5、8.6、8.7、8.8、8.9、8.10、9.2、9.3、9.4 | 
| Red Hat Enterprise Linux 伺服器 | 17.3、7.6、7.7、7.8、7.9 | 
| Rocky Linux | 8.6、8.7、8.8、8.9、8.10、9.1、9.2、9.3、9.4 | 
| Ubuntu Server  | 16.04、18.04、20.04、22.04、24.04 | 

# 使用 Amazon Q 探索受管節點
<a name="explore-managed-nodes-using-Q"></a>

Systems Manager 與 Amazon Q Developer 的整合可讓您從 Amazon Q 介面可用的任何 AWS 管理主控台 位置詢問機群中受管節點的問題。

如需有關與 Amazon Q 互動的詳細資訊，請參閱《Amazon Q Developer 使用者指南》**中的 [Chatting with Amazon Q Developer about AWS](https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/chat-with-q.html)。

**使用 Amazon Q 探索受管節點**

1. 從 中的任何位置 AWS 管理主控台，選擇 Amazon Q 圖示 (![\[The Amazon Q icon\]](http://docs.aws.amazon.com/zh_tw/systems-manager/latest/userguide/images/q-icon-white.png))。

1. 在 Amazon Q 窗格底部的提示欄位中，詢問有關帳戶或組織中受管節點的問題。
**提示**  
如需建立有效提示的秘訣，請檢閱 [學習制定有效的提示向 Amazon Q 詢問有關機群的問題](view-aggregated-node-details-Q-prompts.md) 中的資訊。

1. 檢查有關特定節點的資訊，或選擇**開啟 AWS Systems Manager 主控台**以繼續探索。