Monitoring, Management & Location Tracking

How can I copy RAPIDS rules from one AMP to another?

Aruba Employee
Aruba Employee

If you want to copy RAPIDS rules from one AMP to another, you first dump the rules from the one AMP and then use the rapids_classification_rule script generated by the dump to restore them onto the target AMP.

- You use the generic_dump command to dump one or all RAPIDS classification rules. 
- RAPIDS rules reside in the rapids_classification_rule table. 
- You can dump all the rules using the --all flag.
- You can dump one particular rule using the --id flag followed by the rule's ID number 
- See instructions below for obtaining a rule's ID number.

The dump will be written to /tmp/rapids_classification_rule. The resulting file is actually a perl script that you will use to restore the RAPIDS rule(s) you dumped.

General usage:
# generic_dump --table <table> [ --id <rule_ID> | --all]

# generic_dump --table rapids_classification_rule --all
output file is /tmp/rapids_classification_rule

# generic_dump --table rapids_classification_rule --id 1
output file is /tmp/rapids_classification_rule

(NOTE: the --all flag does not work with all tables, so it is not included in the command's usage help.)

Copy the rapids_classification_rule file you created to the AMP where you want to restore the rule(s). (We recommend that you copy it to the /var/airwave/custom directory.) The file is a perl script that you run as follows:

# perl /var/airwave/custom/rapids_classification_rule

NOTE: The script will not replace nor overwrite existing rules. 
- Restored rules will be added to any rules already existing on the server. 
- If you restore a rule that has the same name as a rule already on the server--whether the rule is different or identical-- both rules will appear.

To obtain the ID number of a RAPIDS rule:
- Go to the RAPIDS > Rules page
- Find the rule that you want the ID for
- Hover the mouse over the pencil icon next to the rule
- At the bottom of the browser window you should see the corresponding URL
- At the end of the URL you will see ....&id=[ID]
. Example:
. The rule ID in this case is 6.

Version history
Revision #:
1 of 1
Last update:
‎06-10-2014 08:40 PM
Updated by:
Labels (1)
Search Airheads
Showing results for 
Search instead for 
Did you mean: