Hello,
When I setup the UCS PODS I created everything in "root". There is now a need to create a new sub-org and i need to move everything that is under root to a new sub org. Is there any way of doing this ? I know the service template can be cloned but the vnic template and pools can't. Is there anything that can be done with the XML that can be copied? Or am i looking at starting again. I know the polices can be referenced but to be clean I need to have all objects in their relevant sub-org's.
Thanks
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Stuart:
Best place to start in doing this, is to use something like UCS PowerTool to help you with this. In the videos on the "Cisco Developed Integrations" sub-space here, I demonstrate how you can use compare-ucsmanagedobject and sync-ucsmanagedobject cmdlets to copy polices / profiles from one UCSM to another UCSM. You can do the same even within a UCS Domain.
Here's an example of moving a service profile named "bob" from org-root to org-root/org-Finance. This will cause a disassociation of service profile "bob" in org-root, and then when the SP is recreated in org-root/org-Finance, it will be reassociated.
$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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thanks Eric which video is it I am struggling to find it.
Thanks again
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
There's two. One with Jason Shaw and I talking from our MMS 2013 presentation:
https://communities.cisco.com/videos/11207
And the raw video (no audio) we did for just the UCS PowerTool demo portion of the MMS 2013 presentation here:
https://communities.cisco.com/videos/11148
Hope that helps!
Eric
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Eric thats fantastic thanks very much.
Stu
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Does the new SP in the new org have the same identity (UUID, MACs, WWNN, WWPNs) as the old SP?
I am not sure but I think the script is just doing a clone/copy and therefore new values will be assigned to the new SP from the original pools.
Or am I wrong?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Yes, it would keep the same ID's as long as the ID Pools that contain those ID's are in the eventual resolved path. I believe in the case above, Eric was cloning a SP from high-up in the Org Structure (/root) to a Sub-Org below...as such, the resolution of the IDs and Pools would be to the same source pools. The ID's should not change.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Wow, that would be awesome
Because this is exactly the use case we have. We need to move all SPs from one Org into a Sub-Org.
So far I have only found the copy/clone method in the GUI but there the identity of the SP is not preserved, because a new SP will be created (a copy).
I hope this method also works some how for Global SPs? Our customer is using UCS Central for all SPs... Might be a bit more tricky...
Any experience with this so far?
Too bad that the move from one Org into another or into a Sub-Org is not possible in the GUI.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
It should not matter if it’s Local UCS or Global UCS Central. It’s just Core Policy Resolution of UCS in general.
Certainly, test first in the lab…you can install UCS Central and UCS emulators in your lab. You can register emulators to your Lab UCS Central instance.
AAs such, You can thoroughly test behavior and results beforehand.
Regards,
Matt
Matthew Faiello | UCS Technical Marketing Engineer | .:|:.:|:. Cisco Systems, Inc.
mfaiello@cisco.com<mailto:mfaiello@cisco.com>| Phone: 727-540-1432 | Twitter: @mfaiello
UCS Communities: http://communities.cisco.com/ucs
UCS Platform Emulator: http://communities.cisco.com/ucspe
UCS Developed Integrations: http://communities.cisco.com/ucsintegrations
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Is there a way to "clone" a vnic template??
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Yes, you can 'clone' a vNIC template. You can use PowerTool to read the template you want to clone (Get-UcsVnicTemplate) and add it (Add-UcsVnicTemplate) using the values captured from the Get cmdlet, but simply change the name.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I couldn't just pipe it to the command. I am looking for the easiest way to just take the whole object and then create the object but change the name. Do you have an example?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Oh and I want to copy all authorized vlans....
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You are going to have to create your own logic, just like any programming language. PowerTool doesn't know what you want to do until you tell it.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
No, the Add-UcsVnicTemplate cmdlet does not take all values as piped input. This is fairly typical for many PowerTool cmdlets. They will take some input as piped, but not all. Do a help <cmdlet> -full to see which parameters can be piped.
Or you could try something funky using Eric's example with Sync-UcsMo. Create a 'scratch' suborg. Sync the VNIC template to the scratch suborg, change the name in the scratch suborg, sync from the scratch suborg to the desired suborg, and then delete the clone from the scratch suborg.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Yeah, I got it figured out mostly. The only thing that throws me off is trying to figure out what cmdlets do what. I still get confused on getting some of the components that make up an object, like the command for hte vlans for the template :/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Comments
0 comments
Please sign in to leave a comment.