PowerPoint Presentation
Load Presentation onto my communities pageStart UCSPE (Make sure it is at factory)Open UCSM GUIVPN to CMI LabRDP to TechEd2014 (Make sure names are at default)Open PowerGUIOpen Scripts:Add-UcsVlans.ps1Add-UcsDomain.ps1Data-Laptop Emulator.ps1New-UcsFcZoning.ps1!TechEd-Manual-UCStoWindowsNicName v0.8.0.2.ps1Pre-Session Check-List
Cisco Confidential# 2013-2014 Cisco and/or its affiliates. All rights reserved.Cisco UCS PowerToolJoe MartinConsulting Systems Engineer, CCIE #5917TechEd 2014An introduction to PowerShell automation for Cisco UCS
Cisco Confidential# 2013-2014 Cisco and/or its affiliates. All rights reserved.UCSMWhat is it?What is PowerToolWhere to downloadHow to downloadHow to installHow to learn to useSample and example scriptsQ&A Along the way (Dont be shy!)
AgendaLink to slides at end of presentation
Cisco Confidential# 2013-2014 Cisco and/or its affiliates. All rights reserved.UCSM = Programmatic Infrastructure = SDC(Software Defined Compute)XML API
UCS Manager is an API not a GUI or CLIbut it has thoseComprehensive XML API, standards-based interfacesBi-Directional access to physical & logical internalsSystem StatusPhysical InventoryLogical InventoryDirect
UCS CLI
UCS GUICustomerCustom-Self Serve portalsManagement ToolsAuditing Tools
3rd Party
System Center-SCOM/VMM/OrchPowerShell
Cisco Confidential# 2013-2014 Cisco and/or its affiliates. All rights reserved.PowerShell modules for Cisco UCS ServersAvailable for UCS managed systems and stand-alone C-SeriesPowerTool for UCSM is automatically generated by our XML schemaFree to download from http://cisco.comPowerTool for UCSM contains 1866 cmdletsCan do 100% of UCSM with PowerToolFollows Microsoft best practicesEasy to learn how to useI promise!What is PowerTool
Cisco Confidential# 2013-2014 Cisco and/or its affiliates. All rights reserved.HardwareVLANs, LAN Uplink, SAN Uplink, Server, Appliance Ports, Port Channels, etc.PoolsServers, UUID, MAC, IP, WWPN, WWNN, iSCSI, etc.PoliciesBIOS, Firmware, Adapters, Boot, Drives, etc.TemplatesvNIC, vHBA, Service Profile Templates, etc.ReportingvNIC Statistics, vHBA Statistics, Thermal, Resources, etc.Depth of PowerTool Capabilities
Cisco Confidential# 2013-2014 Cisco and/or its affiliates. All rights reserved.Go to http://www.cisco.comLog in using your CCO credentialsIf you dont have credentials its easy to registerSelect Support then All DownloadsIn Find type: PowerTool and select Cisco UCS Management Partner Ecosystem SoftwareClick on Unified Computing System (UCS) PowerToolSelect Cisco IMC PowerTool pack for Powershell for Stand-Alone C-Series or Cisco PowerTool pack for Powershell for UCSMSelect DownloadDownloading
Cisco Confidential# 2013-2014 Cisco and/or its affiliates. All rights reserved.Launch installerNext>Accept license agreement, Next>Install Location, Next>InstallAccept UACFinish
Installing PowerTool
Cisco Confidential# 2013-2014 Cisco and/or its affiliates. All rights reserved.Import-Module CiscoUcsPsLoad moduleGet-Command -Module CiscoUcsPs | Out-File .\CiscoUcsPs_Cmdlets.txtList of cmdletsGet-Command -Module CiscoUcsPs | Measure-ObjectHow many cmdletsGet-Help -fullUsing PowerTool
Cisco Confidential# 2013-2014 Cisco and/or its affiliates. All rights reserved.Open UCSM GUIImport-Module CiscoUcsPsEnter ConvertTo-UcsCmdlet in a PowerShell sessionThis cmdlet will run forever till stoppedDo something in the UCSM GUI and hit SaveWatch your PowerShell session nowFirst time is a bit slow to produce outputbe patientWill see the PowerShell for that UCSM configurationEasy to LearnDemo
Cisco Confidential# 2013-2014 Cisco and/or its affiliates. All rights reserved.Log into a UCSM domain$cred = Get-Credential$myucs = read-host Enter UCSM Hostname or IP$mycon = Connect-Ucs -Name $myucs -Credential $cred#do your thingDisconnect-Ucs
Log into multiple UCSM domains$multilogin = Set-UcsPowerToolConfiguration -SupportMultipleDefaultUcs $true$cred = Get-Credential$myucs = @("192.168.2.10","10.20.31.6")$mycon = Connect-Ucs -Name $myucs -Credential $cred#do your thingDisconnect-UcsLogging into UCSM
Cisco Confidential# 2013-2014 Cisco and/or its affiliates. All rights reserved.From our learning on ConvertTo-UcsCmdlet we gotGet-UcsLanCloud | Add-UcsVlan -CompressionType "included" -DefaultNet "no" -Id 99 -McastPolicyName "" -Name "test" -PubNwName "" -Sharing "none" -XtraProperty @{PolicyOwner="local"; }Strip down to what we needGet-UcsLanCloud | Add-UcsVlan -Id 99 -Name "testScript it$VLANList = Import-Csv .\VLANList.csvforeach ($item in $VLANList){Get-UcsLanCloud | Add-UcsVlan -Id $item.VLAN -Name $item.Name}Bringing it TogetherDemo
Cisco Confidential# 2013-2014 Cisco and/or its affiliates. All rights reserved.Build a complete UCS in just a few minutesAnswer file based = repeatable, consistentConfigures 100% of UCSZone your SAN in minutesBuild 5120 zones with aliases across 2 MDS fabrics in 42 minutesWrites 5120 zones with aliases to file in under 1 minuteRename your Windows NICs in secondsRenames physical vNICs and Hyper-V vSwitchesDemosDemoUnlimited Potential!
Cisco Confidential# 2013-2014 Cisco and/or its affiliates. All rights reserved.PowerTool Documentationhttp://www.cisco.com/c/en/us/td/docs/unified_computing/ucs/sw/msft_tools/C-Series/powertools/ucs_powertool_book/ucs_pwrtool_bkl1.pdf
Forumshttps://communities.cisco.com/community/technology/datacenter/ucs_management/cisco_ucs_developed_integrations
My Script Repository / This slide deckhttps://communities.cisco.com/people/joemar/content
Resources
Cisco Confidential# 2013-2014 Cisco and/or its affiliates. All rights reserved.Joe MartinConsulting Systems Engineer, CCIE #5917Cisco SystemsTel: 425-468-1015Email: [email protected] and Scripts:https://communities.cisco.com/people/joemar/content
Thank you.Cisco Confidential# 2013-2014 Cisco and/or its affiliates. All rights reserved.