« Back to Microsoft Discussions

Powertool - how to import config backup file

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Hi Experts,
 
I tried Backup-Ucs command with Powertool 9.6.0 and got backup file successfully.
but there seems to be no cmdlet to execute restoreing (importing) the file back into UCS Manager.
 
Do anyone know how to import it by Powertool?
 
Regards,
Hiroshi
 
 

Hi Experts,
 
I tried Backup-Ucs command with Powertool 9.6.0 and got backup file successfully.
but there seems to be no cmdlet to execute restoreing (importing) the file back into UCS Manager.
 
Do anyone know how to import it by Powertool?
 
Regards,
Hiroshi
 
 

Hi Hiroshi,
 
There are several cmdlets to manage import of an XML backup that was taken from the UCS Manager and the import process, the several I have listed below are from the 0.9.7.0 release.
 


PS C:\> get-command -Module CiscoUCSPS | select-string import
 
Add-UcsMgmtImporter
Get-UcsMgmtImporter
Import-UcsBackup
Import-UcsXml
Remove-UcsMgmtImporter
Set-UcsMgmtImporter


 
The backup that  results fro Backup-Ucs with the option "full-state" is not an XML file, it is a binary dump of the UCS Manager database and cannot be imported, only restored.  The restore backup capability is only available from the commandline.  You would be presented with the setup/restore option when there is no existing configuration on the UCS.
 
There maybe a way to force the initial setup process on a UCS with an existing configuration, but I an not familiar with it.
 
Regards,
John

Hiroshi,

With Powertool 0.9.7.0, Import-UcsBackup is the cmdlet you are looking for to restore backups other than a full-state backup.

The Import-UcsBackup cmdlet uploads the backup file to UCS and triggers the import of the backup. If the -Merge flag is specified, UCS will try to merge the configuration, instead of just replacing it with the backup.

Thanks,
- bhaskar

Hi John, Bhaskar,

Thank you for your advice and sorry for my late response.
I tried Import-Backup cmdlet via Powertool both v0.9.7.0 and v0.9.8.0 and successfully made the restore of UCSM config.

Thank you again for your kindness.


Regards,
Hiroshi Okamoto