Configure sFlow Export on HP Devices
- Last Updated: April 2, 2026
- 2 minute read
- WhatsUp Gold
- Version 2026
Before you can view meaningful sFlow reports, you must configure sFlow-enabled devices, such as routers or switches, to communicate network activity back to the Flow Monitor listener application. There are two methods to configure sFlow to send data to Network Traffic Analysis:
- Configure the sFlow device with the device OS commands using the command line interface (CLI).- or -
- Configure the sFlow device using SNMP commands.
The following examples shows how to configure sFlow devices to send data to Network Traffic Analysis.
Configuring sFlow using the Source Device CLI
To configure a sFlow enabled device to send sFlow data to Flow Monitor using the command line interface (CLI):
The following example uses CLI configuration to enable sFlow on an HP ProCurve 3500 series switch. It should also work for 2610-PWR, 3500 yl, 5400, and 8200 series. The configuration is for Flow Monitor running on a system with an example IP address 192.168.3.1 and receiving sFlow data on UDP port 9999.
- Access the sFlow device via the command line interface (CLI). For example:
ssh198.51.100.1(sign-on with Telnet or SSH)HP Switch>enable(Enter privileged mode)HP Switch#config - Set the sFlow device IP (sFlow collector) using the following commands.
Syntax/Example | Description |
|---|---|
|
Set the sFlow destination and collector instance:
Example:
|
—Where "1" is the sFlow instance number. Unless you have more than one collectors from this switch, "1" should be a good value. —And where the example sFlow target (NTA collector) device address here is |
|
Set the sFlow sample rate for each interface:
Example:
|
—Where —Where One out of every 128 packets will be collected in this example. |
|
Set the polling interval:
Example:
|
This example shows how to poll every 30 seconds. |
|
Check for sampling and polling data:
|
An sFlow table displays. |
Configuring sFlow using SNMP
The following example uses SNMP commands to enable sFlow on an HP ProCurve 2610 series switch. We recommend configuring the sFlow device via the device OS commands from the command line interface (CLI); however, some sFlow devices do not include this capability. In this case, you can use SNMP commands to configure sFlow. This configuration example is for Flow Monitor running on a system with IP address 192.168.3.1 and receiving sFlow data on UDP port 9999.
To configure an sFlow device, using SNMP commands, to send sFlow data to Flow Monitor:
- Access the sFlow device via the console, Telnet, or SSH management interface.
- Set the sFlow device IP (sFlow collector) using the following example commands.
Command | Purpose |
|---|---|
|
|
Sets the sFlow receiving device address. In this example, the IP address (192.168.3.1) must be provided as a hexadecimal value (C0A8031F). For example: Important: The example IP address must be entered as a hexadecimal value. Use an IP to hexadecimal calculator to determine the hexadecimal value for your sFlow collector's IP address. This example IP address breaks down into a hex value as follows:192 = C0168 = A8 3 = 03 31 = 1F
|
|
|
Sets the sFlow receiving device port address. The default Flow Monitor port is 9999. For example: |
|
|
Sets the sFlow receiver owner. The -D is a TYPE-STR identifier that specifies a Display String value. This value can be any string, for example NFmonitor (referring to Flow Monitor application which will receive the sFlow data). The -i is a TYPE-STR identifier that specifies an Integer value. The 100,000,000 value is a timeout value that defines the timeout countdown starting point value (in milliseconds). For example: |
|
Note: Repeat the following settings for each interface on the sFlow device you want to monitor. The last number in the MIB OID represents the interface number.
|
|
|
|
Sets the sFlow sample rate. One out of every 128 packets will be collected in this example. For example: |
|
|
Enables sFlow on the device. 1 enables / 0 disables sFlow. For example: |
|
|
Sets the sFlow polling interval. Polls every 30 seconds in this example. For example: |
|
|
Enables sFlow polling. 1 enables / 0 disables sFlow polling. For example: |