R3303-HP HSR6800 Routers Network Management and Monitoring Command Reference

242
Default
The device provides a number of sFlow collectors. Use the display sflow command to display these sFlow
collectors.
Views
System view
Default command level
2: System level
Parameters
collector-id: Specifies an ID for the sFlow collector, in the range of 1 to 10.
ip ip-address: Specifies an IPv4 address for the sFlow collector.
ipv6 ipv6-address: Specifies an IPv6 address for the sFlow collector.
description text: Configures a description for the sFlow collector. The default description is "CLI
Collector."
datagram-size size: Specifies the maximum length of the sFlow data portion in an sFlow packet. The
value range for the size argument is 200 to 3000 bytes, and the default is 1400 bytes.
port port-number: Specifies the port number of the sFlow collector, in the range of 1 to 65535. The
default port number is 6343.
time-out seconds: Specifies the aging time of the sFlow collector, in the range of 1 to 2147483647, in
seconds. When the aging time expires, all the settings of the sFlow collector are restored to the default.
For an sFlow collector with the aging timer configured, the system does not save its configuration in the
configuration file. By default, the sFlow collector never ages out.
Examples
# Specify sFlow collector 2's destination IP address as 3.3.3.1, port number as the default, description as
netserver, aging time as 1200 seconds, and maximum length of the sFlow data portion as 1000 bytes.
<Sysname> system-view
[Sysname] sflow collector 2 ip 3.3.3.1 description netserver time-out 1200 datagram-size
1000
sflow counter interval
Use sflow counter interval to set the counter sampling interval.
Use undo sflow counter interval to disable counter sampling.
Syntax
sflow counter interval interval-time
undo sflow counter interval
Default
Counter sampling is disabled.
Views
Interface view