

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

# 正在检查 SSM Agent 版本号
<a name="ssm-agent-get-version"></a>

某些 AWS Systems Manager 功能具有先决条件，包括托管式节点上所安装的最低 Systems Manager Agent (SSM Agent) 版本。您可以使用 Systems Manager 控制台或登录托管式节点，获取托管式节点上当前安装的 SSM Agent 版本。

**注意**  
要查看有关早期版本的详细信息，请参阅 GitHub 上的 [SSM Agent 发行说明](https://github.com/aws/amazon-ssm-agent/blob/mainline/RELEASENOTES.md)。

以下过程介绍如何在托管式节点上获取当前安装的 SSM Agent 版本。

**检查在托管式节点上安装的 SSM Agent 的版本号**

1. 访问 [https://console.aws.amazon.com/systems-manager/](https://console.aws.amazon.com/systems-manager/)，打开 AWS Systems Manager 控制台。

1. 在导航窗格中，请选择 **Fleet Manager**。

1. 在 **SSM Agent 版本**列中，记住**代理版本**编号。

**从操作系统中获取当前安装的 SSM Agent 版本**  
选择以下选项卡之一获取操作系统中当前安装的 SSM Agent 版本。

------
#### [ Amazon Linux 2 and Amazon Linux 2023 ]
**注意**  
此命令因操作系统的软件包管理器而异。

1. 登录您的托管式节点。

1. 运行如下命令。

   ```
   yum info amazon-ssm-agent
   ```

   该命令会返回类似以下内容的输出。

   ```
   Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
   Installed Packages
   Name        : amazon-ssm-agent
   Arch        : x86_64
   Version     : 3.0.655.0
   ```

------
#### [ Debian 服务器 ]

1. 登录您的托管式节点。

1. 运行如下命令。

   ```
   apt list amazon-ssm-agent
   ```

   该命令会返回类似以下内容的输出。

   ```
   apt list amazon-ssm-agent
   Listing... Done
   amazon-ssm-agent/now 3.0.655.0-1 amd64 [installed,local]
   
   3.0.655.0 is the version of SSM agent
   ```

------
#### [ macOS ]

1. 登录您的托管式节点。

1. 运行如下命令。

   ```
   pkgutil --pkg-info com.amazon.aws.ssm
   ```

------
#### [ RHEL ]

1. 登录您的托管式节点。

1. 对于 RHEL 7、8、9 和 10，运行以下命令。

   ```
   yum info amazon-ssm-agent
   ```

   该命令会返回类似以下内容的输出。

   ```
   Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
   Installed Packages
   Name        : amazon-ssm-agent
   Arch        : x86_64
   Version     : 3.0.655.0
   ```

   对于 DNF 程序包实用工具，运行以下命令。

   ```
   dnf info amazon-ssm-agent
   ```

------
#### [ SLES ]

1. 登录您的托管式节点。

1. 对 SLES 15.*x* 运行以下命令。

   ```
   zypper info amazon-ssm-agent
   ```

   该命令会返回类似以下内容的输出。

   ```
   Loading repository data...
   Reading installed packages...
   Information for package amazon-ssm-agent:
   ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
   Repository : @System
   Name : amazon-ssm-agent
   Version : 3.0.655.0-1
   ```

------
#### [ Ubuntu Server ]
**注意**  
要检查您的 Ubuntu Server 16.04 实例是使用 Deb 软件包还是 Snap 软件包，请参阅 [在 Ubuntu Server 实例上手动安装 SSM Agent](agent-install-ubuntu.md)。

1. 登录您的托管式节点。

1. 对于 Ubuntu Server 16.04 64 位（使用 Deb 安装程序包），运行以下命令。

   ```
   apt list amazon-ssm-agent
   ```

   该命令会返回类似以下内容的输出。

   ```
   apt list amazon-ssm-agent
   Listing... Done
   amazon-ssm-agent/now 3.0.655.0-1 amd64 [installed,local]
   
   3.0.655.0 is the version of SSM agent
   ```

   对于 Ubuntu Server 16.04 LTS 64 位（Snap）、18.04、20.04、22.04 LTS、23.10、24.04 LTS、24.0 和 25.04，运行以下命令。

   ```
   sudo snap list amazon-ssm-agent
   ```

   该命令会返回类似以下内容的输出。

   ```
   snap list amazon-ssm-agent
   Name Version Rev Tracking Publisher Notes
   amazon-ssm-agent 3.0.529.0 3552 latest/stable/… aws✓ classic-
   
   3.0.529.0 is the version of SSM agent
   ```

------
#### [ Windows ]

1. 登录您的托管式节点。

1. 运行以下 PowerShell 命令。

   ```
   & "C:\Program Files\Amazon\SSM\amazon-ssm-agent.exe" -version
   ```

   该命令会返回类似以下内容的输出。

   ```
   SSM Agent version: 3.1.804.0
   ```

------

我们建议您使用最新版本的 SSM Agent，以便您可以受益于新的或更新的功能。为确保您的托管实例始终运行最新版本的 SSM Agent，您可以自动处理更新 SSM Agent 的过程。有关更多信息，请参阅 [自动更新到 SSM Agent](ssm-agent-automatic-updates.md)。