465
undo sflow counter interval
Default
Counter sampling is disabled.
Views
Layer 3 Ethernet interface view
Predefined user roles
network-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 GigabitEthernet
1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] sflow counter interval 120
sflow counter collector
Use
sflow counter collector
to specify an sFlow collector for counter sampling.
Use
undo sflow counter collector
to restore the default.
Syntax
sflow counter collector collector-id
undo sflow counter collector
Default
No sFlow collector is specified for counter sampling.
Views
Layer 3 Ethernet interface view
Predefined user roles
network-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 GigabitEthernet 1/0/1 for counter sampling.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] sflow counter collector 2