beautypg.com

Sflow agent (address) – Allied Telesis AlliedWare Plus Operating System Version 5.4.4C (x310-26FT,x310-26FP,x310-50FT,x310-50FP) User Manual

Page 2098

background image

sFlow Commands

Software Reference for x310 Series Switches

81.4

AlliedWare Plus

TM

Operating System - Version 5.4.4C

C613-50046-01 REV A

sflow agent (address)

This command sets the sFlow® agent IP address on the switch. This address is inserted into
every sFlow datagram sent from the sFlow agent switch to the sFlow collector device. The
sFlow collector can then uses this address to uniquely identify and to access the switch,
such as for SNMP. We therefore recommend that you change this address as little as
possible.

Although the agent address can be set to any valid IPv4 or IPv6 address; we recommended

that you set the sFlow® agent IP address to be the local address

1

that is configured on the

switch. This ensures that the sFlow collector can maintain connectivity to the switch
irrespective of the addition or deletion of VLAN interfaces (each of which will have its own
specific IP address). Note that sFlow is rendered inactive whenever the agent address is
not set.

The no variant of this command applies its default setting to remove a configured address.

Syntax

sflow agent {ip <ip-address>|ipv6 <ipv6-address>}

no sflow agent {ip|ipv6}

Default

The sFlow agent address is unset.

Mode

Global Configuration

Examples

To set the sFlow agent (IPv4) address to 192.0.2.23, use the command:

To remove the sFlow agent (IPv4) address, use the command:

To set the sFlow agent (IPv6) address to 2001:0db8::1, use the command:

1.

For information on local addresses and how to set them up, see the

interface (to

configure) command on page 12.3

.

Parameter

Description

<

ip-address

>

The IPv4 address of the switch that is acting as the sFlow agent.

pv6-address>

The IPv6 address of the switch that is acting as the sFlow agent.
The IPv6 address uses the format X:X::X:X.

awplus#

configure terminal

awplus(config)#

sflow agent ip 192.0.2.23

awplus#

configure terminal

awplus(config)#

no sflow agent ip

awplus#

configure terminal

awplus(config)#

sflow agent ipv6 2001:0db8::1