Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

服务器管理员 版本 7.4 安装指南 Linux

使用 vSphere CLI 配置系统向管理站发送陷阱

Server Administrator 生成 SNMP 陷阱,以响应传感器状况和其他受监测参数的变化。必须在运行 Server Administrator 的系统上配置一个或多个陷阱目标,才能向 Management Station 发送 SNMP 陷阱。

配置运行 Server Administrator 的 ESXi 系统,以便将陷阱发送到 Management Station:
  1. 安装 VMware vSphere CLI。
  2. 在安装了 vSphere CLI 的系统上打开命令提示符。
  3. 导航至安装了 vSphere CLI 的目录。在 Linux 上,默认位置是 /usr/bin;在 Windows 上,默认位置是 C:\Program Files\VMware\VMware vSphere CLI\bin
  4. 使用以下命令配置 SNMP 设置:vicfg-snmp.pl --server <服务器> --username <用户名> --password <密码> -c <团体> -t <主机名>@162/<团体>vicfg-snmp.pl --server <服务器> --username <用户名> --password <密码> -c <团体> -t <主机名>@162/<团体>
    其中,<服务器> 是 ESXi 系统的主机名或 IP 地址,<用户名> 是 ESXi 系统上的用户,<密码> 是 ESXi 用户的密码,<团体> 是 SNMP 团体名称,<主机名> 是 Management Station 的主机名或 IP 地址。

    注: 如果没有指定用户名和密码,系统将会提示您指定这两项。

  5. 使用以下命令启用 SNMP:vicfg-snmp.pl --server <服务器> --username <用户名> --password <密码> -Evicfg-snmp.pl --server <服务器> --username <用户名> --password <密码> -E
  6. 使用以下命令查看 SNMP 配置:vicfg-snmp.pl --server <服务器> --username <用户名> --password <密码> -svicfg-snmp.pl --server <服务器> --username <用户名> --password <密码> -s
  7. 使用以下命令测试 SNMP 配置:vicfg-snmp.pl --server <服务器> --username <用户名> --password <密码> -Tvicfg-snmp.pl --server <服务器> --username <用户名> --password <密码> -T

    注: 如果您在 Linux 上使用 vSphere CLI 或使用 vMA,则不需要 .pl 扩展名。

SNMP 陷阱配置会立即生效,而无须重新启动任何服务。

Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\