464
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.
vpn-instance vpn-instance-name
: Specifies a VPN instance by its name for the sFlow collector. A
VPN instance name is a case-sensitive string of 1 to 31 characters and cannot contain spaces. By
default, the sFlow collector belongs to the public network.
ip ipv4-address
: Specifies an IPv4 address for the sFlow collector.
ipv6 ipv6-address
: Specifies an IPv6 address for the sFlow collector.
description
string
: Specifies a description, a case-sensitive string of 1 to 127 characters. The
default description is "CLI Collector."
datagram-size size
: Specifies the maximum length of the sFlow data portion in an sFlow packet.
The value range for the
size
argument is 200 to 3000 bytes, and the default value is 1400 bytes.
port
port-number
: Specifies the UDP port number of the sFlow collector, in the range of 1 to 65535.
The default is 6343.
time-out seconds
: Specifies the aging timer of the sFlow collector, in the range of 1 to 2147483647
seconds. When the aging timer expires, the sFlow collector settings are deleted. The sFlow collector
settings do not age out by default.
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 on an
interface.
Use
undo sflow counter interval
to disable counter sampling on an interface.
Syntax
sflow counter interval
interval