Get-LXCOServiceData
This cmdlet downloads the XClarity Orchestrator service-data file tar.gz archive to the local system.
Syntax
Get-LXCOServiceData [-Connection LXCOConnection]
-Destination String
[-Overwrite]
[CommonParameter]
Parameters
- -Connection LXCOConnection
- Specifies the connection to the Lenovo XClarity Orchestrator server. If no connection is specified, the result from the last Connect-LXCO cmdlet is used.
- -Destination String
Specifies the directory and file name where the file is to be saved on the local system.
- If you do not specify a file name (in other words, if the destination ends in a back slash "\"), the default file name, provided by the orchestrator server, LXCO_Service_Data_{date}_{time}.tar.gz is used.
- If the directory does not exist, it is automatically created.
- -Overwrite
When specified, if the file already exists in the specified directory, the file is overwritten.
If not specified, and the file already exists in the specified directory, the file is not overwritten, and the System.IO.IOException: The {full_servicd_data_file_path} file already exists exception is thrown.
- CommonParameters
- This cmdlet supports the following common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -WarningAction, -WarningVariable, -OutBuffer, -PipelineVariable, -OutVariable. For detailed information about each common parameter, see the Microsoft PowerShell Common Parameters webpage.
Results
- System.String
This cmdlet downloads the XClarity Orchestrator service-data file to the specified directory on the local system and returns a System.String object that contains the full path of the saved file.
- Lenovo.XClarityOrchestrator.PowerShell.Data.RequestStatusMessage
If an error occurred, this cmdlet returns a RequestStatusMessage object that contains information about the reason of the failure.
Examples
$cred = Get-Credential
Connect-LXCO -HostUri "192.0.2.0" -Credential $Cred -SkipCertificateCheck
$(Get-LXCOServiceData -Destination C:\LXCOServiceData\ffdc.tar.gz -Overwrite)
Disconnect-LXCO
$cred = Get-Credential
Connect-LXCO -HostUri "192.0.2.0" -Credential $Cred -SkipCertificateCheck
$(Get-LXCOServiceData -Destination C:\LXCOServiceData\)
Disconnect-LXCO