Command Reference sFlow Commands
7 sFlow Commands
7.1 sflow agent
Use this command to configure the address of the sFlow Agent.
sflow agent { address { ip-address | ipv6 ipv6-address }} | { interface { interface-name | ipv6
interface-name }}
Use this command to delete the address of the sFlow Agent.
no sflow agent { address | interface }
Use this command to restore the default setting.
default sflow agent { address | interface }
Configures the IP address of the sFlow Agent.
sFlow Agent IPv4 address.
sFlow Agent IPv6 address.
Configures the interface of the sFlow Agent.
Interface of IPv4 address.
Interface of IPv6 address.
Global configuration mode
This command is used to configure the Agent IP address field in the output sFlow datagram. The
datagram not configured with this filed cannot be output. The sFlow Agent address shall be a host
address. When a non-host address (for example, a multicast or broadcast address) is configured as the
sFlow Agent address, a message indicating configuration failure is displayed. It is recommended that
the IP address of the sFlow Agent device be configured as the sFlow Agent address.
The following example configures 192.168.2.1 as the sFlow Agent address.
Ruijie(config)# sflow agent address 192.168.2.1
Use the show sflow command to display the sFlow configuration.
Prompt an error message when the address is invalid.