Home >

Lunacm Command Reference Guide > LunaCM Commands > partition > partition policyTemplateChange

partition policyTemplateChange  

Modify a policy's initial value and destructive settings within the partition policy template currently being edited. This change is done independently of any partition when the edit is performed. The change becomes accessible when the template is saved. The change becomes active if the template is applied to an application partition.

Syntax

partition policyTemplateChange -policy <policynumber> [-value <[numvalue] or "on" | "off">] [-on<string>] [-off<string>]

Option Shortcut Parameter Description
-off   -off   <partition name> Specifies the name of the HSM Partition on which to alter policies. HSM Partition names are obtained with the partition -list command.
-on   -on <partition name> Specifies the name of the HSM Partition on which to alter policies. HSM Partition names are obtained with the partition -list command.
-policy -p   <policy number> Specifies the policy code of the policy to alter. Policy descriptions and codes are obtained with the partition showpolicies command.
-value   -v   <policy value> Specifies the value that should be assigned to the specified policy. When specifying values for an on/off type policy, use '1' for on and '0' for off, or just type the text "on" or "off". Either is acceptable.

Example

lunacm:> partition policyTemplateChange -policy 23 -value on

                                                              Destructive
 Code Description                                   Value Off-To-On On-To-Off
 ______________________________________________________________________________

  23  Allow auto-activation                          On      No        No

Command Result : No Error 


lunacm:> partition policyTemplateChange -policy 25 -value 246

                                                              Destructive
 Code Description                                   Value Off-To-On On-To-Off
 ______________________________________________________________________________

  25  Minimum pin length (inverted: 255 - min)       246     N/A       N/A

Command Result : No Error

lunacm:> partition policyTemplateChange -policy 20 -value 9

                                                              Destructive
 Code Description                                   Value Off-To-On On-To-Off
 ______________________________________________________________________________

  20  Max failed user logins allowed                  9      N/A       N/A

Command Result : No Error

lunacm:> partition policyTemplateChange -policy 7 -on non-destructive

                                                              Destructive
 Code Description                                   Value Off-To-On On-To-Off
 ______________________________________________________________________________

  7   Allow secret key masking                       Off     No        No

Command Result : No Error