Howtodojo logo
  • Home 
  • About 
  • Certifications 
  • Sample Database 
  • Cheatsheet 
  • Glossary 
  • Blog 
  • Tags 
  1.   Blog
  1. Home
  2. Blog
  3. How-to Configure VMware ESXi 5 SNMP Service

How-to Configure VMware ESXi 5 SNMP Service

Share via
Howtodojo
Link copied to clipboard
][1]You might want to monitor your ESXi server host from a monitoring application and need SNMP for it." data-sharing-title="How-to Configure VMware ESXi 5 SNMP Service" data-sharing-url="https://howtodojo.com/how-to-configure-vmware-esxi-5-snmp-service/"role="button" >

[<img loading="lazy" class="alignleft size-full wp-image-44" alt="vmware-logo-blog" src="https://www.howtodojo.com/wp-content/uploads/2013/01/vmware-logo-blog.png" width="150" height="149" srcset="https://www.howtodojo.com/wp-content/uploads/2013/01/vmware-logo-blog.png 150w, https://www.howtodojo.com/wp-content/uploads/2013/01/vmware-logo-blog-50x50.png 50w, https://www.howtodojo.com/wp-content/uploads/2013/01/vmware-logo-blog-60x60.png 60w" sizes="(max-width: 150px) 100vw, 150px" />][1]You might want to monitor your ESXi server host from a monitoring application and need SNMP for it.

How-to Configure VMware ESXi 5 SNMP Service

You might want to monitor your ESXi server host from a monitoring application and need SNMP for it. By default SNMP on VMware ESXi is not enabled and you need to use VMware CLI to enable and configure VMware ESXi5 SNMP.

First of all download and install VMware vSphere CLI 5.0

After installing VMware vSphere CLI you can go to bin directory :

cd "C:\Program Files (x86)\VMware\VMware vSphere CLI\bin\"
```bash

You can show current configuration with

```powershell
vicfg-snmp.pl --server [hostname or ip address] --username [username] --password [password] --show

Things inside square braces is the one thay you have to change like hostname or ipaddress, username and password. if you don’t want to show password there just omit the –password. It will prompt you for password everytime you execute a command. For example for command above you can use

vicfg-snmp.pl --server [hostname or ip address] --username [username] --show
```bash

Now let's create community name for VMware ESXi 5 SNMP:

```powershell
vicfg-snmp.pl --server [hostname] --username [username] --password [password] -c [communityName]

Now create trap to our monitoring server. The command below, we send trap from ESXi host.example.com to monitoring host target.example.com using port 162 on monitoring server and using secretCommunity as communityName

vicfg-snmp.pl --server [host.example.com] --username root --password password -t [target.example.com@162/secretCommunity]
```bash

Don't forget to enable snmp service on the host. The hostname here is ESXi host not monitoring server.

```powershell
vicfg-snmp.pl --server [hostname] --username [username] --enable

You can verify your configuration using

vicfg-snmp.pl --server [hostname or ip address] --username [username] --password [password] --show
```bash

To test sending trap you can use

```powershell
vicfg-snmp.pl --server [hostname or ip address] --username [username] --password [password] --test

You can find further information regarding VMware ESXi 5 SNMP configuration on KB 1008065. Hope this help. See ya!

 [Infographic] The Evolution of iPhone
How-to remove languages on simpleSAMLphp 
Follow me

We publish tutorials, tips and tricks about Linux, open source, cloud computing, and infrastructure

     
Copyright © 2012 - 2025 howtodojo.com. |
Howtodojo
Code copied to clipboard