I've been hunting for some automation scripts for setting up DJL2 Environments in UCS Manager. I did a rather large deployment a few weeks ago where the was a few hundred vlans across 2 DJL2 Environments.The VLAN manager tab in the UCS GUI is very clunky when you have to assign hundreds of VLANS across multiple port-channels.
This week i have a another deployment of DJL2, whilst not of the same size, i was hoping there might be functionality in Powertools that would allow me to script this.
Appreciate any help or resources you can point me to.
I have no idea what a DJL2 environment is, but if are able to set it up with the GUI, it should be pretty easy to set up with PowerTool. From a PowerShell window (on a system that has the latest PowerTool installed), issue the following commands:
ConnectTo-Ucs <ucs IP address>
Then within the GUI that opened go through the steps to create a VLAN. The output from the ConvertTo-UcsCmdlet should provide you with the basic PowerTool cmdlets that you would need to build into a script that would loop through all the VLANs you want to create. The VLAN to Fabric/Port-channel association can be built into a table in the script or you could create it as an XML file that is read by the script.
I'd be happy to help out if you haven't done any PowerShell scripting in the past.
Create a CSV with the following for column headings..
vm1, Network Adapter 1, currentpg100, newportgroup100
vm2, Network Adapter 1, currentpg200, newportgroup200
vm2, Network Adapter 2, current...
Cisco UCS PowerTool Core suite is a set of PowerShell Core modules for Cisco UCS Manager, Cisco IMC and Cisco UCS Central that helps in configuration and management of Cisco UCS domains and solutions.
Cisco UCS PowerTool Core Suite is devel...
Cisco has released the 3.0(1) beta version of the the Cisco UCS Manager VMware vSphere HTML client plugin. The UCS Manager vSphere HTML client plugin enables a virtualization administrator to view, manage and monitor the Cisco UCS physical infrastr...
Python SDK for Cisco UCS CentralApache License, Version 2.0 (the "License")InstallationFrom github:Installs the latest top of the tree development version,# Install pip (skip if pip is already available):wget https://bootstrap.pypa.io/get-pip.pypython get...