VMware Cloud Community


So we've been fighting with SNMP and ESXi for quite a while and our primary problem is still not resolved and no amount of Google/Communities searching has really yeilded any results. Our problem is that our Management Server that is receiving the traps does not appear to recognize the OIDs sent by ESXi.

I'm by no means an SNMP guru, but I have configured 3rd party MIBs for several other products with no major issues. However I'm stumped on this one (the lack of documentation from VMware doesn't help). I've been able to extract the MIB files from both VirtualCenter Server and the ESX 3.5 source CD and imported them into our Management Server. However the traps sent by ESXi are still unrecognizable. We suspected our management software as the culprit (because it's generally awful and in dire need of replacement) but after installing another application on another server we also received the same results.

I presume there is a slight difference in the format of the OIDs for ESXi but on visual inspection I haven't been able to locate it. Any insight into this problem would be much appreciated.

Many thanks!

0 Kudos
3 Replies

I am presuming that you have already found a solution for this?


0 Kudos

MIB modules for all VMware products that support SNMP (ESXi, vCenter Server, SRM, ...) can be found

in  http://communities.vmware.com/community/developer/forums/managementapi

and the VMware specific MIB modules contain this URL as well. This is a zip file containing every oid assignment

VMware ever made -- compatible back to ESX 2.0 if you include VMARE-OBSOLETE-MIB.mib

Now if you haven't used libsmi package on linux, its a very good tool for parsing these files

and generating name to oid listings. Here's a command that I use to generate the full VMWARE oid to name assignments

as well as IEEE and IETF standard :






/opt/pkg/libsmi-0.4.8/bin/smidump -f identifiers $MIBS

will produce something like this:

VMWARE-ROOT-MIB        vmware                                                node

VMWARE-ROOT-MIB        vmwNotifications                                      node

VMWARE-ROOT-MIB        vmwSystem                                             node

VMWARE-ROOT-MIB        vmwVirtMachines                                       node

VMWARE-ROOT-MIB        vmwResources                                          node

VMWARE-ROOT-MIB        vmwProductSpecific                                    node

VMWARE-ROOT-MIB        vmwLdap                                               node

VMWARE-ROOT-MIB        vmwTraps                                              node

VMWARE-ROOT-MIB        vmwSRM                                                node

VMWARE-ROOT-MIB        vmwOID                                                node

VMWARE-ROOT-MIB        vmwareAgentCapabilities                               node

VMWARE-ROOT-MIB        vmwExperimental                                       node

VMWARE-ROOT-MIB        vmwDocumentation                                      node

VMWARE-ROOT-MIB        vmwObsolete                                           node

# VMWARE-PRODUCTS-MIB list of identifiers (generated by smidump 0.4.8)

VMWARE-PRODUCTS-MIB    vmwESX                                                node

VMWARE-PRODUCTS-MIB    vmwDVS                                                node

VMWARE-PRODUCTS-MIB    vmwVC                                                 node

VMWARE-PRODUCTS-MIB    vmwServer                                             node

VMWARE-PRODUCTS-MIB    vmwVCOps                                              node

VMWARE-PRODUCTS-MIB    vmwProducts                                           node

VMWARE-PRODUCTS-MIB    oidESX                                                node

# VMWARE-TC-MIB list of identifiers (generated by smidump 0.4.8)

VMWARE-TC-MIB          VmwSubsystemTypes                                     type

VMWARE-TC-MIB          VmwCIMAlertTypes                                      type

VMWARE-TC-MIB          VmwCIMAlertFormat                                     type

VMWARE-TC-MIB          VmwSubsystemStatus                                    type

VMWARE-TC-MIB          VmwCIMSeverity                                        type

VMWARE-TC-MIB          VmwCimName                                            type

VMWARE-TC-MIB          VmwConnectedState                                     type

VMWARE-TC-MIB          VmwLongDisplayString                                  type

VMWARE-TC-MIB          VmwLongSnmpAdminString                                type

VMWARE-TC-MIB          vmwTcMIB                                              node

# VMWARE-SYSTEM-MIB list of identifiers (generated by smidump 0.4.8)

VMWARE-SYSTEM-MIB      vmwProdName                                           scalar

VMWARE-SYSTEM-MIB      vmwProdVersion                                        scalar

VMWARE-SYSTEM-MIB      vmwProdBuild                                          scalar

VMWARE-SYSTEM-MIB      vmwProdUpdate                                         scalar

VMWARE-SYSTEM-MIB      vmwProdPatch                                          scalar

VMWARE-SYSTEM-MIB      vmwSystemMIB                                          node

VMWARE-SYSTEM-MIB      vmwSystemMIBConformance                               node

VMWARE-SYSTEM-MIB      vmwSystemMIBCompliances                               node

VMWARE-SYSTEM-MIB      vmwSysMIBBasicCompliance                              compliance

VMWARE-SYSTEM-MIB      vmwSysMIBGroups                                       node

VMWARE-SYSTEM-MIB      vmwSystemGroup                                        group


0 Kudos

It is almost sure that your Manager Software is the problem, as it's always the one doing the translation from numbers to names. The way the SNMP Manager Software does this can differ from Software to Software. On some you just have to copy the needed files to a directory. For others there is a real compilation procedure integrating the mib files to a database. For some older utilities (like net-snmp used to do a while back) you really had to integrated them into the code when compiling the program from source!
What you need to understand is that the SNMP SMI model works like a tree. The numbers are nodes in that reverse tree. In order to be able to translate braches to names for your SNMP Manager you need to satisfy the inheritance requirements for each mib file. In almost every mib you will find a text area with the word IMPORTS xxxxx FROM yyyyy

There is described what MIB files you need to have integrated into your SNMP manager in order to be able to use those translated SNMP Variables (OIDs). Some tools on the web (like OID View) will show you that inheritance (as requirements). Start from the MIB file that contains the variables you want translated to words and work your way up to find what other MIB files you need. I used to do it by myself (I have a lot of ease reading MIB files) but you can use a SNMP MIB repository tool like the one I mentioned.
Of course by now you must have changed your esx(i) version or at least I hope you have. Having done that you may have realized that enabling SNMP in your esxi might require some work. At least the polling part (traps may be easier to configure). If you cant find  any documentation on that send me a message.

The reason I took the time to write this is that someone else might find his way here through Google or another engine like I did, looking for support. I may be to late to help you, but others might find my message helpful.

Good luck people!

0 Kudos