To enable SNMP on your VMware ESXi 5.0, first you should install VMware vSphere CLI.
Set Up Community
vicfg-snmp.pl --server <IP or host name> --username <username> --password <password> -c <community>
Check status:
vicfg-snmp.pl --server <IP or host name> --username <username> --password <password> -s
Enable SNMP:
vicfg-snmp.pl --server <IP or host name> --username <username> --password <password> -E
Disable SNMP:
vicfg-snmp.pl --server <IP or host name> --username <username> --password <password> -D
Picture below is an example of snmp check status:
Set Up Community
vicfg-snmp.pl --server <IP or host name> --username <username> --password <password> -c <community>
Check status:
vicfg-snmp.pl --server <IP or host name> --username <username> --password <password> -s
Enable SNMP:
vicfg-snmp.pl --server <IP or host name> --username <username> --password <password> -E
Disable SNMP:
vicfg-snmp.pl --server <IP or host name> --username <username> --password <password> -D
Picture below is an example of snmp check status: