Examples
# Configure the following parameters for sFlow collector 2:
•
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 ip 3.3.3.1 description netserver time-out 1200 datagram-size
1000
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
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 counter sampling.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] sflow counter collector 2
sflow counter interval
Use sflow counter interval to enable counter sampling and set a counter sampling interval.
Use undo sflow counter interval to disable counter sampling.
Syntax
sflow counter interval interval
undo sflow counter interval
373