UCSTemplate - createTemplate


UCSTemplate - createTemplate

Description :

This command creates a UCS template.

If you are using Storage, Bootable Storage, MAC, and/or UUID pools, you need to specify the DBKeys for these pools, using the storagePoolKey, bootableStoragePoolKey, commonMacPoolKey, and uuidPoolKey arguments. You can get these DBKeys by using the DepotObject : getDBKeyByTypeStringGroupAndName command. This command returns a handle to the newly created UCS template.This handle can be used as input to commands that need a handle to this UCS template.

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

name

String

The name of the template.

desc

String

The description of the template.

groupId

Integer

The ID of the depot group where the template will reside.

serverName

String

The name of the UCS Manager server. This is the server that you added to the Configuration Manager console for the purpose of communication with the UCS system.

ucsName

String

The name of the UCS system that contains the target blade.

bladePath

String

The full path (including name) of the blade you want to provision. Should be null if isBladePool is true.

isBladePool

Boolean

True if you want to use a blade pool to select the target blade, false otherwise.

bladePoolPath

String

The path to the blade pool from which the target blade will be selected. Should be null if isBladePool is false.

hasCommonMacPool

Boolean

True if you want to use a common MAC pool for all the configured LAN NICs, false otherwise.

commonMacPoolKey

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

The DBKey for the common MAC pool you plan to use for all the configured LAN NICs. Should be null if hasCommonMacPool is false.

uuid

String

The UUID address.

isUuidPool

Boolean

True if you wan to use a UUID pool, false otherwise.

uuidPoolKey

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

The DBKey for the UUID pool. Provide a DBKey for uuidPoolKey only if isUUIDPool is set to true.

isManualWwnn

Boolean

True if you wish to specify WWNN manually, false otherwise

wwnn

String

The WWNN address.

isStoragePool

Boolean

True if you wish to specify a Storage Pool Key, false otherwise

storagePoolKey

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

The DBKey for the Storage Pool. Provide a DBKey for storagePoolKey only if isManualWWnn is set to false and if isStoragePool is set to true.

isBootStoragePool

Boolean

True if you wish to specify a Bootable Storage Pool Key, false otherwise

bootStoragePoolKey

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

The DBKey for the Bootable Storage Pool. Provide a DBKey for bootStoragePoolKey only if isManualWWnn is set to false and if isBootStoragePool is set to true.

Example

The following example creates a template under a depot group. The target is a blade named blade-7, which resides on a UCS system with the name (IP) of 10.20.38.15.

Script





DEPOTGROUP_SUB2="/parent/sub1/sub2"

DEPOTGROUP_SUB2_ID=`blcli DepotGroup groupNameToId $DEPOTGROUP_SUB2`

blcli UCSTemplate createTemplate "Template Name" "Description" $DEPOTGROUP_SUB2_ID "localhost" "10.20.38.15" "/10.20.38.15/ChassisGroup/chassis-1/Blades/blade-7" false null false null "11111111-1111-1111-1111-111111111111" false null true "10-00-00-00-00-00-00-01" false null false null



 

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

BMC Server Automation Command Line Interface 8.7