Import-LXCOFirmwarePackage
Use this cmdlet to import one or more update packages. For ThinkSystem V3 servers, you can import only one update package at a time.
For ThinkSystem V3 servers, import the single update package (*.zip). This zip file contains the payload, metadata files (several *.json files), change log file (*.chg) and readme file (*.txt).
For ThinkEdge Client devices, import the payload (Windows .exe). The readme (.txt) is optional. Note that only the BIOS flash utility package for Windows update is currently supported.
For XClarity Management Hub, andXClarity Management Hub 2.0, import the single update-package file (.tgz). This file contains the payload, metadata, change history, and readme files.
For all other resources (including XClarity Administrator, ThinkEdge servers, ThinkSystem V1 and V2, and legacy devices), import the payload (.zip, .uxz, .tar.gz, .tar, .bin), metadata (.xml), change log (.chg) and readme (.txt).
Syntax
Import-LXCOFirmwarePackage [-Connection LXCOConnection]
-Files String[]
[CommonParameter]
Import-LXCOFirmwarePackage [-Connection LXCOConnection]
-PayloadFiles String[]
[CommonParameter]
Import-LXCOFirmwarePackage [-Connection LXCOConnection]
-FixIDs String[]
-Folder String
[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.
- -Files String[]
- Specifies a list of files that represents one or more firmware-update packages to upload.
Use this parameter to import update packages for ThinkSystem V1, V2, ThinkEdge servers and some legacy devices, repository packs, and XClarity Administrator.
For each update package, you must specify the four required files: payload (.zip, .uxz, .tar.gz, .tar, .bin, .tgz), metadata (.xml), change log (.chg) and readme (.txt).
- -PayloadFiles String[]
- Specifies a list of single update-package file.
Use this parameter for ThinkSystem V1 servers (*.zip), ThinkEdge client devices (.exe), XClarity Management Hub, andXClarity Management Hub 2.0,
NoteFor ThinkSystem V3 servers, specify only one file. If multiple files are specified, only the first file is imported. - -FixIDs String[]
- Specifies a list of patterns to match update packages that are stored in folder.NoteAll types of packages can be specified - single update-package type and 4 file package type, with following limitations.
If 4 files package files are used, single update package is not accepted
If single update package is used, only one is accepted and 4 files packages should not be present.
- -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
- Lenovo.XClarityOrchestrator.PowerShell.Data.LXCOJobFullData
If the request was accepted the orchestrator server, this cmdlet returns an LXCOJobFullData object that contains the status of the operation that is associated with this request. If available, job logs are added to the root job and subtasks.
- 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
$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
$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
$cred = Get-Credential
Connect-LXCO -HostUri 192.0.2.0 -Credential $cred -SkipCertificateCheck
$files = @(
"D:\FirmwareRepository\lnvgy_fw_xcc_kax325a-2.40_anyos_comp.zip",
"D:\FirmwareRepository\lnvgy_fw_uefi_kae117a-4.10_anyos_comp.zip",
"D:\FirmwareRepository\lnvgy_fw_uefi_ese113v-2.10_anyos_comp.zip"
)
$result = Import-LXCOFirmwarePackage -PayloadFiles $files
$result
Disconnect-LXCO
The following warning message is returned.WARNING: Only one single update-package file is accepted. The following update-packages were not imported into XClarity Orchestrator. D:\FirmwareRepository\lnvgy_fw_uefi_kae117a-4.10_anyos_comp.zip D:\FirmwareRepository\lnvgy_fw_uefi_ese113v-2.10_anyos_comp.zip