Minimum Accounting Options Configuration
To enable accounting options on the router, you must perform at least the following tasks:
- Configure accounting options by including a
filestatement and one or moresource-class-usage,destination-class-profile, filter-profile,interface-profile, orrouting-engine-profilestatements at the[edit accounting-options]hierarchy level:[edit]accounting-options {class-usage-profileprofile-name{filefilename;intervalminutes;source-classes {source-class-name;destination-classes {destination-class-name;}}filefilename{archive-sites {site-name;}filesfilenumber;sizebytes;transfer-intervalminutes;}filter-profileprofile-name{counters {counter-name;}filefilename;intervalminutes;}interface-profileprofile-name{fields {field-name;}filefilename;intervalminutes;}routing-engine-profileprofile-name{fields {field-name;}filefilename;intervalminutes;}}Apply the profiles to the chosen interfaces or filters. Apply an interface profile to a physical or logical interface by including the
accounting-profilestatement at either the[edit interfacesinterface-name]or the[edit interfacesinterface-nameunitnumber]hierarchy level. For more information on interface profiles, see the JUNOS Network Interfaces and Class of Service Configuration Guide.[edit interfaces]interface-name {accounting-profile profile-name;unitnumber{accounting-profile profile-name;}}Apply a filter profile to a firewall filter by including the
accounting-profilestatement at the[edit firewall filterfilter-name]hierarchy level:[edit firewall]filter filter-name {accounting-profile profile-name;}You do not need to apply the Routing Engine profile to an interface because the statistics are collected on the Routing Engine itself.