

• Amazon Systems Manager CloudWatch 控制面板在 2026 年 4 月 30 日之后将不再可用。客户可以像现在一样继续使用 Amazon CloudWatch 控制台来查看、创建和管理其 Amazon CloudWatch 控制面板。有关更多信息，请参阅 [Amazon CloudWatch 控制面板文档](https://docs.amazonaws.cn/AmazonCloudWatch/latest/monitoring/CloudWatch_Dashboards.html)。

# 了解如何制作有效的提示来向 Amazon Q 询问您的实例集情况
<a name="view-aggregated-node-details-Q-prompts"></a>

您向 Amazon Q 提出的问题或提示的质量越好，它为您提供的结果就越好。

**查询提示的技巧**  
向 Amazon Q 查询您的实例集信息时，请记住以下技巧：

1. 为了帮助提高结果的准确性，请在提示中使用术语“托管节点”和“托管实例”，而不仅仅是“节点”和“实例”。

1. 要查要查询属于某个*组织*的多个账户的结果（如 Amazon 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.amazonaws.cn/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 | 10.0.20348  | 


**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 Server  | 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 | 