Copying, moving, or deleting Rules and Rule Sets


Use the Copy and Move commands in the LC column of the Rule Set Overview panel to move or copy single Rules or blocks of Rules:

  • To move or copy single Rules, place the M or C line command next to the Rule in the LC column.
  • To move or copy blocks of Rules, place MM or CC line command next to the first and last Rules of a group of Rules.

The move and copy commands must be used in conjunction with the After | A and Before | B line commands.

You can copy or move Rules either within the same Rule Set or to another Rule Set that is on the same target. The Rules can be disabled when you copy or move them.

When you are trying to duplicate a Rule within the same Rule Set, you must use the Repeat | R command. The Copy command will not work.

This topic includes the following sections:

Copying or moving Rules within a Rule Set

To use the copy or move commands within the same Rule Set, follow these steps:

  1. From the Automation Control Panel, select an ENABLED Rule Set.
  2. From the Rule Set Overview panel, select a Rule or a block of Rules to copy or move.
  3. Place the Copy | C | CC or Move | M | MM commands next to the Rules in the LC column.
  4. Enter either the After | A or the Before | B line commands depending on where you want to copy or move the Rules to in the Rule Set.
  5. Press Enter.The Rules are copied/moved to the new location.
  6. Press PF3/END.The Confirm Rule Set Modifications panel is displayed.
  7. To save the copied or moved Rules, enter SAVE; the Rules are copied or moved.

Copying or moving Rules between Rule Sets

To use the copy or move commands between Rule Sets:

  1. From the Automation Control Panel, select an ENABLED Rule Set.
  2. From the Rule Set Overview panel, select a Rule or a block of Rules to copy or move.
  3. Place the Copy | C | CC or Move | M | MM commands next to the Rules in the LC column.
  4. Press PF3/End to return to the Automation Control panel.
  5. Select the Rule Set (on the same target) to copy or move the Rules to.
  6. On the Rule Set Overview panel, enter the After | A or Before | B line commands depending on where you want to copy/move the Rules from the first Rule Set to this Rule Set.
  7. This Rule Set must have at least one Rule already in it where you can enter the After | A or Before | B line commands.
  8. Press Enter.The Rules are copied/moved to the new location.
  9. Press PF3/END.The Confirm Rule Set Modifications panel is displayed:
  10. To save the copied or moved Rules, enter SAVE; the Rules are copied or moved.
    • If you choose to cancel any pending moves or copies, use the Reset primary command.
    • If you are copying Rules, entering SAVE saves the Rules to the copied to Rule Set and leaves a copy in the copied from Rule Set.
    • If you are moving Rules, entering SAVE saves the Rules to the moved to Rule Set and removes them from the moved from Rule Set.

Deleting Rule Sets

After you have issued a SAVE command for a Rule, it is saved to the Rule Set that it was defined in and the Rule and the Rule Set are saved to common storage.

The saved Rule Set is a member of a partitioned data set (PDS) as the first data set of the BBIPARM DDNAME concatenation for the BMC AMI Ops Automation BBI-SS PAS. The Rule Set is saved with a member name that matches the Rule Set name that was used in the Rules Processor panels. The Rules Processor application does not provide an online facility that allows you to delete a Rule Set, even if a Rule Set does not contain any Rules.

If you have never issued the SAVE command for a Rule (or Rules) in a Rule Set, if you disable the Rule Set, it deletes the Rule Set and its contents are not retrievable.

After the Rules and Rule Set have been saved, the only way to delete a saved Rule Set is to disable the Rule Set from the Rules Processor application, edit the data set in ISPF (or another product) and delete the member (Rule Set).

Before you delete the Rule Set, you should ensure that other BMC AMI OpsA BBI-SS PASs are not sharing the data set. Also, note that when you delete a Rule Set (PDS member), and the Rule Set is enabled on any BBI-SS PAS, you are not deleting the Rules from the other BBI-SS PAS because the Rules are saved in common storage and continue to exist on that LPAR.

If you accidentally delete a Rule Set that was enabled in another BMC AMI OpsA BBI-SS PAS, you can copy the Rule Set to a BMC AMI OpsA BBI-SS PAS, enter the SAVE command, and restore the Rule Set.



 

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