This session was about setting up the Cisco UCS emulator and the UCS Powershell toolkit to automate UCS. It included establishing connectivity and some samples. Further the session navigated through a codebase with a rich library of automation samples of UCS and OnTAP for automated setup of FlexPod stack to allow others to reuse the samples and innovate on top of it.
$ucsHandle = Connect-Ucs -Name "192.168.0.219" -Credential $ucsmcred
$ucsHandle
$rootOrg = Get-UcsOrg -Level root -Ucs $ucsHandle
$rootOrg
Get-Help Get-Ucs*
Get-Member get-ucs*
Get-Help Get-Ucs*
Get-Help set-Ucs*
$res = Get-UcsOrg -Org $rootOrg -Name "gaga" -Ucs $ucsHandle
$res
$res = Get-UcsOrg -Org $rootOrg -Name "11" -Ucs $ucsHandle
Get-UcsOrg -Org $rootOrg -Name "11" -Ucs $ucsHandle
$res
$res = Get-UcsOrg -Org $rootOrg -Name "Finance" -Ucs $ucsHandle
$res
Add-UcsVlan -Name "gaga" -Id 555 -Ucs $ucsHandle
Get-Help Add-UcsVlan
Get-Help Add-UcsVlan -Examples
Get-Help Add-UcsVlan -full
$fabricEthLan = New-Object Cisco.Ucs.FabricEthLan
$fabricEthLan.Dn = "fabric/lan"
Add-UcsVlan -FabricApplianceCloud $fabricEthLan -Name "gaga" -Id 555 -Ucs $ucsHandle
Add-UcsVlan -FabricApplianceCloud $fabricEthLan -Name "gaga" -Id 555 -DefaultNet "false" -Ucs $ucsHandle
get-help Add-UcsVlan
Add-UcsVlan -FabricLanCloud $fabricEthLan -Name "gaga" -Id 555 -Ucs $ucsHandle
history
Import-Module "C:\Program Files\Cisco\Cisco UCS PowerTool\CiscoUcsPS.psd1"
$ucsHandle
Get-Help get-ucs*
history
Add-UcsVlan -FabricLanCloud $fabricEthLan -Name "thisisourvlan" -Id 999 -DefaultNet false -Ucs $ucsHandle
Slides with background information is in the download section of this page.