ESXi 5.5开启并配置SNMP

1、 安装vshpere cli

2、设定SNMP通讯字并开启SNMP功能

进入到bin目录.

C:\Program Files (x86)\VMware\VMware vSphere CLI\bin

C:\ProgramFiles(x86)\VMware\VMware vSphere CLI\bin>vicfg-snmp.pl --server 10.10.10.11--username root –password "pass word" -s 查询ESXi服务器的SNMP配置状态
C:\ProgramFiles(x86)\VMware\VMwarevSphereCLI\bin> vicfg-snmp.pl --server 10.10.10.11--username root –password "pass word" -c public 设定snmp通讯字:public
C:\ProgramFiles(x86)\VMware\VMwarevSphere CLI\bin>vicfg-snmp.pl --server 10.10.10.11--username root --password "pass word" --enable 允许开启snmp功能
C:\ProgramFiles(x86)\VMware\VMware vSphere CLI\bin>vicfg-snmp.pl --server 10.10.10.11--username root --password "pass word" --test 测试配置是否成功

3、开启ESXi5防火墙允许SNMP协议

选择虚拟机ESXi5主机-配置-安全配置文件-防火墙-属性-选中“SNMP服务器”-防火墙-选中“允许任何IP连接”或者设置仅允许NMS访问.

posted @ 2016-11-21 13:43  flanker_X  阅读(437)  评论(0编辑  收藏  举报