UCSTemplate - removeLanNic
UCSTemplate - removeLanNic
Description :
This command removes a LAN NIC configuration from a UCS template.
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 : DBKey
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 LAN NIC that you want to remove. Use 0 to specify the first LAN NIC, 1 to specify the secocnd LAN NIC, and so on. |
Example
The following example removes the first LAN NIC configuration from a template.
Script
blcli UCSTemplate removeLanNic DBKey:SDepotObjectKey:1-1 0
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*