
463
Use
undo sflow agent
to restore the default.
Syntax
sflow agent
{
ip
ipv4-address
|
ipv6
ipv6-address
}
undo sflow agent
{
ip
|
ipv6
}
Default
No IP address is configured for the sFlow agent. The device periodically identifies whether the sFlow
agent has an IP address. If the sFlow agent does not have an IP address, the device automatically
selects an IPv4 address for the sFlow agent. It does not save the IPv4 address in the configuration
file.
Views
System view
Predefined user roles
network-admin
Parameters
ip
ipv4-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.
If you execute this command multiple times, the most recent configuration takes effect.
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 ipv4-address
|
ipv6
ipv6-address
} [
port port-number
] [
datagram-size size
] [
time-out seconds
] [
description string
]
undo sflow collector collector-id
Default
No sFlow collector information is configured.
Views
System view