Managed Object - DiagnosticManager(vim.DiagnosticManager)

Property of
ServiceContent
See also
DiagnosticManagerBundleInfo, DiagnosticManagerLogDescriptor, DiagnosticManagerLogHeader, HostSystem
Since
2.0


Managed Object Description

Provides an interface for obtaining diagnostic information on a host (e.g. generating and retrieving support logs on the host, reading audit records). For VirtualCenter, this includes the log files for the server daemon. For an ESX Server host, this includes detailed log files for the VMkernel.

Properties

Name Type Description
None

Methods

Methods defined in this Managed Object
BrowseDiagnosticLog, GenerateLogBundles_Task, QueryDescriptions

BrowseDiagnosticLog(browse)

Returns part of a log file. Log entries are always returned chronologically, typically with the newest event last.
Required Privileges
Global.Diagnostics

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the DiagnosticManager used to make the method call.
host* PManagedObjectReference
to a HostSystem

Specifies the host. If not specified, then it defaults to the default server. For example, if called on VirtualCenter, then the value defaults to VirtualCenter logs.

Since 2.0
key Pxsd:string

A string key specifying the key for the log file to browse. Keys can be obtained using the queryDescriptions method.

Since 2.0
start* Pxsd:int

The line number for the first entry to be returned. If the parameter is not specified, then the operation returns with lines starting from the top of the log.

Since 2.0
lines* Pxsd:int

The number of lines to return. If not specified, then all lines are returned from the start value to the end of the file.

Since 2.0
*Need not be set PRequired privilege - see tooltip for details

Return Value

Type Description
DiagnosticManagerLogHeaderA LogHeader that includes the log lines. Sometimes fewer log lines are returned than were requested. For example, fewer lines are returned than expected if the client requests lines that do not exist or if the server limits the number of lines that it returns. If zero lines are returned, then the end of the log file may have been reached.

Faults

Type Description
CannotAccessFileThrown if the key refers to a file that cannot be accessed at the present time.
RuntimeFaultThrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition



GenerateLogBundles_Task(generateLogBundles)

Deprecated. - since version 5.0 M/N it is recommended to use the CGI interface for the host bundles, use the address instead: https:<>/cgi-bin/vm-support.cgi for the VC bundles, use https:<>/appliance/support-bundle

The caller can download the bundles using an HTTP GET operation for each returned URL. Bundles are usually available for at least 24 hours, but the caller should not assume that the returned URLs are valid indefinitely. Servers often automatically delete generated diagnostic bundles after some given period of time.

Instructs the server to generate diagnostic bundles. A diagnostic bundle includes log files and other configuration information that can be used to investigate potential server issues. Virtual machine and guest operation system state is excluded from diagnostic bundles.

Required Privileges
Global.Diagnostics

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the DiagnosticManager used to make the method call.
includeDefault Pxsd:boolean

Specifies if the bundle should include the default server. If called on a VirtualCenter server, then this means the VirtualCenter diagnostic files. If called directly on a host, then includeDefault must be set to true.

Since 2.0
host* PManagedObjectReference[]
to a HostSystem[]

Lists hosts that are included. This is only used when called on VirtualCenter. If called directly on a host, then this parameter must be empty.

Since 2.0
*Need not be set PRequired privilege - see tooltip for details

Return Value

Type Description
ManagedObjectReference
to a Task
This method returns a Task object with which to monitor the operation. Upon success, the result property in the Task contains a list of DiagnosticManagerBundleInfo objects for each diagnostic bundle that has been generated.

Faults

Type Description
LogBundlingFailedThrown if generation of support bundle failed.
RuntimeFaultThrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.
TaskInProgressThrown if there is a pending request to generate a support bundle.

Events

Type
None



QueryDescriptions(queryDescriptions)

Returns a list of diagnostic files for a given system.
Required Privileges
Global.Diagnostics

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the DiagnosticManager used to make the method call.
host* PManagedObjectReference
to a HostSystem

Specifies the host. If not specified, then it defaults to the server itself. For example, if called on VirtualCenter, then the value defaults to VirtualCenter logs. When called on an ESX server host, the host should not be specified.

Since 2.0
*Need not be set P Required privilege: host

Return Value

Type Description
DiagnosticManagerLogDescriptor[]

Faults

Type Description
RuntimeFaultThrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition