354
Examples
# Configure the following parameters for sFlow collector 2:
•
VPN
name
—vpn1.
•
IP
address
—3.3.3.1.
•
Port
number
—Default.
•
Description
—netserver.
•
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
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 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