< Back
Clear-HPEOSPLog
Post
NAME Clear-HPEOSPLog
SYNOPSIS
The Clear-HPEOSPLog cmdlet clears any logs created by the HPEOSProvisionCmdlets module.
SYNTAX
Clear-HPEOSPLog [[-Last] <UInt32>] [[-Force] <SwitchParameter>] [<CommonParameters>]
DESCRIPTION
The Clear-HPEOSPLog cmdlet clears any logs created by the HPEOSProvisionCmdlets module. You are prompted for
confirmation unless you specify the Force parameter.
PARAMETERS
-Last [<UInt32>]
Specifies the integer as a value. if X value is specified, X number of logs in the descending order of their
age will be cleared (oldest logs will be cleared first). If no parameter is used, all existing logs, including
the current log, will be cleared.
Required? false
Position? 0
Default value 0
Accept pipeline input? True (ByPropertyName, ByValue)
Accept wildcard characters? false
-Force [<SwitchParameter>]
Clears all existing logs without prompting for confirmation. By default, Clear-HPEOSPLog prompts for
confirmation before clearing any logs from the module installation folder.
Required? false
Position? 1
Default value False
Accept pipeline input? false
Accept wildcard characters? false
<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
System.UInt32
OUTPUTS
None
When the cmdlet does not execute correctly, output with the error message is produced. Otherwise, this cmdlet
does not generate any output.
EXAMPLE 1
PS C:\\> Clear-HPEOSPLog
Do you really want to clear all the logs?
[Y] Yes [N] No [S] Suspend
This example clears all the log files in HPEOSProvisionCmdlet installed location after user confirmation.
EXAMPLE 2
C:\\PS> Clear-HPEOSPLog -Last 5
This example clears the old 5 log files in HPEOSProvisionCmdlet installed location.
EXAMPLE 3
C:\\PS> Clear-HPEOSPLog -Force
This example clears all the log files in HPEOSProvisionCmdlet installed location without confirmation prompt.
RELATED LINKS
http://www.hpe.com/servers/powershell
Disable-HPEOSPLog
Enable-HPEOSPLog
SYNOPSIS
The Clear-HPEOSPLog cmdlet clears any logs created by the HPEOSProvisionCmdlets module.
SYNTAX
Clear-HPEOSPLog [[-Last] <UInt32>] [[-Force] <SwitchParameter>] [<CommonParameters>]
DESCRIPTION
The Clear-HPEOSPLog cmdlet clears any logs created by the HPEOSProvisionCmdlets module. You are prompted for
confirmation unless you specify the Force parameter.
PARAMETERS
-Last [<UInt32>]
Specifies the integer as a value. if X value is specified, X number of logs in the descending order of their
age will be cleared (oldest logs will be cleared first). If no parameter is used, all existing logs, including
the current log, will be cleared.
Required? false
Position? 0
Default value 0
Accept pipeline input? True (ByPropertyName, ByValue)
Accept wildcard characters? false
-Force [<SwitchParameter>]
Clears all existing logs without prompting for confirmation. By default, Clear-HPEOSPLog prompts for
confirmation before clearing any logs from the module installation folder.
Required? false
Position? 1
Default value False
Accept pipeline input? false
Accept wildcard characters? false
<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
System.UInt32
OUTPUTS
None
When the cmdlet does not execute correctly, output with the error message is produced. Otherwise, this cmdlet
does not generate any output.
EXAMPLE 1
PS C:\\> Clear-HPEOSPLog
Do you really want to clear all the logs?
[Y] Yes [N] No [S] Suspend
This example clears all the log files in HPEOSProvisionCmdlet installed location after user confirmation.
EXAMPLE 2
C:\\PS> Clear-HPEOSPLog -Last 5
This example clears the old 5 log files in HPEOSProvisionCmdlet installed location.
EXAMPLE 3
C:\\PS> Clear-HPEOSPLog -Force
This example clears all the log files in HPEOSProvisionCmdlet installed location without confirmation prompt.
RELATED LINKS
http://www.hpe.com/servers/powershell
Disable-HPEOSPLog
Enable-HPEOSPLog