Import-LXCOFirmwarePackage
Use this cmdlet to import one or more update packages.
Each update package contains a set of four files: metadata (.xml), payload (.tar.gz, .zip, .tgz, .bin, .tar, or .uxz), readme (.txt) and changelog (.chg).
Note
You cannot pipe objects to this cmdlet.
Syntax
Import-LXCOFirmwarePackage [-Connection LXCOConnection]
-Files String[]
[CommonParameter]
Import-LXCOFirmwarePackage [-Connection LXCOConnection]
-FixIDs String[]
-Folder String
[CommonParameter]
Parameters
- -Connection LXCAConnection
- Specifies the connection to the Lenovo XClarity Orchestrator server. If no connection is specified, the result from the last Connect-LXCO cmdlet is used.
- -Files String[]
- Specifies a list of files that represents packages to upload.
- -FixIDs String[]
- Specifies a list of patterns to match update packages that are stored in folder.
- -Folder String
- Specifies the location where the update packages are to be stored.
- 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
If request succeed, this cmdlet returns a LXCOJobFullData object, which contains details about the status of the operation that is associated with this request.
- 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
The following example uploads a firmware package using a list of files.
$cred = Get-Credential
Connect-LXCO -HostUri 192.0.2.0 -Credential $cred -SkipCertificateCheck
$files = @(
"D:\FirmwareRepository\oem_fw_dsa_dsaoa6s-10.1_anyos_32-64.txt",
"D:\FirmwareRepository\oem_fw_dsa_dsaoa6s-10.1_anyos_32-64.uxz",
"D:\FirmwareRepository\oem_fw_dsa_dsaoa6s-10.1_anyos_32-64.xml1",
"D:\FirmwareRepository\oem_fw_dsa_dsaoa6s-10.1_anyos_anycpu.chg"
)
$result = Import-LXCOFirmwarePackage -Files $files
$result
Disconnect-LXCO
The following example uploads two firmware packages from a folder.
$cred = Get-Credential
Connect-LXCO -HostUri 192.0.2.0 -Credential $cred -SkipCertificateCheck
$fixIDs_two = @(
"lnvgy_fw_xcc_tei3c4m-5.00_anyos_noarch",
"lnvgy_utl_uxsp_elsp17p-1.00_windows_32-64"
)
$result = Import-LXCOFirmwarePackage -Folder D:\FirmwareRepository\ -FixIDs $fixIDs
$result
Disconnect-LXCO
Give feedback