sflow agent-ip
Syntax
sflow agent-ip <IP-ADDR>
no sflow agent-ip [<IP-ADDR>]
Description
Defines the IP address of the sFlow agent to use in sFlow datagrams. This address must be defined for sFlow to function. HPE recommends that the address:
- can uniquely identify the switch
- is reachable by the sFlow collector
- does not change with time
The
no
form of this command deletes the IP address of the sFlow agent. This causes sFlow to stop working and no datagrams will be sent to the sFlow collector.
Command context
config
Parameters
<IP-ADDR>
Specifies an IP address in IPv4 format (
x.x.x.x
), wherex
is a decimal number from 0 to 255, or IPv6 format (xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx
), wherex
is a hexadecimal number from 0 to F. The agent address is used to identify the switch in all sFlow datagrams sent to sFlow collectors. It is usually set to an IP address on the switch that is reachable from an sFlow collector.
Authority
Administrators
Examples
Setting the agent address to 10.10.10.100:
switch(config)# sflow agent-ip 10.0.0.100
Setting the agent address to 2001:0db8:85a3:0000:0000:8a2e:0370:7334:
switch(config)# sflow agent-ip 2001:0db8:85a3:0000:0000:8a2e:0370:7334
Removing the address configuration from the switch, which results in sFlow being disabled:
switch(config)# no sflow agent-ip