Enabling Statistics Collection with RADIUS
Enabling Statistics Collection with the CLI
Copyright © 2010, Juniper Networks, Inc.
definition. Each time statistics are reported for this service, Service Manager uses the
total of the statistics for clacl1, clacl2, and clacl3.
<# env.setResult("output-stat-clacl", "clacl1 clacl2 clacl3" ) #>
You use the Service-Statistics RADIUS VSA [26-69] with either the RADIUS login or
CoA-Request method to enable statistics for RADIUS-activated service sessions. To
enable statistics, configure the Service-Statistics VSA with a value of either 1 (timestamp
only) or 2 (volume and timestamp).
Table 150 on page 679 describes a partial RADIUS message in which the Service-Statistics
attribute has a value of 2—this enables volume and timestamp statistics for the tiered
service assigned to subscriber client1@isp1.com.
Table 150: RADIUS-Enabled Statistics
RADIUS Attribute
username
activate-service
service-statistics
When you enable statistics for a RADIUS-activated service, RADIUS accounting reports
can use the statistics.
You use service session profiles to enable statistics when you activate a service session
with the CLI. See "Using Service Session Profiles" on page 672 for detailed information
about creating and using service session profiles.
For example, you can use the following procedure to capture statistics that are defined
in the service definition macro file for the tiered service:
Configure the service session profile to enable statistics. Specify the type of statistics
1.
you want to capture (either time or both volume and time).
host1(config)#service-management service-session-profile isp1_tiered3
host1(config-service-session-profile)#statistics volume-time
host1(config-service-session-profile)#
Apply the service session when you activate the subscriber service session.
2.
host1(config)#service-management subscriber-session client1@isp1.com interface
atm 4/0.1 service-session " tiered(1000000, 2000000)" service-session-profile
isp1_tiered3
The captured statistics are now used when you use the Service Manager show
service-management commands. For example:
Chapter 27: Configuring Service Manager
Tag
Value
none
client1@isp1.com
6
tiered(1280000, 5120000)
6
2
679