VMware
10 Replies Last post: Feb 10, 2009 10:50 AM by RudyPerez  

SNMP in ESX 3.5 / VC 2.5 posted: Jan 3, 2008 10:28 AM

Click to view milson's profile Novice 28 posts since
Sep 28, 2007

I've found some issues/changes with SNMP in the new versions, and haven't seen much posted on it yet so here goes some info and a question.

Running Dell IT Assistant to receive the traps, FYI. Previously was running ESX 3.0.2 / VC 2.0.2 with everything working.

-Traps sent by VirtualCenter still work fine, but there is a seemingly undocumented OID prefix change.
Old: .1.3.6.1.4.1.6876.50 (etc)
New: .1.3.6.1.4.1.6876.4.3 (etc)
This change is also not reflected in the MIBs that ship with VirtualCenter (they appear the same and reference the .50 prefix above). I manually entered the new definitions in my SNMP receiver to resolve.

-SNMP on ESX hosts has changed a bit, and at the moment isn't working in my scenario.
As per the documentation, there is now an add'l SNMP engine that can be enabled via the RemoteCLI, designed for 3i use (although also configurable on 3.5 hosts).

For 3.5 hosts, the documentation indicates you can choose to use the Net-SNMP agent that ships with the service console as per usual. Since I use the supported Dell OMI agent (Linux/ESX version) on my 3.5 hosts, I opted to stick with that agent - and have verified all steps were followed, and configurations did not change during the upgrade.

Current behavior is that no traps whatsoever are sent for 'VMWare' events. Note that traps sent by the Dell agent are delivered normally, which helps indicate correct Linux-level SNMP configuration is in place. Again I have verified the VMWare specific traps are not disabled and configs match both the documentation, and my other (working) 3.0.2 host.

So, I'm not sure if this is an issue with the interaction between Dell's agent and ESX, or just a bug in ESX 3.5 when not using the 'new' SNMP agent, or something I haven't thought of. At this point, I have not tested the Remote CLI configured option, since it wants to use the same default port as the Net-SNMP agent and cannot bind. I could change the default port, but prefer to only run one SNMP agent and avoid further firewall configuration.

Anyone noticed the same thing? Ideas? Am I the only one using the ESX specific VMWare traps?

Cheers,
Mike


Re: SNMP in ESX 3.5 / VC 2.5

1. Jan 9, 2008 9:49 AM in response to: milson
Click to view balacs's profile Hot Shot 213 posts since
Sep 6, 2005
This document might help: http://www.dell.com/downloads/global/solutions/installing_dell_openmanage_on_esx.pdf

milson wrote:

-SNMP on ESX hosts has changed a bit, and at the moment isn't working in my scenario.
As per the documentation, there is now an add'l SNMP engine that can be enabled via the RemoteCLI, designed for 3i use (although also configurable on 3.5 hosts).


Yes, you have to use the remote CLI. Copy and paste from the document:

1. Download VMware remote command line interface tool (RCLI) from VMware website at http://www.vmware.com/download/vi/drivers_tools.html. There are options to download either a Virtual Appliance, RCLI tools for Linux or RCLI tools for Windows.

2. Run the following command to configure the SNMP from RCLI: vicfg-snmp --server <ESX_IP_addr> --username root --password <password> -c <community name> -p 5567 -t <ITA_IP_Address>@162/<community name>
NOTE: Multiple ITA IP Addresses can be mentioned by putting a comma ( , ) in between the target address i.e. ITA IP address

3. Run the following command to enable SNMP for ESX: vicfg-snmp --server <ESX_IP_addr> --username root --password <password> -E

4. Run the following command to show the configuration:
vicfg-snmp --server <ESX_IP_addr> --username root --password <password> -s

5. Run the following command to send a test trap to ITA:
vicfg-snmp --server <ESX_IP_addr> --username root --password <password> -T NOTE: Make sure that the SNMP ports kept open before sending traps to the management station.

6. For ESX Server 3.5 traps to be properly categorized in Dell IT Assistant 8.1, perform the following:
a. Open IT Assistant 8.1 Console
b. Select AlertsCategories/SourcesVirtual Machine
c. Right click Virtual Machine and select New SNMP Alert Source
d. Duplicate all existing SNMP Alert Source entries with the same values as the existing entries but modify the Enterprise OID to .1.3.6.1.4.1.6876.4.1


Bala,
Dell Inc.

Re: SNMP in ESX 3.5 / VC 2.5

