Information
Unsupported content This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

UCSTemplate - addTemplateSanHBA


UCSTemplate - addTemplateSanHBA

Description :

This command adds a SAN HBA to a UCS template.

When you add a SAN HBA, you can associate a WWPN with it in the following ways:

  • Storage pools: If you used storage pools while creating the template, the WWPN address is automatically picked up from the pool. You do not need to specify it manually.
  • Manual. If you specified WWNN manually while creating the template, you need to specify the WWPN name explicitly, using the wwn argument.
  • Derived from hardware: If you specified WWNN manually while creating the template, you can specify that the WWPN name is obtained from the hardware on which you deploy the profile by setting isWwnDerived to true.

Note that these arguments are mutually exclusive - you need to specify only ONE way to set the WWN name:

  • Storage pools: If the UCS template is configured to use storage pools and/or bootable storage pools, set arguments as follows: Set isWwnDerived to false. Set set wwn, primaryTargetWwn, and secondaryTargetWwn to null. Set primaryTargetLun and secondaryTargetLun to 0.
  • Manual: If you manually specify a WWPN name in the wwn argument, then you must set isWwnDerived to false.
  • Derived from hardware: If you specify that the WWN name is derived from the hardware (isWwnDerived=true), then you need to set wwn to null.

You use the templateKey argument to specify the DBKey of the template you want to modify. To get the templateKey, use the DepotObject : getDBKeyByTypeStringGroupAndName command.

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

templateKey

com.bladelogic.om.infra.model.base.keys.SDepotObjectKey

The DBKey of the UCS template you want to modify.

name

String

The name of the SAN HBA.

VSanName

String

The name of the SAN to which the HBA interfaces.

switchName

String

The switch that the HBA uses to connect to the SAN fabric.

wwn

String

The WWPN name used by the SAN HBA.

isWwnDerived

Boolean

True if you want to obtain the WWN name from the hardware, false otherwise.

primaryTargetLun

Integer

The Primary LUN of the segment that this HBA connects to.

primaryTargetWwn

String

The Primary WWN of the HBA that the HBA should interface with.

secondaryTargetLun

Integer

The Secondary LUN of the segment that this HBA connects to.

secondaryTargetWwn

String

The Secondary WWN of the HBA that the HBA should interface with.

Example

The following example adds a SAN HBA to a UCS template with DBKey:SDepotObjectKey:1-1.

Script





blcli UCSTemplate addTemplateSanHBA DBKey:SDepotObjectKey:1-1 "name" "VSanName" "switchName" "10-00-00-00-00-00-00-09" false  2 "10-00-00-00-00-00-00-09"  3 "10-00-00-00-00-00-01-09"



 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC Server Automation Command Line Interface 8.3