UCSTemplate - addLanNicToTemplateBootOrder
UCSTemplate - addLanNicToTemplateBootOrder
Description :
This command adds a LAN NIC to a UCS template's boot order. You can add a maximum of 2 LAN NICs to the boot order.
Set the order argument to 0 to indicate the first NIC in the internal boot order. Set the order argument to 1 to indicate the second NIC in the internal boot order. You must set the first NIC (0) before you set the second NIC (1).
Use the templateKey argument to specify the DBKey of the template you want to modify. You can get the DBKey of the template by using the DepotObject : getDBKeyByTypeStringGroupAndName command.
Return type : Boolean
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
templateKey | com.bladelogic.om.infra.model.base.keys.SDepotObjectKey | The DBKey of the template you want to modify. |
index | Integer | The index of the element in the LAN NIC list configured for the the template.The index starts from 0. |
mainIndex | Integer | The index of the LAN NIC in the main boot order.Set the index to -1 to add the LAN NIC at the end of the list. |
order | Integer | The index of the LAN NIC in the internal boot order. |
Example
The following example adds a LAN NIC to the boot order of a UCS template.
Script
blcli UCSTemplate addLanNicToTemplateBootOrder DBKey:SDepotObjectKey:2000003-1 0 -1 0