Monitoring, Management & Location Tracking

 View Only
last person joined: one year ago 

Articles relating to existing and legacy HPE Aruba Networking products and solutions including AirWave, Meridian Apps, ALE, Central / HPE Aruba Networking Central, and UXI / HPE Aruba Networking User Experience Insight

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

Jun 10, 2014 11:40 PM

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]

Examples:
# 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:
https://my.amp.com/nf/rapids_rules?edit=1&id=6
. The rule ID in this case is 6.

Statistics
0 Favorited
0 Views
0 Files
0 Shares
0 Downloads

Related Entries and Links

No Related Resource entered.