Using UCS PowerTool To Configure UCS Policy Backup and Export

Share on:

Im finally getting to dive back in to working with UCS. My latest task with my project of configuring 9 UCS Domains, was configuring the Policy Backup and Export. See below on how to automate this process!

Pre-Requsites

Preparing to Execute the Script

The script is pretty straight forward, just need to define a few variables seen below and then you execute the script. I will walk you through the process.

 1#Define Variables
 2$UCS = "FQDNofUCS" #FQDN of UCS To COnnect To
 3$Hostname = "ucs.lab.local" #Hostname to Upload backup to.
 4$Protocol = "scp" #Transfer Protocol. ftp,scp,tftp,sftp
 5$User = "ftpuser" #Username
 6$Password = "ftpuser" #Password
 7$MgmtBackupRemoteFile = "Full" #Location/Prefix of File. Location/Prefix will be in front of filename
 8$ConfigBackupRemoteFile = "AllConfig" #Location/Prefix of File. Location/Prefix will be in front of filename
 9$AdminState = "enable" #enable or disable
10$Schedule = "1day" #1day, 7day, 14day for daily, weekly or biweekly backups

Execute the Script

  • Run .\Set-UCSPolicyBackupandExport.ps1
  • Logon and UCSM, Navigate to Admin/All and Then select the Policy Backup & Export.
    • Verify Settings.

Hope this helps anyone else out wanted to automate policy backup & export on Cisco UCS.

comments powered by Disqus

See Also