Juniper JUNOSE SOFTWARE FOR E SERIES 11.3.X - BROADBAND ACCESS CONFIGURATION GUIDE 2010-10-12 Configuration Manual page 716

Software for e series broadband services routers broadband access configuration guide
Hide thumbs Also See for JUNOSE SOFTWARE FOR E SERIES 11.3.X - BROADBAND ACCESS CONFIGURATION GUIDE 2010-10-12:
Table of Contents

Advertisement

JunosE 11.3.x Broadband Access Configuration Guide
Example 1
Example 2
678
When you configure your service definition for statistics, you include the macro
environment command env.setResult to indicate the type of statistics to track and to
identify the classifier lists to use when generating statistics. The format of the environment
command is:
<# env.setResult("string" , "classifier-list-name" ) #>
The string variable specifies the type of statistics to track—Service Manager supports
the following strings:
input-stat-clacl—track input statistics
output-stat-clacl—track output statistics
secondary-input-stat-clacl—track input statistics for a policy attached at the secondary
input stage
The classifier-list-name variable is the name of the classifier list that is associated with
the policy list that is defined in the service definition. You can specify multiple classifier
lists in the command.
This example is a portion of the service definition macro file in Figure 29 on page 640. The
two highlighted commands specify the statistics used by the Service Manager application.
profile <# name; '\n' #>
ip policy secondary-input <# name #> statistics enabled merge
ip policy output <# oname #> statistics enabled merge
qos-profile triplePlayIP
qos-parameter maxSubscBW <# outputBW; '\n' #>
<# env.setResult("activate-profile", name) #> <#
env.setResult("secondary-input-stat-clacl", "matchAll") #> <#
env.setResult("output-stat-clacl", "matchAll") #>
<# endtmpl #>
The <# env.setResult("secondary-input-stat-clacl", "matchAll") #> command
specifies that Service Manager track statistics associated with the classifier list named
matchAll, and that this classifier list is associated with the policy that is attached at the
secondary input stage.
The <# env.setResult("output-stat-clacl", "matchAll") #> command specifies that
Service Manager track the output statistics associated with the matchAll classifier list,
which is associated with the policy attached at the output stage.
NOTE: Before you reference as policy in the service definition macro to enable
Service Manager collect statistics, you must enable statistics collection for
this policy using the statistics enabled keyword in the command used for
policy attachment in the profile.
This example shows how you can also configure your service definition to collect total
statistics from multiple classifier lists. The following command specifies that three
classifier lists are used to generate output statistics for a service created by the service
Copyright © 2010, Juniper Networks, Inc.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junose 11.3

Table of Contents