Create Custom Rule

Contents


1   Description

This instruction describes how to create a custom rule.

The administrator can create custom rules when the predefined rules do not match the needs of the organization authorization policy.

2   Procedure

2.1   Create Custom Rule

Prerequisites

Steps

  1. Navigate to the LocalAuthorizationMethod Managed Object (MO), for example:

    >dn ManagedElement=NODE06ST,SystemFunctions=1,SecM=1,UserManagement=1,LocalAuthorizationMethod=1

  2. Enter Config mode:

    (LocalAuthorizationMethod=1)>configure

  3. Create a CustomRule MO, for example:

    (config-LocalAuthorizationMethod=1)>CustomRule=Custom_FaultManagement_1

  4. Set the model elements for which the permission is applicable, for example:

    (config-CustomRule=Custom_FaultManagement_1)>ruleData="ManagedElement,SystemFunctions,Fm,*"

  5. Set the permissions that the rule provides on a target specified by attribute ruleData, for example:

    (config-CustomRule=Custom_FaultManagement_1)>permission=R

    In this example, the custom rule gives read-only permission to class Fm, its attributes, and child MOs.

  6. Describe the policy for the rule, for example:

    (config-CustomRule=Custom_FaultManagement_1)>userLabel="R Rule for FM and Child MOs"

  7. Commit the settings:

    (config-CustomRule=Custom_FaultManagement_1)>commit

  8. Verify the result:

    (CustomRule=Custom_FaultManagement_1)>show

    The following is an example output:

    CustomRule=Custom_FaultManagement_1
       permission=R
       ruleData="ManagedElement,SystemFunctions,Fm,*"
       userLabel="R Rule for FM and Child MOs"
  9. The custom rule can now be assigned to custom roles, refer to Create Custom Role or Change Custom Role.