You can create application mapping rules of a single type by importing a properly formatted .csv file. Example .csv files are provided, which show the fields to include in each type of import file.
Follow these steps:
cd <install_path>\reporter\racmd
where:
<install_path> is the product installation path. The product installation path is C:\CA\NFA by default.
racmd is the directory that contains the .csv import file. The file is written to this directory when you install the product.
racmd -export csv
The export file is named getapplicationmapping_<timestamp>.csv. The file is located in the current directory.
The command returns the status message: Creating csv file. When the operation is complete, the command prompt reappears.
Note: Rule IDs are specific to the current stand-alone or NFA console system.
The export file contains a line for each current application mapping rule, which begins with the rule ID. The line also includes extra information that you can ignore.
Example: First two lines in an import file to add NBAR2 rules
name,desc,newPort,applicationid youtube,Youtube video streaming,65035,82
where:
name = Rule name
desc = Rule description
newPort = Destination port
applicationID = NBAR2 application ID
Example: First two lines in an import file to update NBAR2 rules
appID,name,desc,newPort,applicationid 35,YouTube,Youtube video streaming,65035,82
where:
appID = Rule ID
If you update NBAR2 application mapping rules, do not change the NBAR2 application ID value. If you change this value, the rule will not function as expected.
We recommend that you save the import file to the same directory that contains the import command: <install_path>\reporter\racmd.
cd <install_path>\reporter\racmd
where:
<install_path> is the product installation path. The product installation path is C:\CA\NFA by default.
racmd is the directory that contains the .csv import file. The file is written to this directory when you install the product.
racmd -import nbar2_updated.csv
where:
nbar2_updated.csv is the name of the update file that you just created. If you have moved the .csv file, include the fully qualified path (the path and file name).
If any errors occur during the import, error messages are shown. If no message is returned, the import succeeded with no problems.
The Administration page opens.
The Application Definitions page opens.
|
Copyright © 2013 CA.
All rights reserved.
|
|