esxcli system snmp set --communities public esxcli system snmp set --enable trueesxcli network firewall ruleset set --ruleset-id snmp --allowed-all true ####允许所有主机访问snmp服务esxcli network firewall ruleset set --ruleset-id snmp --enabled true/etc/init.d
配置流程 配置SNMPV1/V2C 配置端口 admin:/>show snmp port SNMP Listening Port : 161 admin:/>change snmp port port_number=20000 WARNING: You are about to change the listening port of the SNMP service. This operation may cause the restart of the SNMP service and