Backup-LXCASwitchConfig
This cmdlet backs up configuration data for a RackSwitch or Flex System switch. When backing up configuration data, the switch configuration data is imported into Lenovo XClarity Administrator from the target switch as a configuration-data file.
Note
You cannot pipe objects to this cmdlet.
Syntax
Backup-LXCASwitchConfig [-Connection LXCAConnection]
-FileName String
-Uuid String
[-Description String]
[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.
- -FileName String
- Specifies the name of the configuration-data file.
- -Uuid String
- Specifies the UUID of the switches to be backed up. To obtain the switch UUIDs, use the Get-LXCARackSwitch or Get-LXCAChassisMember cmdlet.
- -Description String
- Specifies the description of the configuration-data.
If a description is not specified, the following default text is used:
switch_name configuration at timestamp.
- 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 returns a string with result of the backup operation.
Examples
The following example backs up configuration data for a specific switch to a file name Switch1.cfg.
$cred = Get-Credential
Connect-LXCA -Host 192.0.2.0 -Credential $cred
Backup-XCASwitchConfig -UUID AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA -FileName Switch1.cfg `
-Description "Switch1 configuration"
Disconnect-LXCA
Give documentation feedback