Home > vSphere API > A Little Known Secret of vSphere Managed Object Browser

A Little Known Secret of vSphere Managed Object Browser

February 2nd, 2010 Leave a comment Go to comments

secretMost VI SDK developers know Managed Object Browser (MOB), and mostly have used it for better understanding of the SDK, or assisting programming and debugging. In my opinion, it’s a must-have  tool for every vSphere SDK developer.

It’s extremely helpful if you want to figure out the inventory path of certain managed entities. The vSphere Client shows you different paths which don’t work with the SearchIndex and others. Nothing wrong with vSphere Client – it just tries to display information in a way that is easier to understand by the system administrators.

Time to learn how to "Google" and manage your VMware and clouds in a fast and secure


To use the browser, you just enter the following URL to your server:


After entering the user name and password, you see the home of the MOB. You can then click down to different managed objects, and even invoke methods. Check this document in vSphere Client Plug-ins community, in which I described how to use MOB to register a plug-in with “100% less line of code” (Carter’s joke, by the way). Because you have to change XML content, it could be quite error prone. Therefore you wouldn’t want to use it as a norm.

Everything till here is common knowledge. If you have ever closely read the HTML source of the MOB pages, you can find a section as follows:

<xml id="objData">
  <capability xsi:type="Capability">
  <content xsi:type="ServiceContent">
    <rootFolder type="Folder">ha-folder-root</rootFolder>
    <propertyCollector type="PropertyCollector">ha-property-collector</propertyCollector>
    <viewManager type="ViewManager">ViewManager</viewManager>
      <name>VMware ESX Server</name>
      <fullName>VMware ESX Server 3.5.0 build-62355</fullName>
      <vendor>VMware, Inc.</vendor>
    <setting type="OptionManager">HostAgentSettings</setting>
    <userDirectory type="UserDirectory">ha-user-directory</userDirectory>
    <sessionManager type="SessionManager">ha-sessionmgr</sessionManager>
    <authorizationManager type="AuthorizationManager">ha-authmgr</authorizationManager>
    <perfManager type="PerformanceManager">ha-perfmgr</perfManager>
    <eventManager type="EventManager">ha-eventmgr</eventManager>
    <taskManager type="TaskManager">ha-taskmgr</taskManager>
    <accountManager type="HostLocalAccountManager">ha-localacctmgr</accountManager>
    <diagnosticManager type="DiagnosticManager">ha-diagnosticmgr</diagnosticManager>
    <licenseManager type="LicenseManager">ha-license-manager</licenseManager>
    <searchIndex type="SearchIndex">ha-searchindex</searchIndex>
    <fileManager type="FileManager">ha-nfc-file-manager</fileManager>
    <virtualDiskManager type="VirtualDiskManager">ha-vdiskmanager</virtualDiskManager>
  <serverClock xsi:type="xsd:dateTime">2010-02-02T18:20:47.427266Z</serverClock>

 If you are familiar with vSphere SDK, you know this XML holds all the property values of the ServiceInstance managed object. It’s not only for this starting managed object, but for every managed object along your clicking!

Remember, when your browser can get the information, you can write programs to do it as well. This actually led me to write the Client REST API, which released in VI Java 2.0. This is a very tiny yet powerful set of APIs which allow you to do everything, at least in theory, VI SDK can do for you.

It’s interesting to note that, when I talked to our engineer who wrote this great tool, he mentioned to me there was a secret in the MOB pages. By that time, I already shipped the API. There is little secret in IT today :-).

I will blog on the Client REST API later. Stay tuned by subscribe the feed.

Categories: vSphere API Tags: , , ,
  1. Carter Shanklin
    February 3rd, 2010 at 01:36 | #1

    The MOB can also access internal-only objects such as VimCLIInfo, check out this screenshot for some clues http://twitpic.com/v11ks

  2. June 4th, 2013 at 01:00 | #2

    Hi Gurus’
    My question is regarding the VCenter MOb. Is it possible to connect VCenter MOB using HTTP connection. As by default it connects using HTTPS Connection.

    Please suggest….


  3. June 4th, 2013 at 11:32 | #3

    Hi Pravin,

    vCenter MOB uses Tomcat as Web server. I think it has something like the following in the server.xml

    To use HTTP, you want to remove it and add port 80 connector.
    Good luck!


  4. December 20th, 2013 at 16:41 | #4

    Thank you, this is a subject which is dear to my heart.
    Where are yor contact information though? My name’s Meghan Fredricksen and I’d love
    to discuss this in depth.

  5. July 14th, 2015 at 03:42 | #5

    FYI the login to MOB needs to be with credentials of what you login to the Vcenter with. If this is via domain authentication the username is case sensitive so try DOMAIN\USER domain\USER domain\user with the correct password!

  6. July 19th, 2015 at 10:45 | #6

    Thanks Paris!

  1. June 14th, 2010 at 02:27 | #1
  2. August 12th, 2010 at 23:59 | #2
  3. May 4th, 2011 at 01:15 | #3
  4. November 30th, 2011 at 01:00 | #4
  5. August 12th, 2013 at 12:33 | #5
  6. December 12th, 2013 at 01:50 | #6
  7. May 16th, 2015 at 07:44 | #7
  8. May 4th, 2016 at 15:28 | #8
  9. July 10th, 2016 at 08:45 | #9