If you want to enable SNMP on ESXi 5 or ESXi 4, follow these steps:
- Connect to your vMA instance through Putty, SecureCRT or whatever app you use.
- Add the server: vifp addserver vs-esxi.yourdomain.com (This is only needed if you haven’t already added the target!)
- Set your target: vifptarget -s vs-esxi.yourdomain.com
- Configure SNMP Community: vicfg-snmp –communities vscomname
- Configure SNMP Trap Host: vicfg-snmp –targets TrapHostIP@161/vscomname
- Enable SNMP on the ESXi host: vicfg-snmp –enable
You can show the configuration by typing: vicfg-snmp –show
You can snmpwalk the host from the Trap host you configured by typing: snmpwalk -v2c -cvscomname vs-esxi.yourdomain.com
For information on how to
configure this, check out VMware KB Article 1008065.
No comments:
Post a Comment