cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4094
Views
3
Helpful
9
Replies

UCS Central VLAN creation - PowerTools

nwebb01
Level 1
Level 1

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.

9 Replies 9

Matthew Faiello
Cisco Employee
Cisco Employee

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/>

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.

Thanks for the suggestion. I've not heard of this yet. Does this work with the newest version of UCS Central 1.4(1b)?

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

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.

Thanks a million! Really appreciate the help! Are the transactions run as scripts?

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/>

How to call UCS Central VLAN creation - PowerTools commands from ucs director work flow

markdjones82
Level 1
Level 1

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.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card