Mellanox MLNX-OS User Manual for SX1018HP Ethernet Managed Blade Switch
Rev 2.10
Mellanox Technologies
541
Mellanox Technologies Confidential
5.12.4 Sampled Interfaces
sFlow must be enabled on physical or LAG interfaces that require sampling. When adding a port
to a LAG, sFlow must be disabled on the port. If a port with enabled sFlow is configured to be
added to a LAG, the configuration is rejected. Removing a port from a LAG disables sFlow on
the port regardless of the LAG’s sFlow status.
5.12.5 Configuring sFlow
To configure the sFlow agent:
Step 1. Unlock the sFlow commands. Run:
Step 2. Enable sFlow on the system. Run:
Step 3. Enter sFlow configuration mode. Run:
Step 4. Set the central collector’s IP. Run:
Step 5. Set the agent-ip used in the sFlow header. Run:
Step 6. (Optional) Set the sampling rate of the mechanism. Run:
Step 7. (Optional) Set the maximum size of the data path sample. Run:
Step 8. (Optional) Set the frequency in which counters are polled. Run:
Step 9. (Optional) Set the maximum size of the datagrams sent to the central collector. Run:
Step 10. Enable the sFlow agent on the desired interfaces. Run:
switch (config) # protocol sflow
switch (config) # sflow enable
switch (config) # sflow
switch (config sflow) #
switch (config sflow) # collector-ip 10.10.10.10
switch (config sflow) # agent-ip 20.20.20.20
switch (config sflow) # sampling-rate 16000
This means that one every 16000 packet gets collected for sampling.
switch (config sflow) # max-sample-size 156
switch (config sflow) # counter-poll-interval 19
switch (config sflow) # max-datagram-size 1500
switch (config interface ethernet 1/1)# sflow enable
switch (config interface port-channel 1)# sflow enable










