HP Mellanox SX1018 Mellanox MLNX-OS® User Manualfor SX1018HP Ethernet - Page 88

Verifying sFlow

Page 88 highlights

Step 6. (Optional) Set the sampling rate of the mechanism. Run: switch (config sflow) # sampling-rate 16000 Rev 1.6.9 This means that one every 16000 packet gets collected for sampling. Step 7. (Optional) Set the maximum size of the data path sample. Run: switch (config sflow) # max-sample-size 156 Step 8. (Optional) Set the frequency in which counters are polled. Run: switch (config sflow) # counter-poll-interval 19 Step 9. (Optional) Set the maximum size of the datagrams sent to the central collector. Run: switch (config sflow) # max-datagram-size 1500 Step 10. Enable the sFlow agent on the desired interfaces. Run: switch (config interface ethernet 1/1)# sflow enable switch (config interface port-channel 1)# sflow enable 5.11.6 Verifying sFlow  To verify the attributes of the sFlow agent: switch (config)# show sflow sflow protocol enabled sflow enabled sampling-rate 16000 max-sampled-size 156 counter-poll-interval 19 max-datagram-size 1500 collector-ip 10.10.10.10 collector-port 6343 agent-ip 20.20.20.20 Interfaces Ethernet: eth1/1 Port-channel: po1 Statistics: Total Packets: 2000 Number of flow samples: 1200 Number of samples discarded: 0 Number of statistic samples: 800 Number of datagrams: 300 Mellanox Technologies 88 Mellanox Technologies Confidential

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88

Rev 1.6.9
Mellanox Technologies
88
Mellanox Technologies Confidential
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:
5.11.6
Verifying sFlow
To verify the attributes of the sFlow agent:
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
switch (config)# show sflow
sflow protocol enabled
sflow enabled
sampling-rate 16000
max-sampled-size 156
counter-poll-interval 19
max-datagram-size 1500
collector-ip 10.10.10.10
collector-port 6343
agent-ip 20.20.20.20
Interfaces
Ethernet: eth1/1
Port-channel: po1
Statistics:
Total Packets: 2000
Number of flow samples: 1200
Number of samples discarded: 0
Number of statistic samples: 800
Number of datagrams: 300