Setting the sFlow Sampling Rate for a LAG

Complete the following steps to set the sFlow sampling rate for a LAG.
  1. Enter the global configuration mode.
    device# configure terminal
  2. Create a LAG.
    device(config)# lag blue static id 1
  3. Add ports to the LAG.
    device(config-lag-blue)# ports ethernet 1/3/1
    
  4. Set the sFlow sampling rate.
    device(config-lag-blue)# sflow sample 512
    

The following example sets the sFlow sampling rate for a LAG.

device# configure terminal
device(config)# lag blue static id 1
device#(config-lag-blue)# ports ethernet 1/3/1
device#(config-lag-blue)# sflow sample 512

For a keep-alive LAG, you need to configure sFlow sampling at the interface level and not within the LAG configuration.

device#(config-lag-test)# interface ethernet 1/7/8
device#(config-if-e1000-1/7/8)# sflow sample 512
device#(config-if-e1000-1/7/8)#