Cấu hình SNMP cho vCenter Server
Command> snmp.set --communities DhspdnSNMP
Command> snmp.enable
Command> snmp.set --communities public
Command> snmp.set --targets 192.168.1.15@162/public
Command> snmp.set --loglevel warning
Command> snmp.enable
Đặt lại mặc định SNMP
Command> snmp.reset
Cấu hình SNMP cho ESXI
esxcli system snmp set --communities AAAAAA
esxcli system snmp set --enable true
esxcli network firewall ruleset set --ruleset-id snmp --allowed-all false
esxcli network firewall ruleset allowedip add --ruleset-id snmp --ip-address 10.1.16.23/24
esxcli network firewall ruleset allowedip add --ruleset-id snmp --ip-address 10.1.16.21/24
esxcli network firewall ruleset set --ruleset-id snmp --enabled true
/etc/init.d/snmpd restart (khong can chay lenh nay)