353
Parameters
ip
ip-address
: Specifies an IPv4 address for the sFlow agent.
ipv6
ipv6-address
: Specifies an IPv6 address for the sFlow agent.
Usage guidelines
As a best practice, manually configure an IP address for the sFlow agent.
Only one IP address can be specified for the sFlow agent on the switch. A newly configured IP
address overwrites the existing one.
Examples
# Specify IP address 10.10.10.1 for the sFlow agent.
<Sysname> system-view
[Sysname] sflow agent ip 10.10.10.1
sflow collector
Use
sflow collector
to configure parameters for an sFlow collector.
Use
undo sflow collector
to remove an sFlow collector.
Syntax
sflow collector
collector-id
[
vpn-instance
vpn-instance-name
] {
ip
ip-address
|
ipv6
ipv6-address
}
[
port
port-number
] [
datagram-size
size
] [
time-out
seconds
] [
description
text
]
undo sflow collector
collector-id
Default
No sFlow collector information is configured.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
collector-id
: Specifies an sFlow collector by its ID in the range of 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
ip-address
: Specifies an IPv4 address for the sFlow collector.
ipv6
ipv6-address
: Specifies an IPv6 address for the sFlow collector.
description
text
: Configures a description for the sFlow collector. 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 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.