Configuration Example for setting the sFlow sampling rate for a LAG

You can set the sFlow sampling rate for a LAG using the sflow sample command within the LAG configuration as shown in the following.

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