Home
Cisco UCS PowerTool, Release 1.x User Guide
Contents
1. Named Non Hierarchical Hierarchical 303305 Every managed object is uniquely identified in the tree with its Distinguished Name Dn and can be uniquely identified within the context of its parent with its Relative Name Rn The Dn identifies the place of the M O in the M IT A Dn isa concatenation of all the relative names starting from the root to the M O itself Essentially Dn Rn Rn Rn Rn In the example below Dn provides a fully qualified name for adaptor 1 in the model lt dn sys chassis 5 blade 2 adaptor 1 gt The above written Dn is composed of the following Rn topSystem MO rn sys equipmentChassis MO rn chassis lt id gt computeBlade MO MO rn adaptor lt id gt rn blade lt slotId gt adaptorUnit A Relative N ame Rn may have the value of one or more of the M O s properties embedded in it This allows in differentiating multiple M Os of the same type within the context of the parent Any properties that form part of the Rn as described earlier are referred to as Naming properties For instance multiple blade M Os reside under a chassis MO The blade M O contains the blade identifier as part of its Rn blade Id thereby uniquely identifying each blade M O in the context of a chassis References to Managed Objects The contents of the managed objects are referred to during the operation of Cisco UCS Some of
2. Shandle Connect Ucs lt ip or hostname gt NotDefault x Note After logging on by default the Cisco UCS handle is added to the default Cisco UCS domain list unless the NotDefault option is specified Every cmdlet that operates on a Cisco UCS domain takes the Ucs parameter where the handle can be specified Step 4 Connect to a Cisco UCS domain using a proxy Sproxy New Object System Net WebProxy Sproxy Address http lt url gt lt port gt Sproxy UseDefaultCredentials false Sproxy Credentials New Object System Net NetworkCredential lt user name gt lt password gt Shandle Connect Ucs lt ip or hostname gt Proxy proxy Step5 Usethe following cmdlets a Get Cisco UCS domains consolidated status information Get UcsStatus Ucs Shandle b Get chassis objects Get UcsChassis Ucs handle c Get Get UcsServiceProfile Ucs handle Type instance ist of service profile Instances d Disconnect Disconnect Ucs Ucs Shandle Default UCS If no handleor nameis specified the Cisco UCS domain handle is added to a DefaultUcs domain list unless the ucs parameter is specified the first cmdlet in the pipeline operates on the default Ucs list Connect Ucs lt ip or hostname gt Get the Default Ucs list Get UcsPSSession Get UCS s consolidated status information Get UcsStatus Get the set of all chassis objects Get UcsChassis Get the object pertaining to chassi
3. Subscribe to the W hat s N ew in Cisco Product Documentation as an RSS feed and set content to be delivered directly to your desktop using a reader application The RSS feeds area free service Cisco currently supports RSS Version 2 0 Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and or its affiliates in the U S and other countries To view a list of Cisco trademarks go to this URL www cisco com go trademarks Third party trademarks mentioned are the property of their respective owners The use of the word partner does not imply a partnership relationship between Cisco and any other company 1110R Any Internet Protocol IP addresses used in this document are not intended to be actual addresses Any examples command display output and figures included in the document are shown for illustrative purposes only Any use of actual IP addresses in illustrative content is unintentional and coincidental 2015 Cisco Systems Inc All rights reserved
4. Add UcsMemoryQualification Clock 1067 Units 16 Create a CPU Cores qualification policy with Pentium_4 processor architecture server_pool_qual Add UcsCpuQualification Arch Pentium_4 Create a Diskless Storage qualification policy for servers without a local disk SAN only configuration server_pool_qual Add UcsStorageQualification Diskless yes Create a Rack qualification server_pool_qual Add UcsRackQualification MaxId 1 MinId 1 1 Remove a Server Pool policy qualification Sserver_pool_qual Remove UcsServerPoolQualification Dynamic vNIC connection Policy Create a Dynamic vNIC connection policy dy_vnic_conn with 54 dynamic vNICs and protection enabled for failover mode Sdy_vnic_conn Add UcsDynamicVnicConnPolicy Name dy_vnic_conn AdaptorProfileName Linux DynamicEth 54 Protection protected Remove a Dynamic vNIC connection policy Sdy_vnic_conn Remove UcsDynamicVnicConnPolicy Netw ork Control Policy Create a Netw ork Control policy netw ork_policy with CDP enabled and VIF configured to change the operational state of a vNIC to down when uplink connectivity is lost on the fabric interconnect network_policy Get UcsOrg Level root Add UcsNetworkControlPolicy Name network_policy Cdp enabled UplinkFailAction link down Set Mac security for Network Control policy to allow forged MAC addresses network_policy Set UcsPortSecurityConfig Forge allow Set Mac security for Netw ork Control
5. Get UcsServiceProfile Name sp_name Rename UcsServiceProfile NewName rename_sp_name Filters Get all Service Profile Templates Get UcsServiceProfile Filter Type clike template select Ucs Dn Name Getall Service Profiles with Name containing string SJ C Get UcsServiceProfile Filter Name cmatch SJC select Ucs Dn Name Getall Service Profiles with Name beginning with string SJ C Get UcsServiceProfile Filter Name clike SJc select Ucs Dn Name Get all VLANs with Id betw een 8 and 50 Get UcsVlan Filter Id cbw 8 50 select Ucs Dn Name Id Getall Roles that have the fault privilege Get UcsRole Filter Priv ccontains fault select Ucs Dn Name Getall Roles that have the fault or operations privilege Get UcsRole Filter Priv canybit fault operations select Ucs Dn Name Getall Roles that have the fault and operations privilege Get UcsRole Filter Priv callbits fault operations select Ucs Dn Name Geta list of blades rack units with temperature greater than 45 Get UcsProcessorEnvStats Filter Temperature cgt 45 Get UcsParent Get UcsParent Get UcsParent select Ucs Dn Geta list of faults generated betw een 4 18 2012 9 00 and 4 19 2012 9 30 Get UcsFault Filter Created cbw 4 18 2012 9 00 4 19 2012 9 30 select Ucs Cause Dn Created Get Service Profiles with Name equals SJ C Get UcsServiceProfile Fil
6. PathPattern C Backups ucs yyyy MM dd HH mm config logical xml Create and download system backup of UCS This creates an XM L file that includes all system configuration settings such as usernames roles and locales You can use the file generated from this backup to import these configuration settings to the original fabric interconnect or to a different fabric interconnect You cannot use this file for a system restore Backup Ucs Type config system PathPattern C Backups ucs yyyy MM dd HH mm config system xml1 Create and download config all backup of UCS This creates an XM L file that includes all system and logical configuration settings You can use the file generated from this backup to import these configuration settings to the original fabric interconnect or to a different fabric interconnect You cannot use this file for a system restore T his file does not include passwords for locally authenticated users Backup Ucs Type config all PathPattern C Backups ucs yyyy MM dd HH mm config all xml Import Configuration Theimport function is available for all configuration system configuration and logical configuration files You can perform an import while the system is up and running Import all configuration xml An XM L file that includes all system and logical configuration settings The current configuration information is replaced with the information in the imported configura
7. XmlTag fabricFcoeEstcEp PropertyMap rn phys fcoe slot 1 port 1 portId 1 slotId 1 Configure breakout port 1 5 1 in UCS 6324 Fabric Interconnect B appliance port mo Add UcsManagedObject modifyPresent XmlTag fabricSubGroup PropertyMap dn fabric eth estc B slot 1 aggr port 5 aggrPortId 5 slotId 1 mo Add UcsManagedObject XmlTag fabricEthEstcEp PropertyMap rn phys eth slot 1 port 1 portId 1 slotId 1 Transaction Impact Get UcsTransactionImpact cmdlet estimates the impact of a pending transaction The cmdlet uses the ConfigEstimatelmpact method and returns a Ucsimpact object A message thatis similar to the message provided by UCS Manager GUI is provided as part of the UcsImpact object Start a transaction Start UcsTransaction 36 Create a service profile sp Add UcsServiceProfile Name sp_name Create a vNIC eth0 sp Add UcsVnic Name eth0 IdentPoolName empty_pool Add a VLAN for vNIC make it Native VLAN ethO Add UcsVnicInterface Name primary DefaultNet true Get Transaction Impact Get UcsTransactionImpact One can now observe thata UcsImpact object was returned which indicates a config failure for the service profile that w ould be created etc Cmdlet M eta Information Get M eta information about all Managed Object mapped cmdlets Get UcsCmdletMeta Get M eta information about LsServer mapped cmdlets Get UcsCmdletMeta ClassId LsServer View the hierarchy of th
8. ucsm ucsm jnip Step2 Right click the file and open the file with N otepad 13 Step3 Add the following line after the other property definitions For Java versions earlier than Java 7 Update 45 add lt property name log show encrypted value true gt For Java 7 Update 45 and later versions add lt property name jnip ucsm log show encrypted value true gt Step4 Save and close the file Step5 Right click the file and open with Java Web Start Launcher After the UCS M anager GUI is launched from a PowerShell window with the CiscoUCS module loaded run the ConvertTo U csC mdlet cmdlet Get UCS Server From Release 1 4 1 use the new cmdlet Get UcsServer to get all the servers regardless of the form factor Org Geta list of orgs across Cisco UCS domains in the Default UCS list Get UcsOrg select Ucs Name Dn Geta handle to the root level Org Get UcsOrg Level root Add 5 orgs to UCS L5 Add UcsOrg Ucs lt handle or name gt qwertyS_ Faults Retrieve faults group them by severity Get UcsFault group Severity Retrieve critical faults Get UcsFault Severity critical select Ucs Dn Cause Acknowledge all unacknowledged faults Get UcsFault _ Ack eq no Acknowledge UcsFault Get Cmdlet Hierarchy Flag Get Managed Object including all children Get UcsServiceProfile Name sp_name Hierarchy Get Cmdlet LimitScope Flag Get service profile at the root le
9. Service Profile Association Filters iSCSI Boot vNIC Template vH BA Template Boot Policy Adapter Policy BIOS Policy H ost Firmware Package IPM I Access Profile M anagement Firmware Package Power Control Policy Server Pool Policy QualificationsD ynamic vNIC connection Policy N etwork Control Policy Privileges User Roles Locales User Accounts Remote Authentication RADIUS Remote Authentication TACACS Remote Authentication LDAP RADIUS Provider TACACS Provider LDAP Provider Authentication Domains Communication Services Communication Services Telnet Communication Services CIM XML Communication Services SNM P Communication Services HTTP Communication Services HTTPS Generic M anaged O bject Queries Generic M anaged O bject C mdlets Generic Cmdlet X mIT ag X traProperty in Get Add Set cmdlets CCO Integration Upload Firmware Export to XML Import from XML KVM e Launch the UCSM GUI Configure Scalability Port in UCS 6324 Fabric Interconnect UCS Statistics Transaction Impact Cmdlet M eta Information Compare UcsM anagedO bject Dn Translation Compare UcsM anagedO bject GetPropertyD iff Add Cmdlet M odifyPresent Flag Capability Catalog Update Server Operations PowerTool Cmdlet Generation Generate cmdlets for the specified actions in UCS GUI ConvertTo UcsCmdlet Get xml request along with generated cmdlets ConvertTo UcsCmdlet Verbose Generate cmdlets
10. SlotId 1 Get UcsLocatorLed Set UcsLocatorLed AdminState on BoardType single Id 1 Get UcsServer where _ Dn eq sys chassis 1 blade 1 Enable UcsLocatorLed Turn Off Locator LED for a UCS Server Get UcsChassis Id 1 Get UcsBlade SlotId 1 Get UcsLocatorLed Set UcsLocatorLed AdminState off BoardType single Id 1 Get UcsServer where _ Dn eq sys chassis 1 blade 1 Disable UcsLocatorLed 39 6 Samples You will find samples such as the following packaged with the installation Fetch all Global Policies Sid Get UcsPowerToolConfiguration InstallDir amp id Samples Get UcsGlobalPolicy ps1 bgl abcd18 7 Related Cisco UCS Documentation and Documentation Feedback For more information you can access related documents from the following links Cisco UCS Documentation Roadmap Release Bundle Contents for Cisco U CS Software Release 2 1 To provide technical feedback on this document or to report an error or omission please send your comments to ucs docfeedback external cisco com We appreciate your feedback 8 Obtaining Documentation and Submitting a Service Request For information on obtaining documentation submitting a service request and gathering additional information see the monthly W hat s N ew in Cisco Product Documentation which also lists all new and revised Cisco technical documentation http w ww cisco com en U S docs general w hatsnew whatsnew html
11. e AaaRefresh AaaLogout Configuration ConfigConfM o s LsClone Lslnstantiate FaultAckFaults Query ConfigR esolveD n s ConfigR esolveC lass es ConfigResolveChildren Event M onitor EventSubscribe The class query methods ConfigR esolveC lass es ConfigR esolveC hildren allow a filter to be specified so that a specific set of M Os are matched and returned by the method The supported filters are Property Filters Supported Filter Definition allbits M atch if all specified values present in a multi valued property anybit M atch if any of the specified values present in a multi valued property bw M atch if the property s value lies between the two values specified eq M atch if property s value is the same as the specified value ge M atch if property s value is greater than or equal to the specified value gt M atch if property s value is greater than the specified value le M atch if property s value is lesser than or equal to the specified value It M atch if property s value is lesser than the specified value ne M atch if property s value is not equal to the specified value wcard M atch if property s value matches the pattern specified Composite Filters Acts on sub filters Composite Filter Definition not N egates result of sub filter and True if all the sub filters return true or True if any of the sub filters return t
12. explore the M O types the corresponding nouns supported Verbs properties of the M Os the details of properties including the type N aming Read Write etc and the version of UCS M anager the property was introduced in etc 3 System Requirements Before installing Cisco UCS PowerTool ensure that the system meets the following requirements e Windows PowerShell 2 0 or above must be installed on the system NET Framework Version 2 0 SP1 or later Cisco UCS Manager Cisco UCS PowerTool is compatible with the following Cisco UCS M anager releases Release 3 0 Release 2 5 Release 2 2 Release 2 1 Release 2 0 Windows PowerShell Requirements Cisco UCS PowerTool supports Windows PowerShell 2 0 and later 4 Installation Before installing Cisco UCS PowerTool you must do the following Close any instances of PowerShell running with the PowerTool module loaded e Uninstall all versions of Cisco UCS Power Tool that are older than Cisco UCS PowerTool Release 0 9 1 0 Installation Step 1 Download and launch the installer Step2 Optional Select Create Shortcut to add a shortcut on the desktop Getting Started Step1 Launch Cisco UCS PowerTool from the desktop shortcut Step2 View all cmdlets functions and aliases supported by the Cisco UCS PowerTool Get Command Module CiscoUcsPS Get Command Module CiscoUcsPS group CommandType Get Command Module CiscoUcsPS measure Step 3 Connect to a Cisco UCS domain
13. s Slot 1 Fixed Ports Slot Port 16 an uplink port Get UcsFiLanCloud Id A Add UcsUplinkPort PortId 16 SlotId 1 Unconfigure Fabric A s Slot 1 Fixed Ports Slot Port 16 from being an uplink port Get UcsFiLanCloud Id A Get UcsUplinkPort PortId 16 SlotId 1 Remove UcsUplinkPort Force Port Channel Create an Appliance Port Channel on Fabric A with ports 19 amp 20 ap_pc Get UcsFabricApplianceCloud Id A Add UcsAppliancePortChannel PortId 55 Sap_pc Add UcsAppliancePortChannelMember SlotId 1 PortId 19 Sap_pc Add UcsAppliancePortChannelMember SlotId 1 PortId 20 Add Port Channel to the Appliance VLAN Get UcsApplianceCloud Get UcsVlan Name ApplianceVlan Add UcsVlanMemberPortChannel SwitchId A PortId Sap_pc PortId Remove Port Channel from Appliance VLAN Get UcsApplianceCloud Get UcsVlan Name ApplianceVlan Get UcsVlanMemberPortChannel SwitchId A PortId 55 Remove UcsVlanMemberPortChannel Force Remove Appliance Port Channel Get UcsFabricApplianceCloud id A Get UcsAppliancePortChannel PortId 55 Remove UcsAppliancePortChannel Force VLANs Assignment Add Appliance port A 1 15 to an Appliance VLAN Get UcsApplianceCloud Get UcsVlan name ApplianceVlan Add UcsVlanMemberPort SwitchId A SlotId 1 PortId 15 Remove Appliance port A 1 15 from Appliance VLAN Get UcsApplianceCloud Get UcsVlan name ApplianceVlan Get UcsVlanMemberPort SwitchId A SlotId 1 PortId 15 Rem
14. the default remote authentication Get UcsLdapGlobalConfig Add UcsProviderGroup Name ldapprovidergroup1 Get UcsProviderGroup Name ldapprovidergroup1 Add UcsProviderReference Name 192 168 23 84 Get UcsNativeAuth Set UcsNativeAuth DefLogin ldap Get UcsDefaultAuth Set UcsDefaultAuth ProviderGroup ldapprovidergroup1 Authentication Domains Authentication Domains configure simultaneous support for different authentication methods local TACACS RADIUS and LDAP Active Directory and provider groups Configure a TACAS Provider Group with a TACACS Provider tp Add UcsTacacsProvider Name 192 168 23 84 Key test1234 tpg Get UcsTacacsGlobalConfig Add UcsProviderGroup Name tacacs_pg tpg Add UcsProviderReference Name Stp Name Create an Authentication Domain and add a reference to the TACACS Provider group Sad Add UcsAuthDomain Name adtacacs ad Get UcsAuthDomainDefaultAuth bSet UcsAuthDomainDefaultAuth Realm tacacs ProviderGroup tacacs_pg Now ifa user logs in from the console GUI or XML API with the user name being ucs adtacacs user the TACACS configuration created above will be used for authentication Communication Services Get UCS Web Session Limits which define the maximum number of concurrent web sessions both GUI and xml permitted access to the system at any one time Get UcsWebSessionLimit Set Web Session Limit for the user to 30 and an overall session limit of 255 Set UcsWebSes
15. 1LhYWExLnVjc20ucWFz YWOtbGFiLm1luLON1cnRFbnJvbGwvYmxyLXNhbS1xYS1hYWExLnVvjc20ucWFzYwot bGFiLm1uX1VDU00uY3J OMADGCSqGSIb3 DOEBBQUAA4IBAQBO1LhNPBrDqfu9hrI1E o6YIGgGhHNZ4cxwP1hz0U9w4iskWNVH1w7 lJd 7U WUvulGWey1n73i2r2s0eQqy3 Isx 2dKS4n3YX7x1hYpMubPCCL1 fHI PqQwh9 dd1lHyKFtxqMd6 jQJyhLNOX5yz4h HpORf14xGGWYsv1Jjqqr2jREbV3kE u0q0NNi 2efWSOYHq9SESKquicXgM15LyC ZKQYol1UseboYK9 0XgLc2yww 7 5UcgynLZRxgbAPstNeqPTWh12kWogr04zkpo18Y Vz2yB2BA6 ugCbtJulIw3 52HzzHU9FM4Y7ROr9k75CNJAIwScu56hX2rfIFUwnSMT gWvg END CERTIFICATE s Set the keyring for https Get UcsHttps Set UcsHttps KeyRing keyring1024 AdminState enabled Access UCSM through https should now give no untrusted connection message Generic Managed Object Queries Get Managed Object of a specific DN Get UcsManagedObject Dn sys chassis 1 Get all Managed Objects of a particular class Get UcsManagedObject ClassId faultInst Get DNs of Managed Objects of a particular class Get UcsManagedObject ClassId faultInst DnList Get names of all Service Profiles from org root Get UcsOrg Level root Get UcsManagedObject ClassId lsServer Select Name Get immediate children of org root Get UcsOrg Level root Get UcsChild Get parent of a Managed Object Get UcsOrg Name Finance Get UcsParent Generic Managed Object Cmdlets Create a VLAN using parent object propMap Name lan_c
16. Add a WWPN initiator to the WWPN pool Swwpn_pool Add UcsWwnInitiator Id 20 00 00 25 B5 00 00 2D Name wwpn_initiator Set descr for WWPN initiator Swwpn_pool Get UcsWwnInitiator Id 20 00 00 25 B5 00 00 2D Set UcsWwnInitiator Descr WWPN initiator modified Remove a WWPN pool Swwpn_pool Remove UcsWwnPool IQN Suffix Pools amp Blocks GetIQN pool in UCS Get UcsIqnPoolPool Name iqnSuffixPool Create IQN pool iqn_pool Get UcsOrg Level root Add UcsIgnPoolPool Name igqn_pool Prefix I Create IQN pool block iqn_pool_block ign_pool Add UcsIgnPoolBlock Suffix B From 0 To 10 Remove IQN pool block ign_pool_block Remove UcsIgnPoolBlock Remove IQN pool Siqn_pool Remove UcsIgqnPoolPool 17 Port Roles Make Fabric A s Slot 1 Fixed Ports Slot Port 19 a server port Get UcsFabricServerCloud Id A Add UcsServerPort PortId 19 SlotId 1 Unconfigure Fabric A s Slot 1 Fixed Ports Slot Port 19 from being a server port Get UcsFabricServerCloud Id A Get UcsServerPort PortId 19 SlotId 1 Remove UcsServerPort Force Make Fabric A s Slot 1 Fixed Ports Slot Port 15 an appliance port Get UcsFabricApplianceCloud Id A Add UcsAppliancePort PortId 15 SlotId 1 Unconfigure Fabric A s Slot 1 Fixed Ports Slot Port 15 from being an appliance port Get UcsFabricApplianceCloud Id A Get UcsAppliancePort PortId 15 SlotId 1 Remove UcsAppliancePort Force Make Fabric A
17. B5 00 00 00 24 Adda LAN boot Sboot_policy Add UcsLsbootLan Order 4 Add UcsLsbootLanImagePath VnicName eth0 Type primary Remove a Boot policy Sboot_policy Remove UcsBootPolicy Adapter Policy Add a custom Eth Adapter policy that disables receive checksum offload Seth_adap_policy Add UcsEthAdapterPolicy Name eth_adap_policy Descr Custom Adapter Policy Seth_adap_policy Set UcsEthAdapterOffloadProfile TcpRxChecksum disabled Add a FC Adapter policy Sfc_adap_policy Add UcsFcAdapterPolicy Name fc_adap_policy Descr Fibre Channel Adapter Policy Enable FCP error recovery for Fibre Channel Adapter policy fc_adap_policy Set UcsAdaptorFcErrorRecoveryProfile FcpErrorRecovery enabled Add an iSCSI Adapter policy Siscsi_adap_policy Add UcsIScsiAdapterPolicy Name iscsi_policy Enable TCP timestamp HBA mode and Boot to target for iSCSI Adapter policy iscsi_adap_policy Set UcsIScsiAdapterPolicyProperties BootToTarget yes TcpTimeStamp yes HbaMode yes BIOS Policy Create a Bios policy and enable reboot on Bios setting change Sbios_policy Add UcsBiosPolicy Name bios_policy RebootOnUpdate yes Modify USB system idle pow er optimizing setting to high performance Sbios_policy Set UcsBiosV USBSystemIdlePowerOptimizingSetting VpUSBIdlePowerOptimizing high performance Enable Virtulization technology Sbios_policy Set UcsBiosVfIntelVirtualizationTechnology VpIntelVirtualization
18. BepOve07UU 6kDnVwxGh9uQrgAgri50PatbbiE4zbjU1LD2WYjZ03UH UGOP Ub30caL OHteHQh dowt EuAprJdeUp4jVj ZwiaTbC8URAedMy8Dj zP3WsbxMS CHtF TZ dHBt Z3ptK syomrXro2 Kv0HW190921ryXHnz133sSDmFd LVbvZLqD2 PM2UzZuX 4C5S 44 Hghlv1uiNQ3 yRDcCAWEAAaOCAWwwggF oMASGA1UdDWwQEAwIBhjAPBgNVHRMBAf 8E BTADAQH MBOGA1UdDgQWBBRG311HsV1u dVTpUmIc9MNs4r DCCARUGALUdHwWSC AQwwggEIMIIBBKCCAQCggf2GgbxsZGFwOi 8vLONOPVVDU00sQ0049YmxyLXNhbS1x YSLhHYWExLENOPUNEUCXDTJ 1QdWJsaWM1MjBLZXk1MjBTZXJ2aWN1lcyxDTj1TZXJ2 aWNlcyxDTj1Db2 5maWd1cmF 0aW9uLERDPXVJc20SREM9CWFzZYWOtbGFiLERDPWlu P2N1lcnRpZm1j YXR1UmV2b2NhdGlvbkxpc3Q YmFzZT9IVYmp1Y3RDbGFzcz1jUkxE aXN0cm1idXRpb250b21ludIY8aHROcDovL2J3scilzYWOtcWEtYWFhMS51Y3NtLnFh c2FtLWxhYi 5pbi 9DZXJORW5Syb2xsL1VDU0 0uY37TsMBAGCSSGAQQBgj cVAQQDAGEA MAOGCSqGSIb3 DOEBBQUAA4IBAQBeuIZYIe107ZhXalPjCs YeBdR S7 i0GKDYJq nLtyWAua8YMyJQ57vJFBOI5MbEmHPt 2JaKmFGRSYTM LH417Z7vQUsPkaW5h1kWk zQ4 VQusHEasioazFHbfSDPVzZA9 IRd71TNHGp5ruVoaThQJUouavenYSp5FFeOCM xQCFUtGTk1 1XHoRV8ROWHjv24YXLPpxC 7DwMtmKLS0OMGP8su9 nf40rLGB2M1 OcVhfAqwliMovTfg6uzkI 6xcss3xI1ly7tuFOBZ60CkBVD 1C7ZhYe212RN75U06Z jL77g422u0dkMO5TSqj 6pbI wJmIQMsS45NDitoM90x7TpvZ END CERTIFICATE Seta TP and certificate for a key ring Get UcsKeyRing keyring1024 Set UcsKeyRing Tp TPkeyring1l024 Cert teat BEGIN CERTIFICATE MIIFnzCCBIegAwI BAgIKRy4WzAAAAAAADTANBgkqhkiG9w0BAQUFADBUMRIWEAYK CZImiZPyLGQBGRYCaW4xGTAXB
19. Get UcsServiceProfile Type updating template Getall service profile initial templates in UCS Get UcsServiceProfile Type initial template 20 Add a new service profile sp_name from service profile template sp_template Add UcsServiceProfile SrcTemplName sp_template Name sp_name Adda service profile Add UcsServiceProfile Name sp_name BootPolicyName boot_policy BiosProfileName bios_policy HostFwPolicyName 1 4 3i MgmtFwPolicyName 1 4 3i MaintPolicyName maint_policy MgmtAccessPolicyName ipmi_policy PowerPolicyName power_policy ScrubPolicyName scrub_policy SolPolicyName sol_policy StatsPolicyName stats_policy AgentPolicyName agent_policy DynamicConPolicyName vNIC_policy ExtIPState static IdentPoolName UUID_pool LocalDiskPolicyName disk_policy Uuid 00000000 0000 0000 0000 000000000008 UsrLbl serviceprofile Get power state ofa service profile Get UcsServiceProfile Name sp_name Get UcsServerPower Bind service profile to a template Get UcsServiceProfile Name sp_name Set UcsServiceProfile SrcTemplName sp_template Remove a service profile Get UcsServiceProfile Name sp_name Remove UcsServiceProfile Service Profile Components Create a service profile sp Add UcsServiceProfile Name sp_name Create a vNIC with reference to QoS Policy eth0 sp Add UcsVnic Name eth0 QosPolicyName qos_policy Add a VLAN for vNIC make it Native VLAN ethO Add UcsVnicInt
20. Technology enabled Enable quite boot for Bios policy Sbios_policy Set UcsBiosVfQuietBoot VpQuietBoot enabled Resume Ac on power loss to last state bios_policy Set UcsBiosVfResumeOnACPowerLoss VpResumeOnACPowerLoss last state Disable boot option retry bios_policy Set UcsBiosVfBootOptionRetry VpBootOptionRetry disabled Disable console redirection bios_policy Set UcsBiosVfConsoleRedirection VpConsoleRedirection disabled Remove a Bios policy bios_policy Remove UcsBiosPolicy 25 Host Firmware Package Create a Host Firmware package and set lgnoreCompCheck to No Shost_firm_pack Add UcsFirmwareComputeHostPack Name host_firm_pack IgnoreCompCheck no Add a Host Firmware pack item Shost_firm_pack Add UcsFirmwarePackItem Type adaptor HwModel N20 AC0002 HwVendor Cisco Systems Inc Version 1 4 1i Set version of Host Firmware pack item shost_firm_pack Get UcsFirmwarePackItem HwModel N20 AC0002 Set UcsFirmwarePackItem Version 2 0 1t Remove Host Firmware package Shost_firm_pack Remove UcsFirmwareComputeHost Pack IPMI Access Profile Create an IPMI Access profile Sipmi_profile Add UcsIpmiAccessProfile Name ipmi_profile Add an IPMI user with Administrator s role Sipmi_profile Add UcsAaaEpUser Name ipmiUser Priv admin Modify role for IPM I user Sipmi_profile Get UcsAaaEpUser Name ipmiUser Set UcsAaaEpUser Priv readonly Remove an IPMI Access profile Sip
21. UCS Server Get UcsOrg Level root Get UcsServiceProfile Name testSP LimitScope Get UcsServerPower Set UcsServerPower State hard reset immediate Get UcsServiceProfile name testSP Reset UcsServer Booting UCS Server Get UcsOrg Level root Get UcsServiceProfile Name testSP LimitScope Get UcsServerPower Set UcsServerPower State admin up Get UcsServiceProfile name testSP Start UcsServer Shutting down UCS Server Get UcsOrg Level root Get UcsServiceProfile Name testSP LimitScope Get UcsServerPower Set UcsServerPower State soft shut down Get UcsServiceProfile name testSP Stop UcsServer Power Cycling UCS Server Get UcsOrg Level root Get UcsServiceProfile Name testSP LimitScope Get UcsServerPower Set UcsServerPower State cycle immediate Get UcsServiceProfile name testSP Restart UcsServer Resetting CMOS for a UCS Server Get UcsOrg Level root Get UcsServiceProfile Name testSP LimitScope Get UcsServerPower Set UcsServerPower State cmos reset immediate Get UcsServiceProfile name testSP Reset UcsServerCmos Resetting BMC for a UCS Server Get UcsOrg Level root Get UcsServiceProfile Name testSP LimitScope Get UcsServerPower Set UcsServerPower State bmc reset immediate Get UcsServiceProfile name testSP Reset UcsServerBmc Turn On Locator LED for a UCS Server Get UcsChassis Id 1 Get UcsBlade
22. age to the Default Ucs system Send UcsFirmware LiteralPath C work Images ucs k9 bundle b series 2 0 1q B bin Export to XML Export the configuration of a Managed Object This cmdlet exports the configuration of the managed object and the entire hierarchy Export Ucsxml Dn org root org Finance Hierarchy LiteralPath C cmd xml Export the xml of a Managed Object into a file Get UcsServiceProfile Name sp_name Export UcsMoXml Out File c mo xml Import from XML Import the configuration from the XML file Import Ucsxml LiteralPath C cmd xml Import xml of a Managed Object and convert it into objects Import UcsMoXml LiteralPath c mo xml KVM Start a KVM session for service profile and add a customized title for the KVM window Get UcsServiceProfile Name sp_name LimitScope Start UcsKvmSession FrameTitle Custom Frame Title amp 1 2 3 Start a KVM session for blade 1 Start UcsKvmSession Blade Get UcsBlade SlotId 1 ChassisId 1 Starta KVM session for rack unit 1 Start UcsKvmSession RackUnit Get UcsRackUnit Id 1 Launch the UCSM GUI Connect to UCSM and launch the UCSM GUI Start UcsGuiSession 35 Enable secure Logging Some X M L transactions are treated as secure and the UCSM GUI does not log them TheLogAIIX ml flag enables secure logging Start UcsGuiSession LogA1l1Xml1 Launch the UCSM GUI using the Get UcsStatus and Start UcsGuiSession cmdlets Get UcsStatus Start UcsGuiSessi
23. ale User Accounts Add a local user user Add UcsLocalUser Name jdoe Pwd Passw0rdJdoe Edita local user user Set UcsLocalUser FirstName John Lastname Doe 28 Add to a user user Add UcsUserRole Name user_role Remove a local user Get UcsLocalUser Name jdo Remove UcsLocalUser Remote Authentication RADIUS Set global configuration for RADIUS authentication Set UcsRadiusGlobalConfig Descr RADIUS authentication configuration Timeout 20 Retries 3 Force Create a RADIUS server instance with server key test1234 and maximum 2 retries Add UcsRadiusProvider Name 192 168 23 84 Key test1234 Retries 2 Set RADIUS as default authentication Set UcsDefaultAuth Realm radius Remote Authentication TACACS Set global configuration for TACACS authentication Set UcsTacacsGlobalConfig Descr TACACS authentication configuration Timeout 20 Retries 3 Adda TACACS Provider Add UcsTacacsProvider Name 192 168 23 84 Key test1234 Set TACACS as default authentication Get UcsNativeAuth Set UcsNativeAuth DefLogin tacacs Remote Authentication LDAP Set global configuration for LDAP authentication Set UcsLdapGlobalConfig Descr LDAP authentication configuration Timeout 20 Retries 3 Force Add a LDAP Provider add UcsLdapProvider Attribute CiscoAVPair Basedn CN Users DC qasamlab DC com FilterValue cn Suserid Key Bbv03515 Name 10 193 23 84 Rootdn CN Admi
24. aryTarget Add UcsVnicIScsiStaticTargetIf VnicVlanp vlan IpAddress 10 65 224 16 Name ign 1992 08 com netapp sn 135037408 Priority 1 SprimaryLun Add UcsVnicLunb VnicIScsiStaticTargetIf SprimaryTarget Id 2 Create a specific boot policy SbootPolicy Add UcsBootDefinition ServiceProfile sp If installation is required create a LsbootVirtualM edia Svmedia Add UcsLsbootVirtualMedia BootDefinition bootPolicy Access read only Order 1 Add iSCSI enic in the boot path SiscsiBoot Add UcsLsbootIScsi BootDefinition bootPolicy Order 2 SiscsiBootImagePath Add UcsLsbootIScsiImagePath LsbootIscsi SiscsiBoot Type primary ISCSIVnicName iscsienicl Complete Ucs Transaction Complete UcsTransaction Out null vNIC Template Create an Initial vNIC template Svnic_init_temp Add UcsVnicTemplate Name vnic_init_temp TemplType initial template SwitchId A 23 Create an Updating vNIC template Svnic_update_temp Add UcsVnicTemplate Name vnic_update_temp TemplType updating template SwitchId B Target adaptor Add a VLAN to an Initial vNIC template vnic_init_temp Add UcsVnicInterface Name fi_a_vlan Add a VLAN to an Initial vNIC template and make it Native VLAN vnic_init_temp Add UcsVnicInterface Name lan_cloud_vlan DefaultNet true Set MAC Pool Netw ork Control policy and QoS policy for Initial vN IC template Svnic_init_temp Set UcsVnicTemplate IdentPoolName mac_pool NwCtrlPolicyName network_p
25. ate O nly Yes Yes No Read Write Yes Yes Yes Operational Yes No No Read Only The table below lists the types that can come down the pipeline for corresponding cmdlets Verb Type Pipeline Input Get Singleton none Non singleton Parent Type Add Singleton noneN on singleton Parent Type Set M O has naming property Same Type M O has no naming property Same or Parent Type Remove Same Type The table below lists the methods invoked to generate the required XM L requests Cmdlet Method Add Ucs ConfigC onfM os Set Ucs1 Get Ucs ConfigR esolveC lass with filters Get UcsM anagedO bject C lassl d ConfigR esolveC lass Get UcsM anagedO bject Classld Dnlist ConfigFindD nsByC lassid Get UcsM anagedO bject Dn ConfigR esolveD ns Connect U cs AaaLogin Disconnect Ucs AaaLogout Background AaaR efresh Copy U csServiceProfile LsClone Add UcsServiceProfileF romTemplate Get UcsC hild LsInstantiateTemplate LsInstantiateN Template LsInstantiateN N amedTemplate ConfigR esolveC hildren Acknowledge UcsF ault FaultAckFaults Start U csK vmSession Watch Ucs AaaG etN ComputeA uthTokenByDn EventSubscribe First Watcher Clear UcsStatistics StatsC learl nterval Get UcsTransactionI mpact ConfigEstimatel mpact 1 This is not a cmdlet It isa background service Get UcsC mdletM eta is useful cmdlet to
26. d with a specified Key Export UcsPSSession LiteralPath C work labs xml Disconnect Ucs Login can be initiated from credentials stored in a file Connect Ucs LiteralPath C work labs xml Specify proxy while logging in with credentials stored in a file Sproxy New Object System Net WebProxy Sproxy Address http lt url gt lt port gt Sproxy UseDefaultCredentials false Sproxy Credentials New Object System Net NetworkCredential lt user name gt lt password gt Connect Ucs LiteralPath C work lab xml Proxy proxy Login to an additional system and add the credentials to the file Connect Ucs lt ip3 gt Export UcsPSSession Path C work lab xml Merge IPv6 Support Allows connectivity to Cisco UCS M anager using IPv6 addresses Provides access to external client applications such as scp ftp tftp ntp dns and external client services such as sshd httpd snmpd over IPv6 addresses Connect Ucs 2001 0202 3F E1 8 9 SSL Handling When a user connects to a Cisco UCS server and the server cannot recognize any valid certificates connection establishment depends on InvalidC ertificateA ction InvalidC ertificateA ction is set to Ignore by default By default PowerTool is configured to establish the connection without taking into account if the certificate is invalid You can override this using the Set UcsPowerToolConfiguration cmdlet Get UcsPowerToolConfiguration Set UcsPowerToolConfigu
27. e ServiceProfile LsServer class Get UcsCmdletMeta Noun UcsServiceProfile Tree Get M eta information for the UcsServiceProfile noun Get UcsCmdletMeta Noun UcsServiceProfile See the Managed Object information for LsServer Get UcsCmdletMeta ClassId LsServer Select ExpandProperty MoMeta See the Managed Object property information for LsServer Get UcsCmdletMeta ClassId LsServer Select ExpandProperty MoMeta Select ExpandProperty PropertyMeta Compare UcsM anagedObject Dn Translation Create a service profile under org A Assume that orgs A amp B are in place already Sorg Get UcsOrg Name A LimitScope SdestOrg Get UcsOrg Name B LimitScope Ssp Add UcsServiceProfile Org org Name abc Create a translation map with DNs of entities that needs to be translated SxlateDn S xlateDn org root org A ls abc org root org B 1s xyz Combine the translation map with Compare UcsMo to see the changes required Compare UcsManagedObject Get UcsServiceProfile Org destOrg Name xyz LimitScope Get UcsServiceProfile Org Sorg Name abc LimitScope XlateMap xlateDn Combine the translation org with Compare to see the changes required Compare UcsManagedObject Get UcsServiceProfile Org destOrg Name xyz LimitScope Get UcsServiceProfile Org Sorg Name abc LimitScope XlateOrg org root org B 37 Sync a service profile from org A to org B while renaming it Sync UcsMa
28. edSlot ChassisId 1 SlotId 4 Add Rack 1 to the server pool server_pool Add UcsComputePooledRackUnit Id 1 Remove Server pool Sserver_pool Remove UcsServerPool UUID Suffix Pools amp Blocks Create a UUID Suffix pool Suuid_pool Add UcsUuidSuffixPool Name uuid_pool Prefix 3864EB9A 89A2 11DF Add a block of UUID Suffixes to the suffix pool uuid_pool Add UcsUuidsuffixBlock From 0000 000000000001 To 0000 00000000002c Remove a UUID Suffix pool Suuid_pool Remove UcsUuidSuffixPool WWNN Pools amp Blocks Get all WWNN pool in UCS Get UcsWwnPool Purpose node wwn assignment Create a WWNN pool Swwnn_pool Add UcsWwnPool Name wwnn_pool Purpose node wwn assignment 16 Add a WWN block to the WWNN pool Swwnn_pool Add UcsWwnMemberBlock From 20 00 00 24 B5 00 00 00 To 20 00 00 24 B5 00 00 09 Add a WWNN initiator to the WWNN pool Swwnn_pool Add UcsWwnInitiator Id 20 00 00 25 B5 00 00 2C Name wwnn_initiator Remove a WWNN initiator Swwnn_pool Get UcsWwnInitiator Id 20 00 00 25 B5 00 00 2C Remove UcsWwnInitiator Remove a WWNN pool wwnn_pool Remove UcsWwnPool WWPN Pools amp Blocks Get all WWPN pool in UCS Get UcsWwnPool Purpose port wwn assignment Create a WWPN pool Swwpn_pool Add UcsWwnPool Name wwpn_pool Purpose port wwn assignment Add a WWN block to the WWPN pool Swwpn_pool Add UcsWwnMemberBlock From 20 00 00 24 B5 00 00 00 To 20 00 00 24 B5 00 00 09
29. erface Name fi_a_vlan DefaultNet true Add a VLAN for vNIC ethO Add UcsVnicInterface Name fi_b_vlan Create a vNIC and instantiate from template sp Add UcsVnic Name ethl NwTemplName vnic_template Create a VHBA fc0 sp Add UcsVhba Name fc0 IdentPoolName wwpn_pool Add a VSAN for vHBA fc0 Set UcsVhbaInterface Name fi_b_vsan Adda WWNN pool sp Add UcsVnicFcNode IdentPoolName node_default Service Profile Association Associate a service profile to a blade Get UcsServiceProfile sp_name LimitScope Associate UcsServiceProfile Blade Get UcsBlade Chassis 1 SlotId 1 Associate service profile to a rack Get UcsServiceProfile sp_name LimitScope Associate UcsServiceProfile RackUnit Get UcsRackUnit ServerId 1 21 Associate service profile to a server pool Get UcsServiceProfile sp_name LimitScope Associate UcsServiceProfile ServerPoolName FileServerPool Associate a service profile to a server pool along with server pool qualification policy Get UcsServiceProfile sp_name LimitScope Associate UcsServiceProfile ServerPoolName file_server_pool ServerPoolQualificationPolicyName file_server_pool Disassociate a service profile Get UcsServiceProfile sp_name LimitScope Disassociate UcsServiceProfile Create a copy of a service profile Get UcsServiceProfile Name sp_name LimitScope Copy UcsServiceProfile NewName copy_sp_name Rename a service profile
30. for action in the specified GUI log ConvertTo UcsCmdlet GuiLog LiteralPath C Work centrale_7128 log 1 ConvertTo UcsCmdlet GuiLog Path C Work centrale_71 log Generate cmdlets for the specified xml request ConvertTo UcsCmdlet Xml Request lt lsClone dn org root ls spl inTargetOrg org root inServerName sp2 inHierarchical false gt lt 1lsClone gt Generate cmdlets for the specified xml requests in file ConvertTo UcsCmdlet Xml LiteralPath C Work config xml Generate cmdlets for the specified MO From the version 1 2 1 you can pipe a manage object to the ConvertTo UcsC mdlet and get the cmdlets required to create the managed object Get UcsServiceProfile Name spl ConvertTo UcsCmdlet Get UcsServiceProfile Name spl Hierarchy ConvertTo UcsCmdlet Generating Cmdlets From UCS Manager GUI Actions You can generate cmdlets for the actions performed on the UCS M anager GUI using the ConvertTo UcsC mdlet cmdlet The Cisco UCS M anager GUI considers a few XML snippets as secure and does not log them So the ConvertTo UcsC mdlet does not find the logs to do the translation To log the xml snippets of all the user actions in the GUI launch the UCSM GUI by using one of the following ways Using Start UcsGuiSession LogAIIX ml cmdlet Manually launch the UCS M anager GUI by performing the following steps Step1 Save the launch link in jnlp file format For example https lt ip_or_hostname gt
31. goJkiaJk ISZAEZFg1xYXNhbS1SYWIxFDASBgoJ kiaJk ISZAEZFgR1Y3NtMQ0wCwYDVQQDEWRVQ1NNMB4XDTEXMT IwWMTEZMzYwOVoxX DTEyMTIWMTEZNDYwOVowF j EUMBIGA1UEAxMLc2F2 YnUtdHBpMDEwggEiMA0GCSqG 32 SIb3 DOEBAQUAA4 IBDwAwggEKAoIBAQC4eSJyX6J I1ZSwSFXu NmEWOBEOIOEEX zpMJ yxh SJKsgybicPAr0SRzZzgDKRhHEIoOISsMSMXigTFpErMgF4tkT3 2HNUeL1b5M N e 1cx3M70gQfDWUOMBFVP9QMCTkpn7cPAnOEoYaCx4J7 9XQU 6RyX1 ullqAiCch tz1jPWnTvzNGTacp opZYwtJ0 5iY6ERNQ8WKJke5 60ul zUhcq40y30KX i1lG kI IG8GT26Yv6a KPKARDSO qg GZSqkmIcghETPYThCt 3CWDO7AYxRyQtNnGDzN10Ed YaCQhcbzoD8qfogpnsWIMARzgYC2HWANY suZ0zO03NGrFKkeg6ep7AgMBAAGj ggKv MIICqzAfBgNVHREBAf8EFTATggt zYXZidS10cGkwMYcECkF4JTAGBgNVHQO4EFgQU ns86LcentpqeJmT8140jcf Yt2DQWHWYDVRO j BBgwFoAURt 5dR7Fdbv3VU6VJiHPT DbOK gwggEVBgNVHR8EggEMMI IBCDCCAQSgggEAoTH9hoG8bGRhcDovLly9DTj1V QINNLENOPWJscilzYWOtcWEt YWFhMSxDTj1DRFAsQ049UHVibG1jJTIwS2V5JTIWw U2Vydm1j ZXMsQ049U2Vydml1j2ZXMsQ04902 9uZmlndxXJhdGlvbixEQz11Y3NtLERD PXFhe2FtLWxhYixEQz1pbj9jZXJ0aWZpY2FOZVJ1dm9jYXRpb25MaXNOP2Thc2U b2TqZWN0Q2xhc3M9Y1UMRG1zdHJpYnV0aW9uUG9pbnSGPGhOdHA6LYyIibHItc2Ft LXFHLWFhHYTEUGdWNzbS5xYXNhbS1s YWluaW4vQ2VydEVucm9sbC9VOINNImNybDCC ASOGCCSGAQUFBWEBBI IBHzCCARSwgawGCCsGAQUFBzAChoGfbGRhcDovLy9DTj1V QINNLENOPUFJQSxDTJ 1Q0dWJsaWM1Mj BLZXk1MjBTZXJ2awNlcyxDTj1TZXJ32awN1 cyxDTj 1Db25maWd1cmF0aW9uLERDPXVjc20SREM9cWFzYWOtbGFiLERDPW1uP2NB Q2VydGlmaWNhdGU YmFzZT9vYmp1Y3RDbGFzcz1jZXJ0aWwZpY2F0aw9uQxXV0aG9y aXR5MGoGCCSGAQUFBzZACh150dHRw0i 8vYmxyLXNhbS1xYS
32. ike Ucs select Name Name Acknowledge UcsBlade Acknowledge UcsChassis Acknowledge UcsFault Acknowledge UcsFex 10 Acknowledge UcsRackUnit Acknowledge UcsServerUnit Acknowledge UcsSlot Add UcsMo Associate UcsServiceProfile Compare UcsMo Decommission UcsBlade Decommission UcsChassis Decommission UcsFex Decommission UcsRackUnit Decommission UcsServerUnit Disassociate UcsServiceProfil Get UcsCentral Get UcsMo Recommission UcsRackUnit Recommission UcsBlade Recommission UcsChassis Recommission UcsFex Recommission UcsServerUnit Remove UcsBlade Remove UcsCartridge Remove UcsChassis Remove UcsFex Remove UcsMo Remove UcsRackUnit Set UcsMo Sync UcsMo Unregister UcsCentral 5 Examples The examples in this section show how to execute the cmdlets This following examples are included in this section PowerTool Cmdlet Generation Get UCS Server Org Faults Get Cmdlet Hierarchy Flag Get Cmdlet LimitScope Flag Transaction Support VLANs Creation amp Deletion MAC Pools amp Blocks Server Pools e UUID Suffix Pools amp Blocks WWNN Pools amp Blocks WWPN Pools amp Blocks IQN Suffix Pools amp Blocks Port Roles Port Channel VLANs Assignment Blade Power amp Temperature Statistics Configuration Backup Import Configuration Managed O bject Synchronization 12 M onitoring UCS M anaged Object Transitions Tech Support Service Profile Service Profile Components
33. in an error if existing VLANs created again with or without changes Invoking Add UcsVlanpwith the M odifyPresent option addresses this by modifying the VLANs instead if they already exist lc Get UcsLanCloud Start UcsTransaction Import Csv C vlans csv lc Add UcsVlan ModifyPresent Name _ Name Id _ Id Complete UcsTransaction Capability Catalog Update The capability catalog is a set of tunable parameters strings and rules Cisco UCS uses the catalog to update the display and configurability of components such as newly qualified DIM M s and disk drives for servers To update the capability catalog from a local file source you can use the following cmdlet Update UcsCatalogue LiteralPath C Work ucs catalog 2 2 3a T bin Server Operations Added the following new simplified cmdlets to perform server operations 38 Action Description Cmdlets in PowerTool Release 1 4 1 or earlier Cmadlet in PowerTool Release 1 5 1 and later Acknowledge UCS Server Get UcsChassis Id 1 Get UcsBlade SlotId 1 Set UcsBlade AdminPower policy Le rediscover PolicyOwner local Get UcsServer where _ Dn eq sys chassis 1 blade 1 Confirm UcsServer Decommission UCS Server Get UcsChassis Id 1 Get UcsBlade SlotId 1 Set UcsBlade AdminPower policy Lc decommission PolicyOwner local Get UcsServer where _ Dn eq sys chassis 1 blade 1 Disable UcsServer Hard Reset
34. loud_vlan Id 500 Get UcsLanCloud Add UcsManagedObject ClassId FabricVlan PropertyMap SpropMap Create a VLAN using parent object modify if already existing SpropMap Name lan_cloud_vlan Id 500 Add UcsManagedObject ClassId FabricVlan PropertyMap S propMap Parent Get UcsLanCloud ModifyPresent Create a VLAN using DN SpropMap Dn fabric lan net lan_cloud_vlan Name lan_cloud_vlan Id Add UcsManagedObject ClassId FabricVlan PropertyMap SpropMap i 500 Modify a VLAN using Managed Object Svlan Get UcsVlan Name lan_cloud_vlan propMap DefaultNet yes Id 501 Sharing primary Set UcsManagedObject PropertyMap propMap ManagedObject vlan Modify a VLAN using DN SpropMap Dn fabric lan net lan_cloud_vlan DefaultNet yes Id 501 Sharing primary Set UcsManagedObject PropertyMap propMap ClassId FabricVlan Remove a Managed Object Get UcsOrg Name Finance Remove UcsManagedObject Generic Cmdlet XmlTag The XmITag parameter enables us to work with unknown Managed Objects Create a multicast policy Add UcsManagedObject XmlTag fabricMulticastPolicy PropertyMap Dn org root mc policy multicastpolicy Name multicastpolicy PolicyOwner local SnoopingState enabled QuerierState disabled Set snooping state to disabled for multicast policy Set UcsManagedObject XmlTag fabricMulticastPolicy PropertyMap Dn org root mc policy multicast
35. mi_profile Remove UcsIpmiAccessProfile Management Firmware Package Create a Management Firmware package and set IgnoreCompCheck to no Smgmt_firm_pack Add UcsFirmwareComputeMgmtPack Name mgmt_firm_pack IgnoreCompCheck no Add a Management Firmware pack item mgmt_firm_pack Add UcsFirmwarePackItem Type blade controller HwModel N20 B6620 1 HwVendor Cisco Systems Inc Version 1 4 1i Set version of Management Firmware pack item mgmt_firm_pack Get UcsFirmwarePackItem HwModel N20 B6620 1 Set UcsFirmwarePackItem Version 2 0 1t Remove Management Firmware package Smgmt_firm_pack Remove UcsFirmwareComputeMgmt Pack Pow er Control Policy Create a Power Control policy Priority is ranked ona scale of 1 10 where lindicates the highest priority and 10 indicates low est priority The default priority is 5 Spower_policy Add UcsPowerPolicy Name power_policy Prio 6 26 Create a Power Control policy with power capping no cap Spower_nocap Add UcsPowerPolicy Name power_nocap Prio no cap Remove Power Control policy Spower_policy Remove UcsPowerPolicy Server Pool Policy Qualifications Create a Server Pool policy qualification Sserver_pool_qual Add UcsServerPoolQualification Name server_pool_qual Create an Adaptor qualification Sserver_pool_qual Add UcsAdaptorQualification Create a Memory qualification policy with memory clock speed of 1067Mhz and 16 memory units server_pool_qual
36. nagedObject Compare UcsManagedObject Get UcsServiceProfile Org destOrg Name xyz LimitScope Get UcsServiceProfile Org org Name abc LimitScope XlateMap xlateDn Force select Dn Compare UcsManagedObject GetPropertyDiff Use GetPropertyDiff function on output of Compare UcsManagedObject to see the difference in properties sp1 Get UcsServiceProfile Dn org root ls abc sp2 sp1 Set UcsServiceProfile Descr GetPropertyDiff Example Force Sdiff Compare UcsManagedObject sp1 sp2 Display all the properties having difference If diff is an array of objects then GetPropertyDiff w orks on diff lt index gt diff GetPropertyDiff For a specific property diff GetPropertyDiff descr Include all operational properties of MOs in comparison Compare UcsManagedObject sp1 sp2 IncludeOperational Add Cmdlet ModifyPresent Flag The M odifyPresent option ensures that the add cmdlets modify the M O if it already exists instead of returning an error Create a csv file with Name Id pairs Name Id foreach vlan in 501 510 vlan vlan vlan Out File c vlans csv Import the Name Vlan pairs from the file and create those vians Slc Get UcsLanCloud Start UcsTransaction Import Csv C vlans csv lc Add UcsVlan ModifyPresent Name _ Name Id _ Id Complete UcsTransaction Edit the csv file to edit the ids or add new vians Re running the same Add UcsVlan snippet above will result
37. nistrator CN Users DC qasamlab DC com Set LDAP as default authentication Get UcsNativeAuth Set UcsNativeAuth DefLogin ldap RADIUS Provider Create a RADIUS server instance with server key test1234 and maximum 2 retries Add UcsRadiusProvider Name 192 168 23 84 Key test1234 Retries 2 Add a RADIUS provider group and set it as the default remote authentication Get UcsRadiusGlobalConfig Add UcsProviderGroup Name radiusprovidergroupl Get UcsProviderGroup Name radiusprovidergroupl Add UcsProviderReference Name 192 168 23 84 Get UcsNativeAuth Set UcsNativeAuth DefLogin radius Get UcsDefaultAuth Set UcsDefaultAuth ProviderGroup radiusprovidergroup1 29 TACACS Provider Add a TACACS provider Add UcsTacacsProvider Name 192 168 23 84 Key test1234 Add a TACACS provider group and setit as the default remote authentication Get UcsTacacsGlobalConfig Add UcsProviderGroup Name tacacsprovidergroup1l Get UcsProviderGroup Name tacacsprovidergroup1 Add UcsProviderReference Name 192 168 23 84 Get UcsNativeAuth Set UcsNativeAuth DefLogin tacacs Get UcsDefaultAuth Set UcsDefaultAuth ProviderGroup tacacsprovidergroup1 LDAP Provider Add an LDAP provider add UcsLdapProvider Attribute CiscoAVPair Basedn CN Users DC qasamlab DC com FilterValue cn Suserid Key Bbv03515 Name 192 168 23 84 Rootdn CN Administrator CN Users DC qasamlab DC com Add an LDAP provider group and set it as
38. ntified by its Distinguished Name DN Figure 1 illustrates the MIM Figure 1 Management Information Model Root TO Oo C DN RN RN prefix lt naming prop gt chassis 1 chassis lt id gt MO Is bob Is lt name gt DN Class Instance ID x Registry Registry Registry 8 The following illustration shows a sample partial MIT for three chassis Tree topRoot Distinguished Name sys sys chassis 1 sys chassis 1 chassis 2 sys chassis 2 chassis 3 sys chassis 3 blade 1 sys chassis 3 blade 1 l adaptor 1 sys chassis 3 blade 1 adaptor 1 blade 2 sys chassis 3 blade 2 adaptor 1 sys chassis 3 blade 2 adaptor 1 adaptor 2 sys chassis 3 blade 2 adaptor 2 Managed Objects M anaged O bjects M O are abstractions of Cisco UCS domain resources such as fabric interconnects chassis blades and rack mounted servers M anaged O bjects represent any physical or logical entity that is configured managed in the Cisco UCS MIT For example physical entities such as Servers Chassis I O cards Processors and logical entities such as resource pools user roles service profiles and policies are represented as managed objects Figure 2 Managed Objects Reference Types Singleton Non Singleton
39. olicy QosPolicyName qos_policy Remove an Initial vNIC template vnic_init_temp Remove UcsVnicTemplate vHBA Template Create an Initial VHBA template Svhba_init_temp Add UcsVhbaTemplate Name vhba_init_temp TemplType initial template SwitchId A Create an Updating vHBA template Svhba_update_temp Add UcsVhbaTemplate Name vhba_update_temp TemplType updating template SwitchId B Add a VSAN to Updating vHBA template vhba_update_temp Add UcsVhbaInterface Name fi_b_vsan Set WWN Pool QoS policy Pin Group and Stats policy for Updating vHBA template vhba_update_temp Set UcsVhbaTemplate IdentPoolName wwpn_pool QosPolicyName qos_policy PinToGroupName san_pin_group StatsPolicyName threshold_policy Remove an Updating vHBA template Svhba_update_temp Remove UcsVhbatemplate Boot Policy Create a Boot policy and enable Reboot on boot order change and enforce vNIC vHBA iSCSI name Sboot_policy Add UcsBootPolicy Name boot_policy EnforceVnicName yes RebootOnUpdate yes Add a Floppy Sboot_policy Add UcsLsbootVirtualMedia Order 3 Access read write Adda CD ROM boot_policy Add UcsLsbootVirtualMedia Order 2 Access read only Adda Local Disk Sboot_storage S boot_policy Add UcsLsbootStorage Order 1 boot_storage Add UcsLsbootLocalStorage Add a SAN boot Sboot_storage Add UcsLsbootSanImage VnicName fc0 Type primary Add UcsLsbootSanImagePath Type primary Lun 1 Wwn 20 00 00 25
40. on Launch the UCSM GUI without Connecting to UCSM Start UcsGuiSession Name lt IP Address or Hostname of UCSM gt Store the Credentials in a Variable and Pass it to a cmdlet password lt Password gt ConvertTo SecureString AsPlainText Force Scred New Object System Management Automation PSCredential UserName Spassword Start UcsGuiSession Name lt IP Address or Hostname of UCSM gt Credential S cred UCS Statistics Get current Ucs statistics for Chassis Id 1 and Slotld 1 Get UcsBlade ChassisId 1 SlotId 1 Get UcsStatistics Current Get Ucs statistics history for Chassis Id 1 and Slot Id 1 Get UcsBlade ChassisId 1 SlotId 1 Get UcsStatistics History Clear Ucs statistics Get UcsManagedObject Dn sys chassis 1 blade 1 board temp stats Clear UcsStatistics Configure Scalability Portin UCS 6324 Fabric Interconnect Configure the breakout port 1 5 1 in UCS 6324 Fabric Interconnect B as a server port Smo Add UcsManagedObject XmlTag fabricSubGroup PropertyMap dn fabric server sw B slot 1l aggr port 5 aggrPortId 5 slotId 1 mo Add UcsManagedObject XmlTag fabricDceSwSrvEp PropertyMap rn slot 1 port 1 portId 1 slotId 1 Configure the breakout port 1 5 1 in UCS 6324 Fabric Interconnect B as an FCoE storage port mo Add UcsManagedObject modifyPresent XmlTag fabricSubGroup PropertyMap dn fabric fc estc B slot 1 aggr port 5 aggrPortId 5 slotId 1 mo Add UcsManagedObject
41. on Hierarchical CallH omePolicy N on Singleton N amed H ierarchical BiosPolicy BootPolicy N on Singleton Contained BootDefinition under LsServer ServiceProfile VnicEtherlf under VnicEther Properties of Managed Objects Properties of M anaged Objects may be classified as Configuration or Operational Configuration properties may be classified as Naming properties Form part of the Rn Needs to be specified only during M O creation and cannot be modified later Create Only properties M ay be specified only during M O creation and cannot be modified later If the property is not specified a default value is assumed e Read Write properties M ay be specified during MO creation and can also be modified subsequently Operational properties indicate the current status of the M O system and are hence read only Figure 4 Properties of Managed Objects Properties Configurational Operational Naming Create Only Read Write Read Only 303306 The table below lists the examples of the various property types Property Type Example Naming N ame in LsServer Service Profile M O Create O nly Type in LsServer Read Write Description in LsServer Read Only O perState in LsServer Methods M ethods are Cisco UCS XM L APIs used to manage and monitor the system There are methods supported for Authentication AaaLogin
42. otfootdu CISCO USER GUIDE a Cisco UCS PowerTool for Cisco UCS Manager Release 1x Overview Management Information Model System Requirements Installation Examples Samples Related Cisco UCS Documentation and Documentation Feedback O NOURA WNB Obtaining Documentation and Submitting a Service Request 1 Overview Cisco UCS M anager PowerTool is a PowerShell module which helps automate all aspects of Cisco UCS M anager including server network storage and hypervisor management PowerTool enables easy integration with existing IT management processes and tools The PowerTool cmdlets work on the UCS M anager s M anagement Information Tree MIT performing create modify or delete actions on the M anaged O bjects M O in the tree The next chapter provides an overview of the Cisco UCS M anagement Information M odel MIM and relation of PowerTool cmdlets with it One of the easiest ways to learn UCS configuration through PowerTool is to generate PowerTool cmdlets for configuration actions performed with the GUI using the ConvertTo UcsC mdlet described in PowerT ool Cmdlet Generation section on page 13 section 2 Management Information Model All the physical and logical components that comprise a Cisco UCS domain are represented in a hierarchical M anagement Information M odel M IM referred to asthe M anagement Information Tree MIT Each nodein the tree represents a M anaged Object M O uniquely ide
43. ove UcsVlanMemberPort Force Blade Power amp Temperature Statistics View Power Statistics of all blades Get UcsBlade Get UcsComputeBoard Get UcsComputeMbPowerStats Out GridView 18 View Temperature Statistics of all blades Get UcsBlade Get UcsComputeBoard Get UcsComputeMbTempStats Out GridView Configuration Backup Remove any previously stored backups in UCS Get UcsMgmtBackup Remove UcsMgmtBackup The PathPattern can be auto filled allowing the cmdlet to be used with multiple Cisco UCS domains Create and download full state system backup of UCS This creates a binary file that includes a snapshot of the entire system You can use the file generated from this backup to restore the system during disaster recovery This file can restore or rebuild the configuration on the original fabric interconnect or recreate the configuration on a different fabric interconnect You cannot use this file for an import Backup Ucs Type full state PathPattern C Backups ucs yyyy MM dd HH mm full state tar gz Create and download logical backup of UCS This creates an XM L file that includes all logical configuration settings such as service profiles VLANs VSANS pools and policies You can use the file generated from this backup to import these configuration settings to the original fabric interconnect or to a different fabric interconnect You cannot use this file for a system restore Backup Ucs Type config logical
44. policy SnoopingState disabled XtraProperty in Get Add Set cmdlets The XtraProperty parameter ensures that unknown Managed Object properties can also be used in Get Add Set cmdlets Create a service profile with extra property ExtIPPoolName Add UcsServiceProfile Name sp_name XtraProperty ExtIPPoolName ext mgmt Getall service profiles that have ext mgmt as ExtIPPoolName Get UcsServiceProfile XtraProperty ExtIPPoolName ext mgmt CCO Integration There are 2 Cmdlets related to CCO Image handling Geta List of Images from CCO Simages Get UcsCcoImageList Select 2 0 1x images and download the images Get UcsCcolmage first checks if the image is available locally If the image exists and md5sum matches no download is initiated If not the image is downloaded Simages where _ ImageName like ucs k9 bundle 2 0 1 Get UcsCcoImage Path C work Images 34 Re running the command should not initiate any dow nloads if the previous download was successful Simages where _ ImageName like ucs k9 bundle 2 0 1 Get UcsCcoImage Path C work Images A proxy can be used if required Sproxy New Object System Net WebProxy Sproxy Address http lt url gt lt port gt Sproxy UseDefaultCredentials false Sproxy Credentials New Object System Net NetworkCredential lt username gt lt password gt Simages Get UcsCcoImageList Proxy Sproxy Upload Firmware Upload an im
45. policy so that after the first packet has been sent to the fabric interconnect all other packets must use the same MAC address or they will be silently rejected by the fabric interconnect This enables port security for the associated vNIC Snetwork_policy Set UcsPortSecurityConfig Forge deny 27 Remove a Network Control policy network_policy Remove UcsNetworkControlPolicy Privileges List out all privileges on the UCS Get UcsPrivilege User Roles Adda user role test_role with admin privileges Add UcsRole Name user_role Priv admin Change privileges for a user role to allow read and write access to fabric interconnect infrastructure network security operations and read access to the rest of the system Get UcsRole Name user_role Set UcsRole Priv ls network Set multiple privileges using Set UcsRole Get UcsRole Name multi_priv_role Set UcsRole Priv ls network ls qos Getall user roles in UCS Get UcsRole Geta user role by name Get UcsRole Name multi_priv_role Remove a user role Get UcsRole Name multi_priv_role Remove UcsRole Locales Add a Locale Add UcsLocale Name asSia_pacific Descr Locale for Asia Pacific users Getall locales Get UcsLocale Add an org to a locale Get UcsLocale Name asia_pacific Add UcsAaaOrg Name org_asia_pacific OrgDn org root org Finance Remove a locale Get UcsLocale Name asia_pacific Remove UcsLoc
46. ration InvalidCertificateAction Fail Description Fail The cmdlet will not establish connection if the certificate is not valid Ignore The cmdlet will establish the connection without taking into account that the certificate is invalid Default Windows default The cmdlet will establish connection if the certificate is valid Register Unregister Cisco UCS Central If you want to have Cisco UCS Central manage a Cisco UCS domain you need to register that domain When you register you need to choose the types of policies and other configurations such as backups and firmware that will be managed by Cisco UCS Central and which will be managed by Cisco UCS M anager Before you register a Cisco UCS domain with Cisco UCS Central do the following Step 1 Configurean NTP server and the correct time zone in both Cisco UCS M anager and Cisco UCS Central to ensure that they are in sync If the time and date in the Cisco UCS domain and Cisco UCS Central are out of sync the registration may fail Step2 Obtain the hostname or IP address of Cisco UCS Central Step 3 Obtain the shared secret that you configured when you deployed Cisco UCS Central Spassword SharedSecret ConvertTo SecureString AsPlainText Force Register UcsCentral Name 10 10 10 10 SharedSecret password Step 4 Unregister from UCS Central Get UcsCentral Unregister UcsCentral Aliases Some aliases have been defined for convenience gal _ Name l
47. rue PowerTool Mapping All but about 30 of the PowerTool cmdlets are generated from the M O specification A convenient noun is used in place of the type ServiceProfile instead of LsServer etc Get Add Set Remove cmdlets or a subset is generated for the various M O types All cmdlets support the X ml parameter which dumps the X ml request and response on the screen Add C mdlet Uses the C onfigC onfM o s method with M O status created along with the specified property values If the M odifyPresent parameter is specified status created modified is specified instead If the Force parameter is specified there will be no prompt for confirmation Get C mdlet Use the ConfigR esolveClass method to retrieve M Os If any property parameters are specified they are used to generate eq filters If multiple property parameters are specified the multiple eq filters are combined with a and filter Set C mdlet Uses the ConfigC onfM o s method with M O status modified along with the specified property values If the Force parameter is specified there will be no prompt for confirmation Remove C mdlet Uses the C onfigC onfM o s method with M O status deleted If the Force parameter is specified there will be no prompt for confirmation The table below lists the properties that can be specified for a given Verb Property Get Add Set Naming Yes Positional Yes Positional No Cre
48. s 1 Get UcsChassis Id 1 Get the set of blades pertaining to chassis 1 Get UcsChassis Id 1 Get UcsBlade Enable HTTP on the Fl Get UcsHttp Set UcsHttp AdminState enabled Disable HTTP on the FI Get UcsHttp Set UcsHttp AdminState disabled Disconnect Disconnect Ucs Default UCS List with Multiple UCS PowerTool cmdlets can work with multiple Cisco UCS domains by specifying multiple handles Connect to a Cisco UCS domain Shandlel Connect Ucs lt ipl gt NotDefault Shandle2 Connect Ucs lt ip2 gt NotDefault Get UcsStatus Ucs handle1 handle2 Disconnect Ucs Ucs Shandle1 handle2 By default multiple Cisco UCS handles are not allowed in DefaultUcs This can be overridden using the set ucsPowerToolConfiguration cmdlet Get UcsPowerToolConfiguration Set UcsPowerToolConfiguration SupportMultipleDefaultUcs S true Connect Ucs lt ip1 gt Connect Ucs lt ip2 gt Get UcsStatus Disconnect Ucs Connect to multiple Cisco UCS domains using the same login credentials Suser lt username gt Spassword lt password gt ConvertTo SecureString AsPlainText Force Scred New Object System Management Automation PSCredential user S password servers lt ucsl gt lt ucs2 gt lt ucs3 gt Connect Ucs servers Credential cred Credentials to from File Connect Ucs lt ip1 gt Connect Ucs lt ip2 gt Credentials can be stored to a file The stored credentials are encrypte
49. sSnmpTrap Hostname 168 65 120 32 Remove UcsSnmpTrap 31 Communication Services HTTP Get UCS http configuration Get UcsHttp Set UCS http configuration to enable http and enable http to https redirection Set UcsHttp AdminState enabled RedirectState enabled Communication Services HTTPS Get UCS https configuration Get UcsHttps Create a keyring with a key size of 1024 bits Add UcsKeyring Name keyring1024 Modulus mod1024 Create a certificate request passing the required subject name hostname of the machine Get UcsKeyRing Name keyring2048 Add UcsCertRequest SubjName savbu pti01 Get the certificate for the generated certificate request and have itinstalled on the client machine Verify it by running certmgr msc Add a Trust Point Add UcsTrustPoint Name TPkeyring1024 Seta certificate chain for TP Get UcsTrustPoint Name TPkeyring1l024 Set UcsTrustPoint CertChain colette BEGIN CERTIFICATE MIIEoDCCA4igAwIBAgIQMjE 6XYi a9CU8PPgR20ZDANBgkqhkiG9w0BAQUFADBU MRIWEAYKCZ Imi ZPyLGQBGRYCaW4xGTAXBgoJkiaJk ISZAEZFg1xYXNhbS1sYWIx FDASBgoJkiaJk IsZAEZFgR1Y3NtMQ0wCwYDVQQDEWRVQ1NNMB4XDTEWMDcxNj Ey MzM1N10XDTE1MDcxNj EyNDI zNFowVDESMBAGCgmSJomT8ixkARkWAm uMRkwFwYK CZImiZPyLGQBGRYJcWFzYWOtbGFiMRQWEGYKCZImiZPyLGQBGRYEAWNzbTENMAsSG A1LUEAXMEVUNTTTCCAS IwDQYJKoZ IhvcNAQEBBQADggEPADCCAQoCggEBAOh2Cgcm EVzdGCMf 8FQy4SpLgeDXAn8DbobDdKbcH7 txYRUMPCRmkt YeEjV1Qh MPulhAs5B cDCbAGOWN7 InoGexsNQVhdAQpY7S18h0im1 GiR9XWbhc faanbxDXU
50. sVlan Name appliance_vlan Id 500 Create a VLAN under the Fabric A Appliance Cloud Get UcsFabricApplianceCloud Id A Add UcsVlan Name fi_a_appliance_vlan Id 500 Create a VLAN under the Fabric B Appliance Cloud Get UcsFabricApplianceCloud Id B Add UcsVlan Name fi_b_appliance_vlan Id 500 Importa list of VLANs from a csv file and create the VLANs under the LAN cloud This example creates the csv file as well Create VLANs on 1 device Name Id foreach vlan in 501 550 vlan vlan vlan gt C work Demo vlans csv 15 Slc Get UcsLanCloud Sle Get UcsVlan select Ucs Name Id Start UcsTransaction import csv C work Demo vlans csv lc Add UcsVlan Name _ Name Id _ Id Complete UcsTransaction Sle Get UcsVlan select Ucs Name Id Remove the added VLANs Sle Get UcsVlan _ Id ge 501 and _ Id le 550 Remove UcsVlan Force MAC Pools amp Blocks Adda MAC Block to the default MAC Pool Get UcsMacPool Ucs lt handle or name gt default Add UcsMacMemberBlock 00 25 B5 00 A0 00 00 25 B5 00 A0 08 Check for any clashes in MAC Pool assignments across all Cisco UCS domains in default list Get UcsMacPoolAddr group Id where _ Count ne 1 select ExpandProperty Group select Ucs Id Assigned AssignedToDn Server Pools Create a server pool server_pool Add UcsServerPool Name server_pool Add Blade 1 4 to the server pool server_pool Add UcsComputePool
51. sionLimit SessionsPerUser 30 TotalSessions 255 30 Communication Services Telnet Get UCS telnet configuration Get UcsTelnet Allow telnet connections Set UcsTelnet AdminState enabled Descr Telnet configuration for UCS Communication Services CIM XML Get UCS CIM XML configuration Get UcsCimxml Enable the CIM XML service Set UcsCimxXml AdminState enabled Communication Services SNMP Get UCS SNMP configuration Get UcsSnmp Enable SNMP with community string being public system contact person being CiscoSystems and location of the host being Bangalore Set UcsSnmp Descr SNMP config for UCS AdminState enabled SysContact CiscoSystems SysLocation Bangalore Community public Geta UCS SNMP user Get UcsSnmpUser Adda UCS SNMP user Add UcsSnmpUser Name joe Auth md5 Privpwd Joe Cisco Pwd Joe Cisco UseAes true Seta UCS SNMP user Get UcsSnmpUser Name jo Set UcsSnmpUser Auth sha UseAes false Remove a UCS SNMP user Get UcsSnmpUser Name joe Remove UcsSnmpUser Geta UCS SNMP trap Get UcsSnmpTrap Adda UCS SNMP trap Add UcsSnmpTrap Hostname 168 65 120 32 Community public NotificationType traps Port 162 V3Privilege noauth Version v3 Set UCS SNMP configuration Get UcsSnmpTrap Hostname 168 65 120 32 Set UcsSnmpTrap Community public NotificationType informs Port 162 V3Privilege auth Version v1 Remove UCS SNMP configuration Get Uc
52. ter Name ceq SJC select Ucs Dn Name Getall Service Profiles with Name equals SJ C sjc SjC etc Get UcsServiceProfile Filter Name ieq sjc select Ucs Dn Name 22 Getall Service Profiles with Name beginning with string SJ C sjc SjC etc Get UcsServiceProfile Filter Name ilike SJc select Ucs Dn Name Getall Service Profiles with Name except SJ C sjc SjC etc Get UcsServiceProfile Filter Name ine SJC select Ucs Dn Name iSCSI Boot Start Ucs Transaction Start UcsTransaction Create a service profile Ssp Add UcsServiceProfile Type instance Name iscsiboot Add a static IP p not related to iSCSI boot SstaticIp Add UcsVnicIpV4StaticAddr ServiceProfile sp Addr 10 65 224 161 DefGw 10 65 224 1 Subnet 255 255 255 0 Create the required vNIC and add VLAN vnic Add UcsVnic ServiceProfile sp Name enicl SwitchId A Addr 00 25 B5 07 80 00 Svlan605 Add UcsVnicInterface Vnic vnic Name vlan605 DefaultNet yes Create iSCSI vNIC and map it to the vNIC created above Add iSCSI Initiator Parameters VLAN and IP address Senic Add UcsVnicIScsi ServiceProfile sp Name iscsienicl InitiatorName iqn 1995 05 com broadcom iscsiboot VnicName enicl vlan Add UcsVnicVlan VlanName vlan605 VnicIScsi enic Sipv4if Add UcsVnicIPv4If VnicVlan vlan Sipv4iscsi Add UcsVnicIPv4IscsiAddrp VnicIPv4If Sipv4if Addr 10 65 224 157 Add target parameters Sprim
53. the M Os are referred to implicitly PreLoginBanner during login or as part of deployment of another M O The Service Profile MO may refer to a template or aVNIC refers to a number of VLAN MOs The different types of references can be classified as shown below Figure 3 References to Managed Objects Reference Types Singleton Non Singleton Named Contained Non Hierarchical Hierarchical 303305 A singleton M O typeis found at most once in the entire M IT and is typically referred to implicitly Non Singleton M O type may be instantiated one or more times in the M IT In many cases when an M O refers to another the reference is made by name Depending on the type of the referenced M O the resolution may be hierarchical For instance a service profile template is defined under an org Since an org may contain sub orgs a sub org may havea service profile template defined with the same name N ow when a service profile instance refers to a service profile template by name the name is looked up hierarchically from the org of the service profile instance up until the root org The first match is used If no match is found the name default is looked up in the similar way and the first such match is used Reference Type Example Singleton ChassisD iscoveryPolicy PreLoginBanner N on Singleton N amed N
54. the entire UCSM instance will be created and downloaded to the specified file Get UcsTechSupport PathPattern C ucs techsupp ucsm tar UcsManager RemoveFromUcs TimeoutSec 600 Technical support data for the UCSM management services excluding fabric interconnects will be created and downloaded to the specified file Get UcsTechSupport PathPattern C ucs techsupp ucsmmgmt tar UcsMgmt RemoveFromUcs TimeoutSec 600 Technical support data for Chassis id 1 and Cimc id 1 will be created and downloaded to specified file Get UcsTechSupport PathPattern C ucs techsupp chassis tar RemoveFromUcs TimeoutSec 600 ChassisId 1 CimcId 1 Technical support data for Chassis id 1 and lom id 1 will be created and downloaded to specified file Get UcsTechSupport PathPattern C ucs techsupp iom tar RemoveFromUcs TimeoutSec 600 ChassisId 1 IomId 1 Technical support data for RackServer id 1 and RackAdapter id 1 will be created and downloaded to specified file Get UcsTechSupport PathPattern C ucs techsupp rack tar RemoveFromUcs TimeoutSec 600 RackServerlId 1 RackAdapterId 1 Technical support data for FEX id 1 will be created and downloaded to specified file Get UcsTechSupport PathPattern C ucs techsupp fex tar RemoveFromUcs TimeoutSec 600 FexId 1 Service Profile Get all service profile instances in UCS Get UcsServiceProfile Type instance Getall service profile updating templates in UCS
55. tion file one object at a time Import UcsBackup LiteralPath C Backups config all xml Import all configuration xml The information in the imported configuration file is compared with the existing configuration information If there are conflicts the import operation overwrites the information on the Cisco UCS domain with the information in the import configuration file Import UcsBackup LiteralPath C Backups config all xml Merge Managed Object Synchronization Sync a set of MOs from SYSA to SYSB Sync UcsManagedobject Ucs SYSB Compare UcsManagedObject Get UcsOrg ucs SYSB Get UcsOrg ucs SYSA whatif Sync UcsManagedobject Ucs SYSB Compare UcsManagedObject Get UcsOrg ucs SYSB Get UcsOrg ucs SYSA Force 19 Sync a set of MOs from SYSA to all systems in the default list Get UcsPSSession Sync UcsManagedobject Ucs _ Compare UcsManagedObject Get UcsOrg ucs _ Get UcsOrg ucs SYSA Force Monitoring UCS Managed Object Transitions Watch Cisco UCS domains for all events for 60 seconds Watch Ucs TimeoutSec 60 Watch Cisco UCS domains for any changes in faults for 60 seconds Watch Ucs TimeoutSec 60 ClassId FaultInst Watch UCS fora particular field in MO to attain a success value Send UcsFirmware LiteralPath C work Images ucs k9 bundle b series 1 4 2b B bin Watch Ucs Property TransferState SuccessValue downloaded PollSec 30 TimeoutSec 600 Tech Support Technical support data for
56. vel without descending into org root children Get UcsServiceProfile Name sp_name LimitScope Get service profile from org Finance without descending into org Finance children Get UcsOrg Name Finance Get UcsServiceProfile Name sp_name LimitScope 14 Get VLAN from LanCloud Get UcsLanCloud Get UcsVlan LimitScope Transaction Support Start a transaction Start UcsTransaction Perform an operation End a transaction Complete UcsTransaction Undo a transaction Undo UcsTransaction VLANs Creation amp Deletion VLANs in Cisco UCS domains are referred to by name and VLAN definitions can be created under four nodes in the MIT Description LanCloud This is a global VLAN and is applicable to both FIs FabricLanCloud This is a Fabric Specific VLAN and is applicable to either Fabric A or Fabric B ApplianceCloud This isa global VLAN and is applicable to both FIs FabricApplianceCloud This is a fabric specific VLAN applicable to either Fabric A or Fabric B used during configuration of Appliance Ports Create a VLAN under the Global LAN Cloud Get UcsLanCloud Add UcsVlan Name lan_cloud_vlan Id 500 Create a VLAN under Fabric A LAN Cloud Get UcsFiLanCloud Id A Add UcsVlan Name fi_a_vlan Id 500 Create a VLAN under Fabric B LAN Cloud Get UcsFiLanCloud Id B Add UcsVlan Name fi_b_vlan Id 500 Create a VLAN under the Global Appliance Cloud Get UcsApplianceCloud Add Uc
Download Pdf Manuals
Related Search
Related Contents
KUDA 087170 holder Benutzerhandbuch 1 - TOTO 4MN534MG Maîtrise de la consommation d`énergie en domotique par un Copyright © All rights reserved.
Failed to retrieve file