06-20-2016 08:07 AM
Hello,
I'm attempting to use the UCSC power tools to create VLANS in UCS Central. I need just a few things configured, but I'm unable to make this work. There doesn't appear to be much out online as far as the Add-UcsCentralVLAN cmdlet goes. Anyone know how to make this work successfully? I need to create a VLAN, name it, give it the VLAN ID, set it to fabric A&B and associate it to the permitted org.
06-20-2016 08:20 AM
Hope this helps…
1. Adding a Global VLAN - Example
C:\>
Get-UcsCentralOrgDomainGroup -Name
FOR ROOT ONLY: Limitscope on Get-UcsCentralFabricEP below …
C:\> Get-UcsCentralOrgDomainGroup –Level root | Get-UcsCentralFabricEP –Limitscope | Get-UcsCentralLanCloud | Add-UcsCentralVlan –Name TEST2000 –Id 2000
2. Adding Org Permissions to a Global VLAN - Example
C:\>
Get-UcsCentralOrg -Name
UCS Central PowerTools – Transaction….
3. Adding VLANs and Org Permissions as part of a Transaction: More Efficient
Start-UcsCentralTransaction
$mo_1 = Get-UcsCentralOrgDomainGroup -Name Americas | Get-UcsCentralOrgDomainGroup -Name NYC | Get-UcsCentralFabricEp | Get-UcsCentralLanCloud | Add-UcsCentralVlan -Id 2001 -Name TEST2001
$mo_2 = Get-UcsCentralOrg -Name root | Add-UcsCentralFabricVlanReq -Name TEST2001
$mo_3 = Get-UcsCentralOrgDomainGroup -Name Americas | Get-UcsCentralOrgDomainGroup -Name NYC | Get-UcsCentralFabricEp | Get-UcsCentralLanCloud | Add-UcsCentralVlan -Id 2002 -Name TEST2002
$mo_4 = Get-UcsCentralOrg -Name root | Add-UcsCentralFabricVlanReq -Name TEST2002
$mo_5 = Get-UcsCentralOrgDomainGroup -Name Americas | Get-UcsCentralOrgDomainGroup -Name NYC | Get-UcsCentralFabricEp | Get-UcsCentralLanCloud | Add-UcsCentralVlan -Id 2003 -Name TEST2003
$mo_6 = Get-UcsCentralOrg -Name root | Add-UcsCentralFabricVlanReq -Name TEST2003
$mo_7 = Get-UcsCentralOrgDomainGroup -Name Americas | Get-UcsCentralOrgDomainGroup -Name NYC | Get-UcsCentralFabricEp | Get-UcsCentralLanCloud | Add-UcsCentralVlan -Id 2004 -Name TEST2004
$mo_8 = Get-UcsCentralOrg -Name root | Add-UcsCentralFabricVlanReq -Name TEST2004
$mo_9 = Get-UcsCentralOrgDomainGroup -Name Americas | Get-UcsCentralOrgDomainGroup -Name NYC | Get-UcsCentralFabricEp | Get-UcsCentralLanCloud | Add-UcsCentralVlan -Id 2005 -Name TEST2005
$mo_10 = Get-UcsCentralOrg -Name root | Add-UcsCentralFabricVlanReq -Name TEST2005
Complete-UcsCentralTransaction
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
Sign-Up! CISCO LIVE 2016 - UCS Central Advanced Principles - Managing UCS at Scale - BRKINI-2205<http://www.ciscolive.com/us/attend/about/registration-packages/>
06-20-2016 08:51 AM
You should also become familiar with the ConvertTo-UcsCentralCmdlet. After launching the GUI for UCS Central, execute the ConvertTo-UcsCentralCmdlet in a PowerShell window. Then issue any command in UCS Central to create/set/delete values, and the UCS Central PowerTool cmdlets that are used to perform the GUI function are displayed in the PowerShell window. This allows you to find the proper PowerTool cmdlets for just about anything.
06-20-2016 09:34 AM
Thanks for the suggestion. I've not heard of this yet. Does this work with the newest version of UCS Central 1.4(1b)?
06-20-2016 09:45 AM
Hi Nate,
Yes it does work with the latest version of UCS Central. For more information on how to use this feature refer to the UCS Central PowerTool user guide Generating cmdlets from UCS Central GUI action section.
Cisco UCS Central PowerTool, Release 2.x User Guide - Cisco
Thanks,
Sumanth
06-21-2016 07:07 AM
As Sumanth indicated, yes, ConvertTo-UcsCentralCmdlet works with the latest version of UCS Central. You should also ensure that you are using the latest version of UCS PowerTool (Cisco Systems). If you are currently running a 1.x release, uninstall that version and install this latest version.
06-20-2016 09:33 AM
Thanks a million! Really appreciate the help! Are the transactions run as scripts?
06-20-2016 09:40 AM
Transactions are the most efficient way to interact with the API…If there are multiple commands. As such, with a Transaction, all the cmds embedded have to be 100% valid, or else nothing applies/changes.
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
Sign-Up! CISCO LIVE 2016 - UCS Central Advanced Principles - Managing UCS at Scale - BRKINI-2205<http://www.ciscolive.com/us/attend/about/registration-packages/>
11-05-2016 04:02 PM
How to call UCS Central VLAN creation - PowerTools commands from ucs director work flow
10-17-2016 02:50 PM
I was looking for how to grant the permissions, this helps. I tried to get the info from the converto cmdlet but it didn't give me how to add the permissions.
Can you do this for central with the gui as well? It sure would be nice to have a searchable index like hte vmware powercli.
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