< Back

Get-LogType

Sun Jan 19, 2020 6:51 pm

NAME Get-LogType



SYNOPSIS

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





SYNTAX

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





DESCRIPTION

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.





PARAMETERS

-Server <VIServer[]>

Specifies the vCenter Server systems on which you want to run the cmdlet. If no 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.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? true



-VMHost <VMHost[]>

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.



Required? false

Position? 1

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? true



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

Zero or more LogDescriptor objects







NOTES









-------------------------- 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 LINKS

Online Version: https://code.vmware.com/doc/preview?id= ... gType.html

Get-Log