How to enable sFlow on your HP Procurve by command line

To support HP devices, you must configure the device using the following configuration template:

  1. Login to your HP switch via Telnet. Enter configure terminal by typing 'conf t'.
    Note: This information is stored in flash memory or a tftp server. Because of this, the settings are lost if the switch is reset.

  2. setmib sFlowRcvrAddress.1 -o 0AC70199 (Where 0AC70199 is the IP address of the computer in hexidecimal where NMS is installed.)
    setmib sFlowRcvrPort.1 -i 6343 (You may also send sFlow on 2055 or 9995)
    setmib sFlowRcvrOwner.1 -D net sFlowRcvrTimeout.1 -i 100000000 ('Net' is just a label. Substitute any name you wish to use as a label.)

  3. This step is optional:
    Note: In the following statements you may substitute 'sFlowMib' = 1.3.6.1.4.1.14706.1 For example setmib sFlowMib.1.5.1.3.11.1.3.6.1.2.1.2.2.1.1.1.1 -i 1

    • setmib 1.3.6.1.4.1.14706.1.1.5.1.4.11.1.3.6.1.2.1.2.2.1.1.1.1 -i 37
      Note: This line sets the sample rate. In this case we have set it to 37. Default Sampling rate is 512 for HP devices.)

    • setmib 1.3.6.1.4.1.14706.1.1.5.1.3.11.1.3.6.1.2.1.2.2.1.1.1.1 -i 1
      Note: Enable sFlow. In this command we have enabled sFlow for port 1 which appears in bold. Repeat this command substituting the second to last number for the port you want to enable sFlow on.


  4. This step is also optional:
    setmib 1.3.6.1.4.1.14706.1.1.6.1.4.11.1.3.6.1.2.1.2.2.1.1.2.1 -i 8
    Note: Line 6 sets the polling interval for the port. In this case we have set the polling rate to 8 on port 2. The default interval is 60. Repeat this command substituting the second to last number for the port you want to enable sFlow on.
Parents Reply Children
No Data