This cmdlet imports a switch configuration-data file from the local system into Lenovo XClarity Administrator.

Note: You cannot pipe objects to this cmdlet.


Import-LXCASwitchConfig [-Connection Connection] 
                         -FilePath String[] 
                        [-Uuid String] 
                        [-Comment String]


-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.
-FilePath String[]
Specifies the full directory and file name of the configuration-data file to import.
-Uuid String
Specifies the UUID of the switch to associate with the imported file. To obtain the switch UUIDs, use the Get-LXCARackSwitch or Get-LXCAChassisMember method
-Comment String
Specifies the description of the configuration-data file.

If a description is not specified, the following default text is used: "switch_name configuration at timestamp."

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.


This cmdlets imports the configuration-data file into the image repository.


The following example imports the Switch1.cfg file from the local system in the c:\configdata directory and associates it with a specific.

$cred = Get-Credential
Connect-LXCA -Host -Credential $cred

Import-LXCASwitchConfig -Uuid $switch -FilePath c:\configdata\Switch1.cfg -Comment "Switch1 configuration"


Related links