published

UCS_Install_script

This script can provision a new UCS enviornment for you.

The script has been developed by Boris Aelen.

Mail: boris@borisaelen.nl

Twitter: https://twitter.com/borisaelen

DESCRIPTION

This script will provision the following UCS components for you:

  • DNS & NTP servers
  • Callhome profiles (e-mail alerts)
  • AD Authentication
  • Config backups to an FTP server
  • MTU size
  • Fabric Interconnect server porten
  • Fabric Interconnect Portchannel Uplinks
  • Tentant
  • Several policies (BIOS/boot/firmware/maintenance/scrub/global/localdisk/diskgroup)
  • Several pools (server/uuid/mac/cimc)
  • VLANS
  • vNIC Templates
  • Service Profile Templates

NOTE: The script will update any already existing configuration in UCS.

NOTE: The script assumes an UCS environment with default settings.

It won't remove any additional configuration that might be in the UCS environment and could mess up your config.

USAGE

Enable PowerShell to run scripts by bypassing the default execution policy for the current user:
Set-ExecutionPolicy Bypass -Scope CurrentUser -Force.

Make a copy of the sensitive_information-template.ps1 and name it: sensitive_information.ps1.

Then configure all the settings in the file.

Execute the script with:
./ucs_install_script.ps1

Powershell knowledge is required to use this script, it is not very user friendly.
If you want you can also edit the other variables in the main script file to create the UCS environment you want.

Configuration

The script is very static and provisions the UCS environment following the best practises that I use personally.
If you don't want to use some parts of the script, please comment them out inside the script.

DevNet Sandbox

There is no Sandbox at the moment that has Powershell version 5 or higher.

Getting help

Feel free to send me an e-mail with questions.

View code on GitHub

Code Exchange Community

Get help, share code, and collaborate with other developers in the Code Exchange community.View Community
Disclaimer:
Cisco provides Code Exchange for convenience and informational purposes only, with no support of any kind. This page contains information and links from third-party websites that are governed by their own separate terms. Reference to a project or contributor on this page does not imply any affiliation with or endorsement by Cisco.