Complete Software Guide for Junos
Configuring Accounting for the Physical Interface
Applying an Accounting Profile to the Physical Interface
1324
®
OS for EX Series Ethernet Switches, Release 10.4
Juniper Networks routers and switches can collect various kinds of data about traffic
passing through the router and switch. You can set up one or more accounting profiles
that specify some common characteristics of this data, including the following:
The fields used in the accounting records
The number of files that the router or switch retains before discarding, and the number
of bytes per file
The polling period that the system uses to record the data
You configure the profiles and define a unique name for each profile using statements
at the
[edit accounting-options]
interface profiles and filter profiles. You configure interface profiles by including the
statement at the
interface-profile
filter profiles by including the
hierarchy level. For more information, see the Junos OS Network Management Configuration
Guide.
You apply filter profiles by including the
filter filter-name]
and
[edit firewall family family filter filter-name]
more information, see the Junos OS Policy Framework Configuration Guide.
To enable accounting on an interface, include the
[edit interfaces interface-name]
[edit interfaces interface-name]
accounting-profile name;
You can also reference profiles by logical unit; for more information, see "Configuring
Accounting for the Logical Interface" on page 1325.
Example: Applying an Accounting Profile to the Physical Interface
Configure an accounting profile for an interface and apply it to a physical interface:
[edit]
accounting-options {
file if_stats {
size 4m files 10 transfer-interval 15;
archive-sites {
"ftp://login:password@host/path";
}
}
interface-profile if_profile {
interval 15;
file if_stats {
fields {
input-bytes;
output-bytes;
hierarchy level. There are two types of accounting profiles:
[edit accounting-options]
filter-profile
statement at the
accounting-profile
accounting-profile
hierarchy level:
Copyright © 2010, Juniper Networks, Inc.
hierarchy level. You configure
[edit accounting-options]
statement at the
[edit firewall
hierarchy levels. For
statement at the