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 - removePolicy


UCSTemplate - removePolicy

Description :

This command removes a policy configuration from a UCS template.

Use the policyTypeId argument to specify the type of policy. Set policyTypeId to one of the following integers:

  • Host firmware policy - 1
  • Stats collection policy - 2
  • IPMI profile policy - 3
  • Management firmware policy - 4
  • Dynamic VNic policy - 5
  • Local disk policy - 6
  • Scrub policy - 7
  • Ethernet adapter policy - 8

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.

policyTypeId

Integer

An integer indicating the type of policy. For more information, see the list above.

Example

The following example removes a boot policy from a UCS template.

Script





blcli UCSTemplate removePolicy DBKey:SDepotObjectKey:1-1 6



 

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

BMC Server Automation Command Line Interface 8.5