cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2531
Views
3
Helpful
9
Replies
Highlighted
Beginner

UCS Central VLAN creation - PowerTools

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
Cisco Employee

Re: UCS Central VLAN creation - PowerTools

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

Enthusiast

Re: UCS Central VLAN creation - PowerTools

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.

Beginner

Re: UCS Central VLAN creation - PowerTools

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

Enthusiast

Re: UCS Central VLAN creation - PowerTools

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

Enthusiast

Re: UCS Central VLAN creation - PowerTools

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.

Beginner

Re: UCS Central VLAN creation - PowerTools

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

Cisco Employee

Re: UCS Central VLAN creation - PowerTools

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

Beginner

Re: UCS Central VLAN creation - PowerTools

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

Beginner

Re: UCS Central VLAN creation - PowerTools

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.

CreatePlease to create content
Content for Community-Ad
August's Community Spotlight Awards