[VMWare] Enable SNMP using SSH on a VMWare ESXi 6 Host

OK, so first, you need to enable SSH by following this article: https://pubs.vmware.com/vsphere-51/index.jsp?topic=%2Fcom.vmware.vcli.getstart.doc%2Fcli_jumpstart.3.6.html.

Then, once you are in a SSH session (you can use PuTTY as a SSH client), issue the following commands:

If everything was set correctly, you can use a SNMP browser and get a readout similar to the one below:

VMHOST (10.10.10.10)
SNMP Information
System:VMware ESXi 6.0.0 build-2494585 VMware, Inc. x86_64
Uptime: 9900 (0 days, 0 hours, 1 minutes)
Hostname: vmhost
Location: Bucharest, Romania
Contact: youradmin@yourisp.tld