Import-LXCAOSImage

This cmdlet imports a local OS image or device driver into the OS-images repository.

Note: You cannot pipe objects to this cmdlet.

Syntax

Import-LXCAOSImage [-Connection Connection] 
                    -ImagePath String 
                   [-ChecksumType String]
                   [-ChecksumValue String]
                   [-AsJob]
                   [CommonParameter]

Import-LXCAOSImage [-Connection Connection] 
                    -ImagePath String
                   [-DeviceDriver]
                    -OSImageName String
                   [-AsJob]
                   [CommonParameter]

Parameters

-Connection LXCAConnection
Specifies the connection to the Lenovo XClarity Administrator server. If no connection is specified, the result from the last Connect-LXCA cmdlet is used.
-ImagePath String
Specifies the file path and file name to be imported.
-ChecksumType String
Specifies the checksum type. You can specify one of the following values:
  • MD5
  • SHA1
  • SHA256

If you specify the checksum types, you must also specify the -ChecksumValue parameter.

-ChecksumValue String
Specifies the checksum value to be used to check the integrity and security of the uploaded file.
-DeviceDriver
If specified, indicates that the import file is a device driver.
-OSImageName String
Specifies the name of the OS image to which you want to add the device driver (for example, redhat7.0).
Note: The OS image must exist in the OS images repository.
-AsJob
When specified, the cmdlet runs as background job and returns a Job object immediately.
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

This cmdlets imports the image into the image repository. If you specify the -AsJob parameter, this cmdlets returns a Job object.

Examples

Related links