HP 6125G HP 6125G & 6125G/XG Blade Switches ACL and QoS Command Refere - Page 47

Traffic behavior configuration commands, accounting, car

Page 47 highlights

Traffic behavior configuration commands accounting Syntax accounting { byte | packet } View undo accounting Traffic behavior view Default level 2: System level Parameters byte: Counts traffic in bytes. packets: Counts traffic in packets. Description Use accounting to configure the traffic accounting action in a traffic behavior. Use undo accounting to delete the traffic accounting action from a traffic behavior. You can use the accounting action to collect statistics for a traffic class, for example, the traffic sourced from a certain IP address. You can use the display qos policy interface command and the display qos vlan-policy command to display class-based traffic statistics. Related commands: qos policy, traffic behavior, and classifier behavior. Examples # Configure the accounting action in the traffic behavior database to collect statistics in bytes. system-view [Sysname] traffic behavior database [Sysname-behavior-database] accounting byte car Syntax car cir committed-information-rate [ cbs committed-burst-size [ ebs excess-burst-size ] ] [ pir peak-information-rate ] [ green action ] [ yellow action ] [ red action ] View undo car Traffic behavior view Default level 2: System level 42

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104

42
Traffic behavior configuration commands
accounting
Syntax
accounting
{
byte
|
packet
}
undo accounting
View
Traffic behavior view
Default level
2: System level
Parameters
byte
: Counts traffic in bytes.
packets
: Counts traffic in packets.
Description
Use
accounting
to configure the traffic accounting action in a traffic behavior.
Use
undo accounting
to delete the traffic accounting action from a traffic behavior.
You can use the accounting action to collect statistics for a traffic class, for example, the traffic sourced
from a certain IP address.
You can use the
display qos policy interface
command and the
display qos vlan-policy
command to
display class-based traffic statistics.
Related commands:
qos policy
,
traffic behavior
, and
classifier behavior
.
Examples
# Configure the accounting action in the traffic behavior
database
to collect statistics in bytes.
<Sysname> system-view
[Sysname] traffic behavior database
[Sysname-behavior-database] accounting byte
car
Syntax
car cir
committed-information-rate
[
cbs
committed-burst-size
[
ebs
excess-burst-size
] ] [
pir
peak-information-rate
] [
green
action
] [
yellow
action
] [
red
action
]
undo car
View
Traffic behavior view
Default level
2: System level