04-28-2017 12:14 PM
When deploying a Service Profile from a Template in UCS Central you can specify the "Advanced" option in the Service Profile Naming Convention. This allows you to create Service Profiles and specify where to start numbering and how many digits to use in the numbering scheme. This is extremely useful in our environment. I'm trying to find a way to automate this process via Cisco PowerTool, however it seems that the advanced naming conventions aren't options in the PowerTool commandlet: Add-UcsCentralServiceProfileFromTemplate
Ideas would be greatly helpful. Thanks.
Solved! Go to Solution.
07-12-2017 06:33 AM
This feature should be included in the next release of UCS Central powertools, have a look at CSCve45888.
I would suggest using the simple mode of creating the SP from Template and then renaming it.
Get-UcsCentralServiceProfile -name $sp_template | Add-UcsCentralServiceProfileFromTemplate -DestinationOrg (Get-UcsCentralOrg -Level root) -NamePrefix $sp_name -Count 4
Get-UcsCentralOrg -Level root | Get-UcsCentralOrg -Name "root" -LimitScope | Get-UcsCentralServiceProfile -Name $sp_name | Rename-UcsCentralServiceProfile -NewName $new_sp_name
07-12-2017 06:33 AM
This feature should be included in the next release of UCS Central powertools, have a look at CSCve45888.
I would suggest using the simple mode of creating the SP from Template and then renaming it.
Get-UcsCentralServiceProfile -name $sp_template | Add-UcsCentralServiceProfileFromTemplate -DestinationOrg (Get-UcsCentralOrg -Level root) -NamePrefix $sp_name -Count 4
Get-UcsCentralOrg -Level root | Get-UcsCentralOrg -Name "root" -LimitScope | Get-UcsCentralServiceProfile -Name $sp_name | Rename-UcsCentralServiceProfile -NewName $new_sp_name
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide