powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Get-LogType



NAME
Get-LogType

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

SYNTAX
Get-LogType [[-VMHost] ] [-Server ] []


DESCRIPTION
Retrieves information about the log types available on a virtual machine host. If no virtual machine host is specif
ied, the cmdlet retrieves the log types for the default vSphere server. To specify a server different from the def
ault one, use the -Server parameter.


PARAMETERS
-VMHost
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.

Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? true

-Server
Specify the vSphere servers on which you want to run the cmdlet. If no value is given to this parameter, the co
mmand runs on the default servers. For more information about default servers, see the description of Connect-V
IServer.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? true


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
LogDescriptor


NOTES




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

C:\PS>$host = Get-VMHost -State "Connected"

Get-Logtype -VMHost $host


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






RELATED LINKS
Online version: http://www.vmware.com/support/developer/PowerCLI/PowerCLI501/html/Get-LogType.html
Get-Log