sflow

Description                                                    Enables the ACOS device to collect information about Ethernet data interfaces and send the data to an external sFlow collector (v5).

Syntax                                                                  [no] sflow
{
agent address {ipaddr | ipv6addr} |
collector {ip ipaddr | ipv6 ipv6addr} portnum |
polling type |
sampling {ethernet portnum [to portnum] | ve ve-num [to ve-num]} |
setting sub-options |
source-address {ip ipaddr | ipv6 ipv6addr}
}

Parameter

Description

agent address 
{
ipaddr | ipv6addr}

Configure an sFlow agent. The ipaddr value can be any valid IPv4 or IPv6 address. By default, sFlow datagrams use the management IP of the ACOS device as the source address, but you can specify a different IP address, if desired. The informa­tion will appear in the Layer 4 information section of the sFlow datagram, and it is not used to make routing decisions.

collector 
{
ip ipaddr | ipv6 ipv6addr}
portnum

Configure up to four sFlow collectors. The IP address is that of the sFlow collector device. Specify the port number, with a range from 1-65535.

The default port number is 6343.

polling type

Enables sFlow export of DDoS Mitigation statistics for the source IP address(es) matched by this rule. You can enable polling for the following types of data:

  cpu-usage – Polls for CPU utilization statistics.

  ethernet – Polls for Ethernet data interface statistics.

  http-counter - Polls for HTTP statistics.

  ve - Polls for statistics for Virtual Ethernet (VE) interfaces.

All sFlow polling (collection) is disabled by default

sampling
{ethernet portnum 
[
to portnum] |
ve ve-num [to ve-num]}

Enable sFlow sampling on a specified interface.

There is no default.

setting sub-options

Configure global sFlow settings:

  counter-polling-interval seconds – Configure the sFlow counter polling interval. The interval seconds option specifies the frequency with which statistics for an interface are periodically sampled and sent to the sFlow collector. The range can be configured to a value from 1-200 seconds. The default polling interval is 20 seconds.

  max-header bytes – Maximum number of bytes to sample from any given packet, 14-512 bytes. The default is 128 bytes.

  packet-sampling-rate num – Configure sFlow default packet sampling rate. The num option specifies the value of N, where N is the value of the denominator in the ratio at which a single packet will be sampled from a denominator ranging from 10-1000000. The default is 1000, meaning one packet out of every 1000 will be sampled.

  source-ip-use-mgmt – Enable use of the management interface’s IP as the source address for outbound sFlow packets.

source-address
{ip ipaddr | ipv6 ipv6addr}

Source IP address for sFlow packets sent from ACOS to sFlow collectors.

NOTE: By default, the IP address of the egress interface is used. You can specify a data interface’s IP address or the management interface’s IP address as the source address for sFlow packets sent to the collector. However, the current release does not support routing of sFlow packets out the management interface. The sFlow collector must be able to reach the ACOS device through a data interface, even if you use the ACOS device’s management IP address as the source address of sFlow packets sent to the collector.

Default                                                                Described above, where applicable.

Mode                                                                   Configuration mode

Usage                                                                  Enable either or both of the following types of data collection, for individual Ethernet data ports:

     Packet flow sampling – ACOS randomly selects incoming packets on the monitored interfaces, and extracts their headers. Each packet flow sample contains the first 128 bytes of the packet, starting from the MAC header. Note that setting a smaller value for the num variable increases the sampling frequency, and larger numbers decrease the sampling frequency. This is due to the fact that the variable is in the denominator.

     Counter sampling – ACOS periodically retrieves the send and receive statistics for the monitored interfaces. These are the statistics listed in the Received and Transmitted counter fields in show interface output.

Notes

     Sampling of a packet includes information about the incoming interface but not the outgoing interface.

     None of the following are supported:

     Host resource sampling

     Application behavior sampling

     Duplication of traffic to multiple sFlow collectors

     Configuration of sFlow Agent behavior using SNMP

If the ACOS device is a member of an aVCS virtual chassis, use the device-context command to specify the device in the chassis to which to apply this command.

Example                                                            The following commands specify the sFlow collector, and enables use of the management interface’s IP as the source IP for the data samples sent to the sFlow collector:

ACOS(config)#sflow collector ip 192.168.100.3 5

ACOS(config)#sflow setting source-ip-use-mgmt

Table of Contents

Index

Glossary

-Search-

Back