Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

HP ProCurve switches are currently designed so that sFlow is enabled remotely by an sFlow collector – the CCE.


Example HP ProCurve sFlow configuration:

The following example was published in the context of a switch that had at least 55 ports installed. For the sake of this example, the IP address was 15.29.16.93.


STEP 1: Set the destination IP (The IP of the collector station--Note that the IP Address is in hex but without the leading 0x):

setmib sFlowRcvrAddress.1 -o 0F1D105D

For reference, here is an IP to HEX converter:

http://www.kloth.net/services/iplocate.php


STEP 2: Set the traffic destination port number

Destination

...

port  6343

setmib sFlowRcvrPort.1 -i

...

6343


STEP 3: Enable Receiver

setmib sFlowRcvrOwner.1 -D Name sFlowRcvrTimeout.1 -i 100000000


STEP 4: Set flow sampling rate

Port 53, sampling rate of 37:

setmib 1.3.6.1.4.1.14706.1.1.5.1.4.11.1.3.6.1.2.1.2.2.1.1.53.1 -i 37

Port 55, rate of 20:

setmib 1.3.6.1.4.1.14706.1.1.5.1.4.11.1.3.6.1.2.1.2.2.1.1.55.1 -i 20

Port 5, rate of 20:

setmib 1.3.6.1.4.1.14706.1.1.5.1.4.11.1.3.6.1.2.1.2.2.1.1.5.1 -i 20

 (Note: Some switches require a sample rate of at least 50)


STEP 5: Set Enable to True (1), Per Port

Port 53: setmib 1.3.6.1.4.1.14706.1.1.5.1.3.11.1.3.6.1.2.1.2.2.1.1.53.1 -i 1

Port 55: setmib 1.3.6.1.4.1.14706.1.1.5.1.3.11.1.3.6.1.2.1.2.2.1.1.55.1 -i 1

Port 5: setmib 1.3.6.1.4.1.14706.1.1.5.1.3.11.1.3.6.1.2.1.2.2.1.1.5.1 -i 1


STEP 6: Set the counter polling interval, Per Port

Interval of 8 seconds,

port 53: setmib 1.3.6.1.4.1.14706.1.1.6.1.4.11.1.3.6.1.2.1.2.2.1.1.53.1 -i 8

Interval of 7 seconds, port 55: setmib 1.3.6.1.4.1.14706.1.1.6.1.4.11.1.3.6.1.2.1.2.2.1.1.55.1 -i 7

Interval of 50 seconds, port 5: setmib 1.3.6.1.4.1.14706.1.1.6.1.4.11.1.3.6.1.2.1.2.2.1.1.5.1 -i 50

 

If needed:

Disabling: To kill all sampling and to release the receiver just set timeout to 0:

setmib sFlowRcvrTimeout.1 -i 0