description text: Configures a description for the sFlow collector. The default description is "CLI
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 is 6343.
time-out seconds: Specifies the aging timer of the sFlow collector, in the range of 1 to 2147483647
seconds. When the aging timer expires, the sFlow collector settings are deleted. The sFlow collector
settings do not age out by default.
# Configure parameters for an sFlow collector. Specify the ID as 2, VPN name as vpn1, IP address as
220.127.116.11, port number as the default, description as netserver, aging timer as 1200 seconds, and
maximum length of the sFlow data portion in the sFlow packet as 1000 bytes.
[Sysname] sflow collector 2 vpn-instance vpn1 ip 18.104.22.168 description netserver time-out
1200 datagram-size 1000
sflow counter interval
Use sflow counter interval to enable counter sampling and set a counter sampling interval.
Use undo sflow counter interval to restore the default.
sflow counter interval interval-time
undo sflow counter interval
Counter sampling is disabled.
Layer 2 Ethernet interface view, Layer 3 Ethernet interface view
Predefined user roles
interval-time: Specifies the counter sampling interval in the range of 2 to 86400 seconds.
# Enable counter sampling and set the counter sampling interval to 120 seconds on GigabitEthernet
[Sysname] interface GigabitEthernet 3/0/1
[Sysname-GigabitEthernet3/0/1] sflow counter interval 120