Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Supported Platforms

Configuring a Statistics Profile for PTSP

The local policy decision function (L-PDF) enables you to configure properties for statistics output by creating a statistics profile. The statistics profile configures the files to which statistics records are exported and the format that is exported. You configure the statistics profile so that the statistics records are exported to a flat file. Flat files contain statistics that are collected for each subscriber by application or application group. The statistics in a flat file are not transmitted to the external policy manager using Diameter.

To configure a statistics profile for PTSP:

  1. Specify that you want to configure a statistics profile.
    [edit system services local-policy-decision-function]user@host# edit statistics
  2. Configure the file properties used for the trace output.
  3. Configure the profile properties.
  4. Specify the record type.

Tasks to configure a statistics profile for PTSP are:

Configuring the File Properties for Statistics Data Output

You configure a file to which the statistics data output is exported in a specified format.

To configure the file properties:

  1. Specify the unique filename for receiving statistics data output.
    [edit system services local-policy-decision-function statistics]user@host# edit file ptsp
  2. (Optional) Specify the maximum number of files that are maintained at one time and the maximum size of each file. If you configure one of these options, you also must set the other option.
    [edit system services local-policy-decision-function statistics file ptsp]user@host# set files 10 size 1g
  3. Specify the interval for transferring files to archive sites.
    [edit system services local-policy-decision-function statistics file ptsp]user@host# set transfer-interval 60
  4. Specify one or more URLs for archiving the files. Archiving can be done by using FTP or SCP.
    [edit system services local-policy-decision-function statistics file ptsp]user@host# set archive-sites "ftp://anonymous@10.227.1.114"

Configuring the Profile Properties for Statistics Data Output

You can create an AACL statistics profile, which configures the statistics to collect and write to a file in the /var/stats/aacl directory.

To configure the profile properties:

  1. Specify the name of the profile.
    [edit system services local-policy-decision-function statistics]user@host# edit aacl-statistics-profile ptsp
  2. (Optional) Specify the file in the /var/stats/aacl directory in which statistics are collected. Enclose the name within quotation marks.
    [edit system services local-policy-decision-function statistics aacl-statistics-profile ptsp]user@host# set file "pstp"
  3. Set the interval for reporting statistics.
    [edit system services local-policy-decision-function statistics aacl-statistics-profile ptsp]user@host# set report-interval 5
  4. Set the interim-active-only mode for reporting statistics. This mode reports only statistics that have changed in the past report interval.
    [edit system services local-policy-decision-function statistics aacl-statistics-profile ptsp]user@host# set record-mode interim-active-only
  5. Specify the statistics to be collected in the log file.
    [edit system services local-policy-decision-function statistics aacl-statistics-profile ptsp]user@host# set aacl-fields all-fields

Configuring the Record Type for Statistics Data

You must configure the interim record type for recording the AACL statistics.

To configure the record type:

  • Specify interim as the record type.
    [edit system services local-policy-decision-function statistics]user@host# set record-type interim

Published: 2012-11-29

Supported Platforms

Published: 2012-11-29