Configuring Statistics Profiles
The local policy decision function (L-PDF) enables you to configure properties for statistics output. To do this, you create a statistics profile, which configures the files to which statistics records are exported and the format that is exported. There are two configurations you can use to specify the profile, as described in the following subsections:
![]() | Note: You must use the same configuration stanza for specifying the profile and the file selection. If configurations are committed in both hierarchies, the one at the [edit system services local-policy-decision-function] hierarchy level takes precedence. |
![]() | Note: During the time that the application identification (APPID) feature has not yet made a final determination of the application associated with a given flow, the flow does not contribute to any per-subscriber or per-application statistics collection. For more information, see Best-Effort Application Identification of DPI-Serviced Flows. |
Configuring an L-PDF Statistics Profile
You can specify an L-PDF statistics profile by including the following configuration at the [edit accounting-options] hierarchy level:
![]() | Note: This configuration method is not the preferred method for configuring Dynamic Application Awareness statistics. It is only maintained for backwards compatibility and may be deprecated in a future software release. The new, preferred configuration is found at the [edit system services local-policy-decision-function] hierarchy level, as described in Configuring an AACL Statistics Profile.We encourage you to migrate to the new configuration method. |
You specify a profile name to identify the profile and other
properties as needed by including the policy-decision-statistics-profile statement. The aacl-fields statement specifies which statistics
to collect in an accounting-data log file. This log file is located
on the /var/log directory on the
router. You specify the log file by including the file filename statement. The filename is prefixed by the aacl_statistics_ prefix; for example, if you specify the filename lpdfd, the log file will be /var/log/aacl_statistics_lpdfd.
The application-aware-access-list-fields statement supports the following options:
- address—IP Address
- application—Application name
- application-group—Application group name
- input-bytes—Number of input bytes
- input-interface—Input interface name
- input-packets—Number of input packets
- mask—Netmask
- output-bytes—Number of output bytes
- output-packets—Number of output packets
- subscriber-name—Subscriber name
- timestamp—Timestamp
- vrf-name—VPN routing and forwarding (VRF) name
For more information on configuring profiles, see the Junos Network Management Configuration Guide.
Configuring an AACL Statistics Profile
You can specify an AACL statistics profile by including the following configuration at the [edit system services] hierarchy level:
To specify the file properties, include the file statement at the [edit system services local-policy-decision-function statistics hierarchy level with a unique filename:
- The archive-sites statement specifies one or more URLs for archiving the files. Archiving can be done by using FTP or SCP.
- The files statement specifies the maximum number of files that are maintained at one time.
- The size statement specifies the maximum size of each file.
- The transfer-interval statement specifies the interval between data transfers in minutes.
You specify a profile name to identify the profile and other
properties as needed by including the aacl-statistics-profile statement. The aacl-fields statement specifies which statistics
to collect in an accounting-data log file. This log file is located
on the /var/stats/aacl directory
on the router. You specify the log file by including the file filename statement.
The aacl-fields statement supports the following options:
- address—IP Address
- all-fields—All available fields
- application—Application name
- application-group—Application group name
- input-bytes—Number of input bytes
- input-interface—Input interface name
- input-packets—Number of input packets
- mask—Netmask
- output-bytes—Number of output bytes
- output-packets—Number of output packets
- subscriber-name—Subscriber name
- timestamp—Timestamp
- vrf-name—VPN routing and forwarding (VRF) name
The record-type statement specifies whether a record is delta or interim; delta is the default setting. The report-interval statement specifies the reporting interval in minutes; the default setting is 15 minutes and the range is 5 through 1440 minutes. The record-mode statement specifies how the statistics are reported for each reporting interval; the default setting is interim-full and reports all available statistics. To report only statistics that have changed for the reporting interval, use the interim-active-only setting.
For more information on configuring profiles, see the Junos Network Management Configuration Guide.
Hide Navigation Pane
Show Navigation Pane
Download
SHA1
