Configuring sFlow Version 5

You can configure sFlow version 5 features if your device supports sFlow version 5.

When broadcast and multicast packets are sampled, they are usually forwarded to more than one port. However, the output port field in an sFlow datagram supports the display of one egress interface ID only. Therefore, the sFlow version 5 agent always sets the output port ID to 0x80000000 for broadcast and multicast packets that are sampled.

  1. Enter global configuration mode.
    device# configure terminal
  2. Specify the sFlow version.
    device(config)# sflow version 5
  3. Specify the sFlow agent IP address (IPv4 or IPv6).
    device(config)# sflow agent-ip 10.10.10.1
    device(config)# sflow agent-ip FE80::240:D0FF:FE48:4672
  4. Specify the maximum flow sample size.
    device(config)# sflow max-packet-size 1024
    If a packet is larger than the specified maximum size, only the data of the packet up to the specified maximum number of bytes is exported.
  5. Export CPU and memory usage information to the sFlow collector using the sflow export system-info and specify the poll interval.
    device(config)# sflow export system-info 30
    Polling interval value ranges from 5 through 1800 seconds. The default value is 300 seconds.
  6. Export CPU-directed data (management traffic) to the sFlow collector using the sflow export cpu-traffic and specify the sampling rate.
    device(config)# sflow export cpu-traffic 2048

    The default sampling rate depends on the RUCKUS ICX device being configured. Refer to step 5 in Configuring sFlow for the default sampling rate for each kind of RUCKUS ICX device.

The following example shows how to configure sFlow version 5, specifying an IPv4 address as the sFlow agent IP address. The sFlow parameters are configured.

device# configure terminal
device(config)# sflow version 5
device(config)# sflow agent-ip 10.10.10.1
device(config)# sflow max-packet-size 1024
device(config)# sflow export system-info 30
device(config)# sflow export cpu-traffic 2048