Previous Topic: Import the Default NBAR2 Application Mapping RulesNext Topic: Import Application Mapping Rule Updates


Import Custom Application Mapping Rules

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 required fields to include in the import file for each rule type.

Follow these steps:

  1. Log in to the NFA console server or stand-alone server as a user who is a member of the Administrators group.
  2. Open a command prompt.
  3. Open the example import file for your rule type:
  4. Follow the format in the example file for your rule type:
  5. Go to the directory that contains the .csv file. The following command shows the default location:
    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.

  6. Perform the import by entering the following command:
    racmd -import nbar2.csv
    

    where:

    nbar2.csv is the name of the application mapping rule file that you want to import. The command string is based on the expectation that the racmd command and .csv file are in their default location. 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.

  7. (Optional) Verify that the rules are listed on the Applications Definitions page:
    1. Select Administration from the NFA console menu.

      The Administration page opens.

    2. Select Application Definitions in the Administration menu.

      The Application Definitions page opens.

  8. (Optional) Verify that the application traffic is labeled appropriately in the following locations:
  9. (Optional) Combine or separate traffic for selected applications if you like, as discussed in Set Up Application Mapping.

The following table lists the fields that apply to each rule type. List the fields in the order shown in the import file example, not the order shown in the table.

Rule Type

name

desc

protocolName

tos

ip

mask

newPort

beginPort

endPort

applicationID

All - tos

Y

Y

 

Y

 

 

Y

 

 

 

Host - server

Y

Y

 

 

Y

 

Y

 

 

 

Host - server-protocol

Y

Y

Y

Y

Y

 

Y

Y

 

 

NBAR2 - nbar2

Y

Y

 

 

 

 

Y

 

 

Y

Subnet - subnet

Y

Y

Y

 

Y

Y

Y

Y

Y