R3303-HP HSR6800 Routers Network Management and Monitoring Configuration Guide

185
Configuring counter sampling
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Enter interface view.
interface interface-type
interface-number
N/A
3. Set the interval for counter
sampling.
sflow counter interval seconds
Counter sampling is disabled by
default.
4. Specify the sFlow collector for
counter sampling.
sflow counter collector collector-id
No collector is specified for
counter sampling by default.
Displaying and maintaining sFlow
Task Command
Remarks
Display sFlow configuration
information.
display sflow [ slot slot-number ] [ |
{ begin | exclude | include }
regular-expression ]
Available in any view.
sFlow configuration example
Network requirements
As shown in Figure 64, enable flow sampling and counter sampling on GigabitEthernet 4/0/1 of the
router to monitor traffic on the port and configure the device to send sampled information to the sFlow
collector through GigabitEthernet 4/0/0.
Figure 64 Network diagram
Configuration procedure
1. Configure the sFlow agent and sFlow collector information:
3.3.3.2/16
Host A
1.1.1.1/16
GE4/0/0
3.3.3.1/16
GE4/0/2
2.2.2.1/16
GE4/0/1
1.1.1.2/16
Server
2.2.2.2/16
Router
sFlow Collector