3. Jan 16, 2008 12:25 PM in response to: milson
Click to view bflynn0's profile Expert 319 posts since
Jan 29, 2006

Just an FYI, based on testing I've done so far and looking at the MIBS from VMware for 3.5 (located in /usr/lib/vmware/snmp/mibs on an ESX 3.5 host) It looks like traps from VirtualCenter 2.5 have an OID of 1.3.6.1.4.1.6876.4.3 while Traps from ESX directly have an OID of 1.3.6.1.4.1.6876.4.1 and Embedded ESX 3i will most likely have an OID of 1.3.6.1.2.1.6786.4.2 if the MIBs are accurate.

Note, while running some tests on a Dell 2950 with ESX 3i Installable running a hardware trap (Power Supply redundancy lost) was received with an OID 1.3.6.1.4.1.6876.4.1 6 301 so 3i Installable falls under the "ESX" OID.

From VMWARE-PRODUCTS-MIB:

    • 1.3.6.1.4.1.6876.4.1
vmwESX OBJECT IDENTIFIER ::= { vmwProductSpecific 1 }

    • 1.3.6.1.2.1.6786.4.2
vmwEmbeddedESX OBJECT IDENTIFIER ::= { vmwProductSpecific 2 }

    • 1.3.6.1.4.1.6876.4.3
vmwVC OBJECT IDENTIFIER ::= { vmwProductSpecific 3 }

Re: SNMP in ESX 3.5 / VC 2.5

5. Jan 16, 2008 12:51 PM in response to: milson
Click to view bflynn0's profile Expert 319 posts since
Jan 29, 2006

3i actually includes CIM, so it can monitor the hardware since there's no COS to install agents into. It's enabled by default so when you connect to the 3i server via VC or directly in VIC under the Configuration tab you can see the hardware health (see the attached JPG). Configuring and enabling SNMP via the vicfg-snmp remote command (e.g. *vicfg-snmp --server <host> --username root -c <CommunityString> -E -t <TrapDestination>/<String>*) will allow 3i to automatically start sending SNMP traps for changes in hardware health status - there's nothing more to configure on the ESX side.
Attachments:

Re: SNMP in ESX 3.5 / VC 2.5

6. Apr 28, 2008 11:12 AM in response to: bflynn0
Click to view RichZ's profile Lurker 3 posts since
Apr 22, 2008

I have a HP DL380 G5 and it shows Processors, Memory, Temperature and Power but no Disk or Fans. Any idea why that would be? Also the system does not seem to generate a trap messsgae when I pull the plug on on one of the power supplies. I even tried Update 1 but it did not make any difference.


"Failed : fault.RestrictedVersion.summary"

7. Jun 11, 2008 11:29 AM in response to: balacs
Click to view sammyc53's profile Enthusiast 38 posts since
Jul 28, 2006

When trying to set the string as per these instructions, I get: "Failed : fault.RestrictedVersion.summary"

I have a Dell / ESXi. Using the RCLI Virt. Appl.


I tried a bunch of different strings. Same result.

Any word on why this is? Is there another way to enable SNMP?

Re: "Failed : fault.RestrictedVersion.summary"

8. Jan 27, 2009 11:40 AM in response to: sammyc53
Click to view mbenedicto's profile Lurker 1 posts since
Jan 27, 2009
ESXi dont have SNMP, just for ESX.

Att
Marcos de Benedicto
Internet Group do Brasil

Re: "Failed : fault.RestrictedVersion.summary"

9. Feb 3, 2009 12:11 PM in response to: mbenedicto
Click to view jgonzaleshou's profile Enthusiast 68 posts since
Oct 27, 2004
That is incorrect Marcos.

ESXi does support SNMP but it is disabled by default.

See page 9 of the following document link for more information:

http://www.vmware.com/files/pdf/vmware_esxi_management_wp.pdf

Re: "Failed : fault.RestrictedVersion.summary"

10. Feb 10, 2009 10:50 AM in response to: jgonzaleshou
Click to view RudyPerez's profile Lurker 1 posts since
Feb 10, 2009
hi,

I'm new in the VMworld of SNMP, and i'm trying to installed or enabled... this is the error that i have while sending the test trap.

C:\Program Files\VMware\VMware VI Remote CLI\bin>perl vicfg-snmp.pl --server 140.1.27.6 --username root --password ******* -T

Sending test nofication(trap) to all configured targets...
Failed : A general system error occurred: Operation not permitted

can someone help me?

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities