H3C LS-3100-52P-OVS-H3 Operation Manual - page 491
1-2
3) When the sFlow packet buffer overflows or the one-second timer expires, the sFlow agent sends
sFlow packets to the specified sFlow collector.
Configuring sFlow
The sFlow feature enables the remote sFlow collector to monitor the network and analyze sFlow packet
statistics.
Follow these steps to configure sFlow:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Specify the IP address of the
sFlow agent
sflow agent ip ip-address
Required
Not configured by default.
Specify the IP address and port
number of the sFlow collector
sflow collector ip ip-address
[ port port-num ]
Required
Not specified by default.
Set the counter sampling
interval at which the sFlow
agent collects the statistics of
sFlow enabled ports
sflow interval interval-time
Optional
20 seconds by default.
Enter Ethernet port view
interface interface-type
interface-number
—
Enable sFlow in the inbound or
outbound direction
sflow enable { inbound |
outbound }
Required
Not enabled by default.
Specify the sFlow sampling
mode
sflow sampling-mode
{ determine | random }
Optional
random by default.
Currently, the determine mode
is not supported on S5500-EI
series Ethernet switches.
Specify the number of packets
out of which the interface will
sample a packet
sflow sampling-rate rate
Optional
200000 by default.
z
The sFlow agent and sFlow collector must not have the same IP address.
z
Currently, you can specify at most two sFlow collectors on the device.
Displaying and Maintaining sFlow
To do…
Use the command…
Remarks
Display sFlow configuration information
display sflow [ slot slot-id ]
Available in any
view