Start a Conversation

Unsolved

This post is more than 5 years old

626366

November 29th, 2011 10:00

How to configure ESXi for Discovery and Inventory

A useful tutorial below on how to setup ESXi.  The Q1/2012 release will have it in the tutorial section.  But here is the raw text below.

---

Configuring ESXi 4.x and 5.0 for Discovery and Inventory

Overview for Configuring ESXi 4.x and 5.0 for Discovery and Inventory
This tutorial will guide you through the steps required to setup ESXi 4.x and 5.0 for discovery and inventory.

You will need to complete the following steps for all ESXi hosts:

1. Download and install the latest Dell OpenManage Server Administrator (OMSA) VIB.
2. Ensure the CIM OEM Provider is enabled.
3. Configure SNMP traps.

Note: To ensure proper device classification and inventory, make sure to create a unique include range with the WS-Man protocol enabled and the SNMP protocol disabled for discovering ESXi servers.

You will need to download and install the latest version of the vSphere CLI to complete one or more of the steps in this guide. This can be downloaded from http://www.vmware.com

Download the Dell OMSA VIB for ESXi
The Dell OMSA VIB is the installation package for Dell OpenManage Server Administrator (OMSA) in ESXi. OMSA provides the interface to manage the inventory and generate related SNMP traps from the ESXi hosts.

1. Go to support.dell.com and click ‘Drivers and Downloads’.
2. Enter your Service Tag or product model.
3. Select the ESXi version as the operating system, and then click ‘Systems Management’.
4. Click ‘OpenManage Offline Bundle and VIB for ESXi’ to download and install OpenManage Server Administrator.

NOTE: For ESXi 5.0, OMSA VIB 6.5 A02 or greater is required.

For full documentation on using Dell OMSA with ESXi, go to:
http://support.dell.com/support/systemsinfo/documentation.aspx
Then navigate to: Software | Virtualization Solutions | VMware Software

Install the Dell OMSA VIB for ESXi
Using the vSphere CLI, install the Dell OMSA VIB using the appropriate command depending on the version of ESXi.
For ESXi 4.x:
vihostupdate.pl --server --username root --password -i -b

For ESXi 5.0:
esxcli --server software vib install -d


Ensure the CIM OEM Provider is Enabled
The CIM OEM provider allows the Server Administrator Web Server to communicate with the ESXi system, which is necessary for management of the device.

Since CIM OEM providers are disabled by default on some ESXi versions, you should ensure this is enabled.

To enable CIM OEM providers on the ESXi system using vSphere Client:
1. Log on to the ESXi host system using vSphere Client.
2. Click the ‘Configuration’ tab.
3. Under the ‘Software’ section on the left side, click ‘Advanced Settings’.
4. In the ‘Advanced Settings’ dialog box, click UserVars on the left pane.
5. Change the value of the ‘CIMOEMProvidersEnabled’ or ‘CIMoemProviderEnabled’ field to 1.
6. Click 'OK'.
7. For the changes to take effect without restarting the system, use the ‘Restart Management Agents’ option in the Direct Console User Interface (DCUI) on the local console of the ESXi system.
If the changes are not effective and if you cannot connect to the VMware ESXi host using Server Administrator, restart the VMware ESXi host system.

Configuring SNMP Traps for ESX/ESXi 4.x and 5.0
To generate virtual machine and environmental traps from ESX/ESXi hosts, you must configure and enable the embedded SNMP agent.

Note: Make sure the SNMP protocol is open in the ESX firewall.

To enable the embedded SNMP Agent and configure SNMP traps using the vSphere CLI:
1. Run this command to see if SNMP is enabled:
vicfg-snmp --show

2. Specify the communities and trap targets with this command:
vicfg-snmp.pl --server --username --password -t @ /

For example:
vicfg-snmp.pl --server host.dell.com --username root --password password -t target.dell.com@162/public

Note: In ESX 4.x, you may need to use the -c flag.

3. To enable the SNMP service, run this command:
vicfg-snmp.pl --server --username --password --enable

4. To verify the SNMP settings, run this command:
vicfg-snmp.pl --server --username --password --show

5. After you have discovered the ESX/ESXi host, you can send a test trap to verify that the agent is configured correctly with this command:
vicfg-snmp.pl --server --username --password --test

Information referenced from VMware KB article 1008065.


2 Intern

 • 

2.8K Posts

December 16th, 2011 17:00

I'm not sitting in front of a console now.  But I think there is a button to export one of the log files.  If you go to the Tools menu, there are a few icons on the right side.  I wonder if that log file will reveal anything.  Rob

December 16th, 2011 17:00

I can try that on Monday for you, Rob. Thank you for your help.

December 20th, 2011 06:00

After deleting the discovery, recreating it (using only WS-MAN and having SNMP disabled), I get the same results.  I've exported t he log file OME_discovery_debug.log, but nothing about the discovery is detailed.  Is there another log file that I can parse through to see what is going on and where it may be failing?

10 Posts

December 22nd, 2011 06:00

@NonTimeboMala: From your previous post - "... WS-MAN enabled with a username and password, unchecked secure mode, with port 443, and nothing is getting discovered. "

When you check Secure Mode, port 443 should be set automatically.Per Rob C's post earlier, ESXi Discovery and Inventory requires "Secure Mode" and "Trusted Site" to both be checked. Try checking those options and initiate a Discovery/Inventory. If your troubleshooter saw successful results for WSMAN this should work for you, as it tests on port 443 by default.

10 Posts

December 22nd, 2011 07:00

Edited post to reduce confusion. Sorry first post on this forum.

January 6th, 2012 06:00

Sorry for the late reply, vacation and all ;)  

Jamin, I took your suggestion and VOILA! It worked!  Thanks for the tip!  Now time to update the documentation!  

2 Intern

 • 

2.8K Posts

March 15th, 2012 09:00

Additional information on setting up ESXi 5.0 at this link:

en.community.dell.com/.../20071085.aspx

2 Intern

 • 

2.8K Posts

September 20th, 2012 12:00

UPDATE !!!

Hey OME team,

We've refreshed the ESXi setup and config whitepaper.  Check it out.

Thanks!

Rob

en.community.dell.com/.../20071085.aspx

1 Message

November 15th, 2012 07:00

Will this process work for the free versions of ESXi (4.0, 4.1, 5.0, 5.1)?  It is my understanding that CIM is supported on free ESXi, but SNMP is not.

Thanks,

Dave Howe

2 Intern

 • 

2.8K Posts

November 15th, 2012 11:00

I think the free version does not have SNMP alerts and is pretty limited in terms of monitoring and management.

Thanks,

Rob

No Events found!

Top