Moving UCS service profiles

Moving a Cisco UCS service profile between organisations should be a simple thing to do, but sadly it cannot be done in the UCS Manager GUI.

There is a useful post on the Cisco communities board here that has the PowerTool script that almost allows you to do this:

1
2
3
4
5
6
7
8
9
$sp = Get-UcsManagedObject -Dn org-root | Get-UcsServiceProfile -Name bob -LimitScope -Hierarchy | ? { $_.GetType().Name -ne "LsVersionBeh" }

$compare1 = Compare-UcsManagedObject ($sp) @()
$compare2 = Compare-UcsManagedObject @() ($sp) -xlateOrg org-root/org-Finance

start-ucstransaction
sync-ucsmo ($compare1) -deletenotpresent –Force
sync-ucsmo ($compare2) –Force
complete-ucstransaction

This didn’t work for me on the 2.2(2c) firmware, I got the following error:

ucs-move-serviceprofile-error

Taking out the “Start-UCSTransaction” and “Complete-UCSTransaction” lines fixed this problem, allowing me to move a service profile - all thanks to Eric Williams at the link above :)

Built with Hugo
Theme Stack designed by Jimmy