Get HPOVCommandTrace - HewlettPackard/POSH-HPEOneView GitHub Wiki

HPE OneView 4.10 Library

Get-HPOVCommandTrace

Start an HPOV Library Verbose Trace.

SYNTAX

Get-HPOVCommandTrace [-ScriptBlock] <ScriptBlock> [-Location] <String> [<CommonParameters>]

Detailed Description

This Cmdlet will assist the user in setting up the PowerShell environment to generate and capture Verbose output from HPOV Library Cmdlets. Once this Cmdlet has been executed, the prior HPOV Cmdlets can be executed, without the need of using the `-Cerbose` switch.

Cmdlet output will be captured using the built-in Microsoft PowerShell Start-Transcript provider. A transcript trace file will be saved in either the current working directory, or specified using the -Location parameter.

Please know that this Cmdlet is currently not supported in the Windows PowerShell ISE, unless using PowerShell v5 or newer.

Parameters

-Location <String>

Specify the directory where the output file will be created. A file with the following format will be created:

"{Date}_HPOV_transcript.log", where date is derived from `Get-Date -UFormat %y%m%d%H%M`

Default Value: (PWD).Path

Aliases None
Required? true
Position? 1
Default value (pwd).path
Accept pipeline input? false
Accept wildcard characters?    False

-ScriptBlock <ScriptBlock>

The command within a ScriptBlock to execute. The Cmdlet will add the -Verbose switch end of the command.

Aliases Command
Required? True
Position? 0
Default value
Accept pipeline input? true (ByValue)
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 (http://go.microsoft.com/fwlink/?LinkID=113216)

Input Types

System.Management.Automation.ScriptBlock

ScriptBlock of the command or commands to generate verbose output for.

Return Values

System.IO.FileInfo

FileInfo object where the "{Date}_HPOV_transcript.log" file is generated.

Examples

 -------------------------- EXAMPLE 1 --------------------------

Get-HPOVCommandTrace C: emp

Start a new library trace, which will create a file in the C: emp directory.

Related Links


Top

HPE OneView 4.00 Library

Get-HPOVCommandTrace

Start an HPOV Library Verbose Trace.

SYNTAX

Get-HPOVCommandTrace [-ScriptBlock] <ScriptBlock> [-Location] <String> [<CommonParameters>]

Detailed Description

This Cmdlet will assist the user in setting up the PowerShell environment to generate and capture Verbose output from HPOV Library Cmdlets. Once this Cmdlet has been executed, the prior HPOV Cmdlets can be executed, without the need of using the `-Cerbose` switch.

Cmdlet output will be captured using the built-in Microsoft PowerShell Start-Transcript provider. A transcript trace file will be saved in either the current working directory, or specified using the -Location parameter.

Please know that this Cmdlet is currently not supported in the Windows PowerShell ISE, unless using PowerShell v5 or newer.

Parameters

-Location <String>

Specify the directory where the output file will be created. A file with the following format will be created:

'{Date}_HPOV_transcript.log', where date is derived from `Get-Date -UFormat %y%m%d%H%M`

Default Value: (PWD).Path

Aliases None
Required? true
Position? 1
Default value (pwd).path
Accept pipeline input? false
Accept wildcard characters?    False

-ScriptBlock <ScriptBlock>

The command within a ScriptBlock to execute. The Cmdlet will add the -Verbose switch end of the command.

Aliases Command
Required? True
Position? 0
Default value
Accept pipeline input? true (ByValue)
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 (http://go.microsoft.com/fwlink/?LinkID=113216)

Input Types

System.Management.Automation.ScriptBlock

ScriptBlock of the command or commands to generate verbose output for.

Return Values

System.IO.FileInfo

FileInfo object where the '{Date}_HPOV_transcript.log' file is generated.

Examples

 -------------------------- EXAMPLE 1 --------------------------

Get-HPOVCommandTrace C:\Temp

Start a new library trace, which will create a file in the C:\Temp directory.

Related Links


Top
⚠️ **GitHub.com Fallback** ⚠️