Configuring flow
With counter sampling enabled on an Ethernet interface, the sFlow agent periodically collects the
3.
statistics of the interface and encapsulates the statistics into sFlow packets. For more information,
see
"Configuring counter
Configuring sFlow
Complete the following tasks before sFlow can operate normally:
Configuring the IP address, flow sampling, and counter sampling of the sFlow collector on the switch.
•
Configuring the sFlow collector.
•
Configuring the sFlow agent and sFlow collector
The sFlow feature enables the remote sFlow collector to monitor the network and analyze sFlow packet
statistics.
To configure the sFlow agent and sFlow collector:
To do...
1.
Enter system view.
2.
Specify the IP address
for the sFlow agent.
3.
Configure the sFlow
collector.
sampling."
sampling."
Use the command...
system-view
sflow agent { ip ip-address | ipv6
ipv6-address }
sflow collector collector-id { { ip ip-
address | ipv6 ipv6-address } |
datagram-size size | description
text | port port-number | time-out
seconds } *
222
Remarks
—
Optional.
Not specified by default. The switch
periodically checks the existence of the
sFlow agent address. If the sFlow agent
has no IP address configured, the switch
automatically selects an interface IP
address for the sFlow agent but does not
save the selected IP address.
•
HP recommends configuring an IP
address manually for the sFlow
agent.
•
Only one IP address can be
specified for the sFlow agent on the
switch.
Required.
By default, the switch presets a number
of sFlow collectors.
Use the display sflow command to
display the parameters of the preset
sFlow collectors.
Support for the number of preset sFlow
collectors depends on the device model.