Using the MOB to Explore
the DiagnosticManager
The Managed Object
Browser (MOB) is a graphical interface that allows you to navigate the objects
on a server and to invoke methods. You can access the
DiagnosticManager
using the MOB.
The following steps show how to explore
DiagnosticManager
.
- Start the mob by typing the MOB URL (https://hostname.yourcompany.com/mob) into a Web browser.
- In theServiceContentdata object, click the link (ha-diagnosticmanagerorDiagMgr) in theValuecolumn for thediagnosticManagerproperty, to navigate to theDiagnosticManagerfor the system.
- For ESXi,ha-diagnosticsmanageris the managed object ID.
- For vCenter Server,DiagMgris typically the managed object ID.
- Click the link to the reference to display the managed object reference to theDiagnosticManagerin the MOB.DiagnosticManagerprovides three operations that allow you to obtain information about the descriptions currently available in the log file and log file content.BecauseDiagnosticManagercan track multiple ESXi systems, you can use theQueryDescriptionsoperation to return the names of keys used for all hosts. From this array, select the key for the host from which you want to obtain the log file.
- OnQueryDescriptions, click theInvoke Methodlink.The vCenter Server system returns the contents of the log file for the selected host as a string array for thelineTextproperty ofDiagnosticManagerLogHeader.
The string array returned through the MOB in
this way is the content of the log file. The content contained in the log file
is the same content that is available through the following other mechanisms:
- Displayed in the vSphere Client
- Included in a diagnostic bundle created through theDiagnosticManager.GenerateLogBundles_Taskmethod.
- Available in thehostd.logfile
- Returned to a client application that you write
For more information about
using the DiagnosticManager, see
Managed Object Browser.