Cisco UCS PowerShell Configuration Script

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

Advertisement

9 thoughts on “Cisco UCS PowerShell Configuration Script

  1. 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.

  2. 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

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s