Configuring the SSR Database as the Accounting Method (SRC CLI)

When you use the SSR database as the accounting method for the SIC group, accounting events are stored in the SSR database. Part of configuring this accounting method includes configuring the mapping between any request attributes, literals, or SIC variables, and the respective SAE plug-in attributes.

Note: At a minimum, you must configure the mapping between the SIC and the SAE plug-in attributes: user-inet-address and vpn-id. You also need to map these SAE plug-in attributes to the primary keys: UserIPAddress and VpnID in the SSR subscriber sessions table.

Use the following statements to configure the SSR database as the accounting method for the SIC group:

shared sic group identifier accounting-method accounting-method-name
shared sic group identifier accounting-method accounting-method-name database { remove-stopped-sessions}
shared sic group identifier accounting-method accounting-method-name database plug-in-attribute id {request-attribute request-attribute;variable variable;literal literal;}

To configure the SSR database as the accounting method for the SIC group:

  1. From configuration mode, access the statement that configures the SSR database as the accounting method. This sample procedure uses group1 as the group identifier and acm1 as the accounting method name.
    [edit]user@host# edit shared sic group group1 accounting-method acm1 database
  2. (Optional) To conserve space in the SSR database, the SIC can delete corresponding entries in the SSR user session table and service session table when it receives an Accounting-Stop message from the NAS. Set this option to enable this capability.
    [edit]user@host# set remove-stopped-sessions
  3. Specify the mapping between the SAE plug-in attribute and the request attribute, SIC variable, or literal. For example, to map the SAE plug-in attribute login-name to the request attribute User-Name:
    [edit shared sic group group1 accounting-method acm1 database ]user@host# edit plug-in-attribute login-nameuser@host# set request-attribute User-Name
  4. (Optional) Verify your configuration.
    [edit shared sic group g1 accounting-method acm1 database]
    user@host# show
    plug-in-attribute {
      login-name {
        request-attribute User-Name;
      }
    }
  5. Configure the mapping between the SAE plug-in attribute and the field in the subscriber sessions table in the SSR database. For information about configuring this mapping, see Mapping SAE Plug-In Attributes to Fields in the Subscriber Sessions Table (SRC CLI).

Related Documentation