- Copied from one Message Channel to another on the same BES server.
- Copy all SMARTView Rules and CAF from one BES server to a different BES server*
* When copying rules from one BES server to another, the Message Channel name must be exactly the same on both BES servers.
Copying SMARTView Rules from one Message Channel to another
To copy all the SMARTView Rules from one message channel to another on the same BES server, use the RuleCopy program in $PPHOME/bin:
Description: Copies SMARTView Rules from one MC to another MC and apply's them
Usage: RuleCopy [FromMC] [ToMC]
Parameters: FromMC - Message Channel Name to Copy Rules From
ToMC - Message Channel Name to Copy Rules To
Examples: RuleCopy piPATROL1 piPATROL2
RuleCopy MQ1 MQ2
When a RuleCopy is initiated, the $PPHOME/SMARTView/Live/mcname/Rules_File for the message channel that rules are being copied to is updated with the rules from the original message channel.
Note: All existing rules on the 'copied to' message channel will be overwritten and no longer exist.
Copying SMARTView Rules and CAF from one BES server to a different BES server
Warning: The following instructions will overwrite any current CAF setup or SMARTView rules on the 'secondary BES server' i.e. the server we are copying to. The 'secondary' BES server must also have all the appropriate message channels defined in order to apply the SMARTView rules.
Copying SMARTView rules and the CAF setup from one BES server to another is a three step process. In the example below, BES1 is the server we are copying CAF/rules from, BES2 is the server we are copying the CAF/rules to. All the commands below must be run as ppadmin user.
1. Step 1 - Copy the CAF fields from BES1 to BES2:
a. Navigate to $PPHOME/SMARTView/cfg on BES1.
b. We need to check which CAF file BES1 is currently using so we can copy the correct file across to BES2. To do this, enter the following command:
BES1 (ppadmin)% cat livecef
c. Copy the resulting cfg file (in this example 'ISSCEFV15.cfg') to the BES2 server and place under the same directory: $PPHOME/SMARTView/cfg.
d. Once you have copied over the correct CAF file from BES1 to BES2 – you must update the ‘livecef’ file on BES2 to point to the file name you have copied over ($PPHOME/SMARTView/cfg/livecef):
BES2 (ppadmin)% cat livecef
Step 2 - Copy the Rules_File for each message channel from BES1 to BES2:
a. Navigate to $PPHOME/SMARTView/Live/mcname on BES1.
b. Copy the Rules_File from this directory to the same directory on BES2.
Note: The Rules_File for each message channel will need to be copied over and placed in the respective message channel directories for each message channel: $PPHOME/SMARTView/Live/mcname.
Step 3 - Perform a RuleApplyAll on all message channels on BES2:
Once all the Message Channel Rules_Files have been copied over from BES1 to BES2, we can now perform a RuleApplyAll to apply all the rules to all the message channels:
a. Navigate to $PPHOME/bin on BES2.
b. Enter the following command to apply the new rules files:
c. You should then see the rules applied to all message channels.