Users Guide
注: 通过为每个远程主机添加 rocommunity 指令,可从多个特定的远程主机启用 SNMP 访问。
3. 要启用已更改的 SNMP 配置,请通过键入以下命令重新启动 SNMP 代理程序:/etc/init.d/snmpd restart。
要启用从所有远程主机对运行 Server Administrator 的系统的 SNMP 访问,请编辑 SNMP 代理程序配置文件 /etc/snmp/
snmpd.conf,并执行下列步骤:
4. 查找以下行:rocommunity public 127.0.0.1。
5. 通过删除 127.0.0.1 来编辑此行。编辑后,新行应为:rocommunity public。
6. 要启用已更改的 SNMP 配置,请通过键入以下命令重新启动 SNMP 代理程序:/etc/init.d/snmpd restart。
更改 SNMP 团体名称
配置 SNMP 团体名称可确定哪些管理站能够通过 SNMP 管理您的系统。管理应用程序使用的 SNMP 团体名称必须与在运行
Server Administrator 的系统上所配置的 SNMP 团体名称匹配,以便管理应用程序可以从 Server Administrator 检索管理信息。
要更改用于从运行 Server Administrator 的系统检索管理信息的默认 SNMP 团体名称:
1. 打开 SNMP 代理配置文件 /etc/snmp/snmpd.conf。
2. 找到以下行:rocommunity public 127.0.0.1。
3. 编辑此行,用新 SNMP 团体名称替换 public。编辑后,新行应为:rocommunity community_name 127.0.0.1。
4. 要启用已更改的 SNMP 配置,请通过键入以下命令重新启动 SNMP 代理:/etc/init.d/snmpd restart。
Conguring the SNMP agent on systems running supported VMware ESXi 6.X operating systems
Server Administrator supports SNMP traps on VMware ESXi 6.X. If a stand-alone license is only present, SNMP conguration fails
on VMware ESXi operating systems. Server Administrator does not support SNMP Get and Set operations on VMware ESXi 6.X as
the required SNMP support is unavailable. The VMware vSphere Command-Line Interface (CLI) is used to congure systems
running VMware ESXi 6.X to send SNMP traps to a management station.
NOTE: For more information about using the VMware vSphere CLI, see vmware.com/support.
配置您的系统以向管理站发送陷阱
Server Administrator 生成 SNMP 陷阱,以响应传感器状况的更改和其他受监测参数的更改。您必须在运行 Server Administrator
的系统上为将要发送至管理站的 SNMP 陷阱配置一个或多个陷阱目标。
要配置运行 Server Administrator 的 ESXi 系统将陷阱发送到管理站:
1. 安装 VMware vSphere CLI。
2. 在安装了 VMware vSphere CLI 的系统上打开命令提示符。
3. 更改到安装了 VMware vSphere CLI 的目录。Linux 上的默认位置是 /usr/bin。Windows 上的默认位置是 C:\Program Files
\VMware\VMware vSphere CLI\bin。
4. 运行以下命令:vicfg-snmp.pl --server <server> --username <username> --password <password> -
c <community> -t <hostname> @162/<community>
其中,<server> 是 ESXi 系统的主机名或 IP 地址,<username> 是 ESXi 系统上的用户,<community> 是 SNMP 团体
名称,<hostname> 是管理站的主机名或 IP 地址。
注: 在 Linux 上,不要求提供 .pl 扩展名。
注: 如果没有指定用户名和密码,系统将会提示您。
SNMP 陷阱配置会立即生效,而无须重新启动任何服务。
在运行支持的 Red Hat Enterprise Linux 操作系统和 SUSE Linux Enterprise Server 的系统上配
置防火墙
如果在安装 Red Hat Enterprise Linux/SUSE Linux 时启用了防火墙安全保护,则默认情况下,所有外部网络接口上的 SNMP 端
口都将处于关闭状态。要启用 SNMP 管理应用程序(例如 IT Assistant),从 Server Administrator 查找和检索信息,至少一个
外部网络接口上的 SNMP 端口必须处于打开状态。如果 Server Administrator 检测到防火墙中未打开任何外部网络接口的
SNMP 端口,则将显示警告消息,并在系统日志中记录消息。
18