cisco ucs ps

Download Cisco Ucs Ps

Post on 12-Sep-2014

84 views

Category:

Documents

0 download

Embed Size (px)

TRANSCRIPT

CISCO UCS Power Shell Library User Guide

CISCO UCS Power Shell Library User Guide Revision History Date May 20, 2011 Description Initial Version Author Cisco

Page 1 of 30

CISCO UCS Power Shell Library User Guide

Table of Contents 1 2 3 PowerShell Overview ........................................................................................................................... 6 Cisco UCSM PowerShell Toolkit Architecture ....................................................................................... 6 Getting Started with the Toolkit ........................................................................................................... 7 3.1 3.2 3.3 3.4 3.5 3.6 4 Pre-requisite ................................................................................................................................. 7 Toolkit Installation ........................................................................................................................ 7 Getting Help for Cmdlets .............................................................................................................. 9 Toolkit Removal ............................................................................................................................ 9 Initial UCSM Connection ............................................................................................................... 9 Multiple UCS Connection ........................................................................................................... 10

PowerShell Cmdlet Library ................................................................................................................. 11 4.1 4.2 4.3 4.4 4.5 CiscoUCSM.dll ............................................................................................................................. 11 CiscoUCSPS.dll ............................................................................................................................ 11 Existing UCS XSD Schema ........................................................................................................... 12 Logging ....................................................................................................................................... 12 Help ............................................................................................................................................ 12

5

UCS PowerShell Cmdlet Library Features ........................................................................................... 12 5.1 5.2 5.3 5.4 Password Management .............................................................................................................. 12 Object Oriented Library .............................................................................................................. 12 Pipeline Support ......................................................................................................................... 12 PowerShell Features ................................................................................................................... 13 -XML ................................................................................................................................... 13 -Force .................................................................................................................................. 13 -Recursive ........................................................................................................................... 13

5.4.1 5.4.2 5.4.3 5.5 5.6

Error Handling ............................................................................................................................ 13 Examples ..................................................................................................................................... 13 Run Cmdlets ....................................................................................................................... 13 Create object ...................................................................................................................... 13 Pipeline Support ................................................................................................................. 14

5.6.1 5.6.2 5.6.3 6

Content of the Library ........................................................................................................................ 14 6.1 Get Cmdlets ................................................................................................................................ 14 Get-chassis (Get Chassis Details) ........................................................................................ 14 Page 2 of 30

6.1.1

CISCO UCS Power Shell Library User Guide 6.1.2 6.1.3 6.1.4 6.1.5 6.1.6 6.1.7 6.1.8 6.1.9 6.1.10 6.1.11 6.1.12 6.1.13 6.1.14 6.1.15 6.1.16 6.1.17 6.1.18 6.1.19 6.1.20 6.1.21 6.1.22 6.1.23 6.1.24 6.1.25 6.1.26 6.2 Get-Blade (Get Blade Details) ............................................................................................. 14 Get-LocatorLED (Get status of LocatorLED) ........................................................................ 14 Get-Vlan (Get config of system Vlan) ................................................................................. 14 Get-Vsan (Get config of system Vsan) ................................................................................ 15 Get-ServerPool (Get status of ServerPool) ......................................................................... 15 Get-UuidPool (Get status of UuidPool) ............................................................................... 15 Get-Schedule (Get status of Schedule) ............................................................................... 15 Get-ServiceProfile(Get status of Service Profile) ............................................................... 15 Get-SPTemplate(Get SP template details) .......................................................................... 15 Get-Org(Get Org list within UCS) ........................................................................................ 16 Get-VnicConnPolicy(Gets list of available VnicConnPolicy ) ............................................... 16 Get-CurrentUCSPSSession .................................................................................................. 16 Get-VhbaTemplate(Gets Vhba template info) .................................................................... 16 Get-AdapterPolicy .............................................................................................................. 16 Get-Audit ............................................................................................................................ 16 Get-BiosPolicy ..................................................................................................................... 17 Get-FabricPort .................................................................................................................... 17 Get-Fault ............................................................................................................................. 17 Get-IpmiPolicy .................................................................................................................... 17 Get-PowerPolicy ................................................................................................................. 17 Get-RackUnit ...................................................................................................................... 17 Get-Session ......................................................................................................................... 17 Get-UCSEvent ..................................................................................................................... 18 Get-Vhba ............................................................................................................................ 18 Get-Vnic .............................................................................................................................. 18

Set Cmdlets ................................................................................................................................. 18 Set-LocatorLED ................................................................................................................... 18 Set-BladePower .................................................................................................................. 18 Set-Vlan .............................................................................................................................. 19 Set-Vsan .............................................................................................................................. 19 Set-ServiceProfile ............................................................................................................... 19 Set-VnicConnPolicy ............................................................................................................. 19 Page 3 of 30

6.2.1 6.2.2 6.2.3 6.2.4 6.2.5 6.2.6

CISCO UCS Power Shell Library User Guide 6.2.7 6.2.8 6.2.9 6.2.10 6.2.11 6.2.12 6.2.13 6.2.14 6.2.15 6.2.16 6.3 Set-VhbaTemplate .............................................................................................................. 20 Set-ServerPool .................................................................................................................... 20 Set-BiosPolicy ..................................................................................................................... 20 Set-FabricPort ...

Recommended

View more >