vSphere PowerCLI Reference

Get-LogType

Synopsis

Retrieves information about the log types available on a virtual machine host.

Syntax

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

Related Commands

Online version
Get-Log

Detailed Description

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 vSphere server. To specify a server different from the default one, use the -Server parameter.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
VMHostVMHost[]Specify the hosts you want to search for log types. If no value is given to this parameter, the command search for logs only on the default vSphere server.falsetrue (ByValue)
ServerVIServer[]Specify the vSphere servers on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.falsefalse

Return Type

LogDescriptor

Notes

Examples

-------------- Example 1 --------------

$host = Get-VMHost -State "Connected"

Get-Logtype -VMHost $host

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


Copyright © 1998 - 2012 VMware, Inc. All rights reserved.