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: 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 flow collector
Use sflow flow collector to specify an sFlow collector for flow sampling.
Use undo sflow flow collector to restore the default.
Syntax
sflow flow collector collector-id
undo sflow flow collector
Default
No sFlow collector is specified for flow sampling.
Views
Layer 2 Ethernet interface view
Layer 3 Ethernet interface view
Predefined user roles
network-admin
mdc-admin
Parameters
collector-id: Specifies an sFlow collector by its ID. The value range for this argument is 1 to 10.
Examples
# Specify sFlow collector 2 on Ten-GigabitEthernet 1/0/1 for flow sampling.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] sflow flow collector 2
374