NOTE:
The switch does not support the flow sampling mode determine.
Configuring counter sampling
Step
1.
Enter system view.
2.
Enter Layer 2 interface
view.
3.
Set the interval for
counter sampling.
4.
Specify the sFlow
collector for counter
sampling.
Displaying and maintaining sFlow
Task
Display sFlow configuration
information.
sFlow configuration example
Network requirements
As shown in
Enable sFlow (including flow sampling and counter sampling) on GigabitEthernet 1/0/1 to monitor
traffic on the interface. The device sends sFlow packets through GigabitEthernet 1/0/3 to the sFlow
collector, which analyzes the sFlow packets and displays results.
Figure 51 Network diagram
Host A
1.1.1.1/16
Command
system-view
interface interface-type
interface-number
sflow counter interval seconds
sflow counter collector
collector-id
Figure
51, Host A is connected with the server through the device (sFlow agent).
sFlow Collector
3.3.3.2/16
VLAN 1
3.3.3.1/16
GE1/0/2
2.2.2.1/16
GE1/0/1
1.1.1.2/16
Device
Remarks
N/A
N/A
Counter sampling is disabled by default.
No collector is specified for counter
sampling by default.
Command
display sflow [ slot slot-number ] [ |
{ begin | exclude | include }
regular-expression ]
Server
2.2.2.2/16
140
Remarks
Available in any view