Name

Get-JS7JOCLog

SYNOPSIS

Return the JOC Cockpit log

SYNTAX

Get-JS7JOCLog [[-Filename] <String>] [<CommonParameters>]

DESCRIPTION

Returns the latest JOC Cockpit log or the specified log file. Should the JOC Cockpit log have rotated
then previous log files can be specified using the -Filename parameter. The list of JOC Cockpit log file names is available from the Get-JS7JOCLogFilename cmdlet.

The following REST Web Service API resources are used:

* /joc/log

PARAMETERS

Filename

-Filename <String>
Optionally specifies a log file name. Without use of this parameter the most recent JOC Cockpit log is returned.
A file name can be specified as returned by the list of available JOC Cockpit logs with the Get-JS7JOCLogFilename cmdlet.

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

about_JS7

EXAMPLES

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

PS > Get-JS7JOCLog | Out-File /tmp/joc.log

Returns the output of the most recent JOC Cockpit log and writes it to a file.

-------------------------- EXAMPLE 2 --------------------------

PS > $logs = Get-JS7JOCLogFilename | Get-JS7JOCLog

Returns the output of any available JOC Cockpit log files to an array.

  • No labels