Traffic-Statistic; Traffic-Statistic Vlan - H3C S3100 Series Command Manual

Hide thumbs Also See for S3100 Series:
Table of Contents

Advertisement

traffic-statistic

Syntax
traffic-statistic inbound acl-rule
undo traffic-statistic inbound acl-rule
View
System view, Ethernet port view, Port group view
Parameter
inbound: Generates statistics on inbound packets.
acl-rule: ACL rules to be applied. This argument can be the combination of multiple ACLs. For more
information about this argument, refer to
must be those defined with the permit keyword specified.
Description
Use the traffic-statistic command to generate statistics on all the packets matching specific ACL rules,
or on packets that match specific ACL rules and are of a port group, or pass a port.
Use the undo traffic-statistic command to disable generating statistics on all the packets matching
specific ACL rules, or on packets that match specific ACL rules and are of a port group, or pass a port.
Note that, for the same ACL rule, the traffic accounting function and the meter statistic keyword of the
traffic-limit command are mutually exclusive in system view, Ethernet port view, or port group view.
Only H3C S3100-EI series switches support this command.
Related command: display qos-interface traffic-statistic, reset traffic-statistic.
Example
# Generate statistics on the packets that match ACL 2000 and pass Ethernet 1/0/1 (assuming that the
current device is an S3100-EI series switch).
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] acl number 2000
[Sysname-acl-basic-2000] rule permit source 1.1.1.0 0.0.0.255
[Sysname-acl-basic-2000] quit
[Sysname] interface Ethernet 1/0/1
[Sysname-Ethernet1/0/1] traffic-statistic inbound ip-group 2000

traffic-statistic vlan

Syntax
traffic-statistic vlan vlan-id inbound acl-rule
Table 1-9
and
Table
1-10. Note that the ACL rules referenced
1-43

Advertisement

Table of Contents
loading

Table of Contents