Allied Telesis AT-9000/28POE Switch User Manual


  Open as PDF
of 1480
 
Chapter 65: sFlow Agent
1004
Configuration Example
Here is an example of how to configure the sFlow agent. The IP address
of the sFlow collector is 152.232.56.11. The ports from which performance
data will be collected will be ports 3, 11, 12, and 21 to 23. Ports 3, 11,and
12 will have a polling rate of 120 seconds and sampling rate of 1 packet in
an average of 10.000 packets. Ports 21 to 23 will have a polling rate of
1800 seconds and sampling rate of 1 packet in every 50.000 packets.
This first series of commands adds the IP address of the sFlow collector to
the agent on the switch. You must add the IP address of the collector
before configuring the polling and sampling rates of the ports.
The next series of commands configures the sFlow settings of the ports.
awplus> enable
Enter the Privileged Executive
mode from the User Executive
mode.
awplus# configure terminal
Enter the Global Configuration
mode.
awplus(config)# sflow collector ip 152.232.56.11
port 6342
Use the SFLOW COLLECTOR IP
command to add the IP address of
the sFlow collector to the sFlow
agent on the switch.
awplus(config)# show sflow Use the SHOW SFLOW command
to confirm the IP address.
awplus(config)# interface port1.0.3,port1.0.11,
port1.0.12
From the Global Configuration
mode, use the INTERFACE PORT
command to enter the Interface
mode for ports 3, 11, and 12.
awplus(config-if)# sflow sampling-rate 10000
Use the SFLOW SAMPLING-
RATE command to set the
sampling rate of the ports to 1
packet for every 10000 packets.
awplus(config-if)# sflow polling-interval 120
Use the SFLOW POLLING-
INTERVAL command to set the
polling rate of the statistics
counters of the ports to 120
seconds.
awplus(config)# interface port1.0.21-port1.0.23
Use the INTERFACE PORT
command to enter the Interface
mode for ports 21 to 23.