Get-LogType Command | Vmware PowerCLI Reference

Get-LogType

This cmdlet retrieves information about the log types available on a virtual machine host. If no virtual machine host is specified, the cmdlet retrieves the log types for the default vCenter Server system. To specify a server different from the default one, use the Server parameter.

Syntax

Get-LogType
[-ProgressAction < ActionPreference > ]
[-Server < VIServer[] > ]
[-VMHost < VMHost[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
optional ProgressAction ActionPreference named
optional Server VIServer[] named
  • wildcards
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.
optional VMHost VMHost[] named
  • pipeline
  • wildcards
Specifies the hosts you want to search for log types. If no value is given to this parameter, the command searches for logs only on the default vCenter Server system.

Output

VMware.VimAutomation.ViCore.Types.V1.LogDescriptor

Examples

Example 1

$vmhost = Get-VMHost -State "Connected"

Get-Logtype -VMHost $vmhost

Gets information about the available logs on the virtual machine hosts whose state is Connected.

Related Commands

Log

This cmdlet retrieves entries from vSphere logs.

LogType

This cmdlet retrieves information about the log types available on a virtual machine host.