260
•
Aging
timer
—1200 seconds.
•
Maximum length of the sFlow data portion in the sFlow packet
—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
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 FortyGigE 1/0/1.
<Sysname> system-view
[Sysname] interface fortygige 1/0/1
[Sysname-FortyGigE1/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 2 Ethernet interface view, Layer 3 Ethernet interface view
Predefined user roles
network-admin
Parameters
collector-id
: Specifies an sFlow collector by its ID in the range of 1 to 10.