Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public Load Presentation onto my communities page VPN to CMI Lab Connect to Client via.

Similar presentations


Presentation on theme: "1 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public Load Presentation onto my communities page VPN to CMI Lab Connect to Client via."— Presentation transcript:

1 1 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public Load Presentation onto my communities page VPN to CMI Lab Connect to Client via RDP Close all UCSM Open UCSPE #1(Make sure it is at factory) Open UCSM GUI Open PowerGUI Do ConvertTo-UcsCmdlet to speed up demo Open Scripts and Materials: New Add-UcsVlans.ps1 Open VLANList.csv in Excel !Add-UcsBareMetalServer.ps1 Pre-Session Check-List

2 An Introduction to PowerShell Automation for Cisco UCS Cisco UCS PowerTool Joe Martin joemar@cisco.com Microsoft Ignite, Chicago: May, 2015

3 3 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public UCSM…What is it? What is PowerTool How to learn to use Demo Q&A – Along the way (Don’t be shy!) Agenda Link to slides at end of presentation

4 4 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public UCSM = Programmatic Infrastructure = SDC = Software Defined Compute XML API  UCS Manager is an API not a GUI or CLI…but it has those  Comprehensive XML API, standards-based interfaces  Bi-Directional access to physical & logical internals System Status Physical Inventory Logical Inventory Direct Customer Custom Self Serve portals Management Tools Auditing Tools 3 rd Party System Center- SCOM/VMM/SCORCH /SCCM/SM/ PowerShell/WAP

5 5 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public PowerShell modules for Cisco UCS Servers Available for UCS managed systems and stand-alone C-Series PowerTool for UCSM is automatically generated by our XML schema Free to download from http://cisco.com PowerTool for UCSM contains 1970 cmdlets Can do 100% of UCSM with PowerTool Follows Microsoft best practices Easy to learn…I promise! What is PowerTool

6 6 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public Hardware VLANs, LAN Uplink, SAN Uplink, Server, Appliance Ports, Port Channels, etc. Pools Servers, UUID, MAC, IP, WWPN, WWNN, iSCSI, etc. Policies BIOS, Firmware, Adapters, Boot, Drives, etc. Templates vNIC, vHBA, Service Profile Templates, etc. Reporting vNIC Statistics, vHBA Statistics, Thermal, Resources, etc. Depth of PowerTool Capabilities

7 7 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public Import-Module CiscoUcsPs Load module Get-Command -Module CiscoUcsPs | Out-File.\CiscoUcsPs_Cmdlets.txt List of cmdlets Get-Command -Module CiscoUcsPs | Measure-Object How many cmdlets Get-Help -full Using PowerTool

8 8 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public Open UCSM GUI Import-Module CiscoUcsPs Enter ConvertTo-UcsCmdlet in a PowerShell session This cmdlet will run forever till stopped Do something in the UCSM GUI and hit ‘Save’ Watch your PowerShell session now First time is a bit slow to produce output…be patient Will see the PowerShell for that UCSM configuration Easy to Learn Demo

9 9 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public Log into a UCSM domain $Cred = Get-Credential –UserName “admin” –Message “UCSM Credentials” $MyUcs = read-host “Enter UCSM Hostname or IP” $MyCon = Connect-Ucs -Name $myucs -Credential $cred #do your thing Disconnect-Ucs Log into multiple UCSM domains $MultiLogin = Set-UcsPowerToolConfiguration -SupportMultipleDefaultUcs $true $Cred = Get-Credential –UserName “admin” –Message “UCSM Credentials” $MyUcs = @("192.168.2.10","10.20.31.6") $MyCon = Connect-Ucs -Name $myucs -Credential $cred #do your thing Disconnect-Ucs Logging into UCSM

10 10 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public From our learning on ConvertTo-UcsCmdlet we got Get-UcsLanCloud | Add-UcsVlan -CompressionType "included" - DefaultNet "no" -Id 99 -McastPolicyName "" -Name "test" -PubNwName "" -Sharing "none" -XtraProperty @{PolicyOwner="local"; } Strip down to what we need Get-UcsLanCloud | Add-UcsVlan -Id 99 -Name "test“ Script it $VLANList = Import-Csv “.\VLANList.csv“ foreach ($item in $VLANList) {Get-UcsLanCloud | Add-UcsVlan -Id $item.VLAN -Name $item.Name} Bringing it Together Demo

11 11 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public Create UCS Service Profile from Template Picks a custom template based on workload needs Picks servers, sets BIOS, builds and configures NICs and HBAs Zone SAN Fabrics (MDS, Nexus or Brocade) Collects Service Profile name from UCS Collects WWPNs Single Initiator, Single Target Zoning with Aliases Creates SAN Boot LUN Clones Sysprep’d/Patched/Unattend/Scripted LUN Creates Initiator Group Powers on Server Opens KVM Deploy a bare metal boot from SAN server Demo

12 12 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public PowerTool Documentation http://www.cisco.com/c/en/us/td/docs/unified_computing/ucs/sw/msft_tools/ C-Series/powertools/ucs_powertool_book/ucs_pwrtool_bkl1.pdf http://www.cisco.com/c/en/us/td/docs/unified_computing/ucs/sw/msft_tools/ C-Series/powertools/ucs_powertool_book/ucs_pwrtool_bkl1.pdf Forums https://communities.cisco.com/community/technology/datacenter/ucs_man agement/cisco_ucs_developed_integrations https://communities.cisco.com/community/technology/datacenter/ucs_man agement/cisco_ucs_developed_integrations My Script Repository / This slide deck / YouTube Channel https://communities.cisco.com/people/joemar/content Resources

13 Slides, Scripts and Videos: https://communities.cisco.com/people/joemar/content Joe Martin Consulting Systems Engineer Cisco Systems Tel: 425-468-1015 Email: joemar@cisco.com Thank You


Download ppt "1 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public Load Presentation onto my communities page VPN to CMI Lab Connect to Client via."

Similar presentations


Ads by Google