As a follow up from yesterday’s post (UCS PowerShell Health check HTML report) I figured I would post a video demonstrating a UCS configuration script that I just finished.
The video starts with me showing an un-configured UCS cluster, I go through all of the tabs, pools, policies and templates showing that there is no configuration.
Next I bring up the PowerShell script, scroll through it, switch over to UCSM and kick of the script.
After the script completes I go back through UCSM showing all of the pools, policies and templates that the script created. The script also configures the LAN/SAN Port-Channels, VSANs, VLANs and admin settings.
The video is silent and lasts about 7 minutes
Here is a link to the video – Cisco UCS PowerShell configuration video
Link to the Script – https://www.dropbox.com/sh/i001giq6jx67fl2/GYedBaqAYa
Nice! Are you sharing the script?
Just posted it to the developer forum – http://developer.cisco.com/web/unifiedcomputing/forums/-/message_boards/view_message/5416309
Thats awesome. It gave me problems at the Network Control Policies. I worked around that one by removing “-MacRegisterMode only-native-vlan”. and also on BIOS policies. I haven’t found the parameter that is causing the error there yet.
Great job though. I plan on turning some of the static entries into variables it will pull from a survey spreadsheet. You saved me a week or two of work.
You might want to look at the following URL for another example of provisioning UCS/NEXUS and NetApp FAS from scratch.
https://communities.netapp.com/docs/DOC-13143
Great work on this. Do you still happen to have this script available?
Looks like Cisco changed their developer forum and files are no longer supported. I copied the scripts to my dropbox – https://www.dropbox.com/sh/i001giq6jx67fl2/GYedBaqAYa
Thank You Jeremy, Happy Holidays
-Mike
We changed our Authentication Domain to use LDAP natively and the script did not work. I found a post by Brian at enterprise admins dot org showing how to use the locally created account. I modified Jeremy’s script with this info and now it will log in automatically without prompting. Thanks again Jeremy, great script!
###########################
# UCSM IP and credentials #
###########################
$UCSipAddr = “Virtual IP address of UCS Manager”
$UCSusername = “ucs-Local\local username”
$UCSpassword = “local password”
$organization = “root”
$UCSSecPass = ConvertTo-SecureString $UCSpassword -AsPlainText -Force
$ucsmCreds = New-Object System.Management.Automation.PSCredential($UCSusername, $UCSSecPass)
Disconnect-Ucs
$handle1 = Connect-Ucs $UCSipAddr -Credential $ucsmCreds
$handleArray = $handle1
It appears the document has been removed for automating UCS/NEXUS and NetApp FAS from scratch, does know were it is or have copy of this example?