Configuring HP 2910AL Series Switches
This document provides guidance on configuring HP 2910AL switches to support sFlow export for monitoring traffic in NetFlow Analyzer.
Prerequisites
- Ensure that UDP port 2055 is reachable on Motadata's collector.
Steps to Configuring HP 2910AL Series Switches To enable sFlow on the switch, enter the configuration mode and apply the relevant commands.
configure terminal
sFlow 1 destination MISSING_VALUE 9996 # Replace MISSING_VALUE with the appropriate collector IP
sFlow 1 sampling all 1024
exit
Ensure the collector is set to use UDP 2055 for Motadata ObserveOps (formerly known as AIOps).
# Original command line for destination
# sFlow 1 destination 172.29.161.26 9996
# Adapted command line for Motadata
sFlow 1 destination MISSING_VALUE 2055 # Replace MISSING_VALUE with the appropriate collector IP
Ensure the IP address and port used are correct for your setup.
Configure the Flow Exporter To configure the flow exporter, ensure you input the correct destination IP and UDP port.
configure terminal
flow exporter EXPORTER_NAME
destination MISSING_VALUE 2055 # Replace MISSING_VALUE with the actual collector IP
exit
Configure the Flow Record You will need to define a flow record that specifies which fields to export.
configure terminal
flow record FLOW_RECORD_NAME
match ipv4 source address
match ipv4 destination address
match transport source-port
match transport destination-port
exit
Configure the Flow Monitor Next, link the flow exporter and flow record to create a flow monitor.
configure terminal
flow monitor MONITOR_NAME
record FLOW_RECORD_NAME
exporter EXPORTER_NAME
exit
Associate Flow Monitor to Interfaces Finally, associate the flow monitor with specific interfaces to start collecting flow data.
configure terminal
interface INTERFACE_NAME
flow monitor MONITOR_NAME input
exit
Verification Check the configuration using the following commands:
show ip flow exporter
show ip flow monitor
show ip flow interface
Verify the Flow Explorer in Motadata ObserveOps to ensure data is being collected successfully.
Adjust your configurations based on existing network designs and policies.