Chapter 15 commands for qos and pbr, 1 accounting, 2 class – PLANET XGS3-24042 User Manual

Page 278: Chapter 15 commands for qos and pbr -124, Accounting, Class

Advertising
background image

15-124

Chapter 15 Commands for QoS and

PBR

15.1 accounting

Command:

accounting

Function:

Set statistic function for the classified traffic.

Default:

Do not set statistic function.

Command mode:

Policy map configuration mode

Usage Guide:

After enable this function, add statistic function to the traffic of the policy class map. In single bucket

mode, the messages can only red or green when passing policy and printing the information. In dual

bucket mode, there are three colors(green, yellow, red) of messages. Note: In policy-map,

accounting does not take effect if only set internal priority is configured, but there is no policy.

Example:

Count the packets which satisfy c1 rule.

Switch(config)#policy-map p1

Switch(Config-PolicyMap-p1)#class c1

Switch(Config-PolicyMap-p1-Class-c1)#accounting

Switch(Config-PolicyMap-p1-Class-c1)#exit

Switch(Config-PolicyMap-p1)#exit

15.2 class

Command:

class <class-map-name> [insert-before <class-map-name>]

no class <class-map-name>

Function:

Associates a class to a policy map and enters the policy class map mode; the no command deletes

the specified class.

Advertising
This manual is related to the following products: