R211x-HP Flexfabric 11900 Network Management and Monitoring Command Reference
243
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 is deleted. 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 does not age out.
Examples
# Configure parameters for an sFlow collector. Specify the ID as 2, VPN name as vpn1, IP address as
3.3.3.1, 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> system-view
[Sysname] sflow collector 2 vpn-instance vpn1 ip 3.3.3.1 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.
Syntax
sflow counter interval interval-time
undo sflow counter interval
Default
Counter sampling is disabled.
Views
Layer 2 Ethernet interface view, Layer 3 Ethernet interface view
Predefined user roles
network-admin
mdc-admin
Parameters
interval-time: Specifies the counter sampling interval in the range of 2 to 86400 seconds.
Examples
# Enable counter sampling and set the counter sampling interval to 120 seconds on Ten-GigabitEthernet
1/0/1.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] sflow counter interval 120
sflow counter collector
Use sflow counter collector to specify an sFlow collector for counter sampling.










