01-12-2024 06:13 AM
We configured sflow on our nexus switch and applyed it on one of the interface but the information it sends to our monitoring system prtg is not correct. I mean it is the same information that we get from our edge router. Please help on this
01-12-2024 08:14 AM
what nexus model and what nexus os running ?
can you post sample configuration here and let us know what is not working as expected ? what you expecting to work ?
you need to bear in mind nexus and routers are not same - so there will some information not going to match all.
refer below document for reference :
01-12-2024 11:04 PM
Dear Balaji,
Thanks for the response here is the information.
cisco Nexus9000 C9372PX
sflow sampling-rate : 4096
sflow max-sampled-size : 128
sflow counter-poll-interval : 20
sflow max-datagram-size : 1400
sflow collector-ip : 10.1.39.24 , vrf : default
sflow collector-port : 7000
sflow agent-ip : 10.3.1.8
sflow data-source interface Ethernet1/27
The architecture is like this
You see I want to get the sflow information on the link which is green but the information that I get is the same as the one which I get from the red one which is the edge router.
01-13-2024 01:42 AM
Hello,
do you have another sFlow configured for the router ? Can you post that part of the configuration as well ?
01-14-2024 10:40 PM
This is the conf for the edge router
!
multilink bundle-name authenticated
!
flow record hhh-Flow-Record-in
description record to monitor network traffic
match ipv4 source address
match ipv4 destination address
match ipv4 protocol
match interface input
match transport source-port
match transport destination-port
match ipv4 tos
collect interface output
collect counter packets long
collect counter bytes long
!
!
flow record hhh-Flow-Record-out
match ipv4 source address
match ipv4 destination address
match ipv4 protocol
match transport source-port
match transport destination-port
match ipv4 tos
match interface output
collect interface input
collect counter packets long
collect counter bytes long
!
!
flow exporter hhh-Flow-Export
destination 10.1.19.71
source Port-channel1.4
transport udp 9997
template data timeout 60
option interface-table
option sampler-table
option application-table
option c3pl-class-table
option c3pl-policy-table
option application-attributes
!
!
flow monitor hhh-Flow-Monitor-in
exporter boa-Flow-Export
cache timeout inactive 20
cache timeout active 180
record boa-Flow-Record-in
!
!
flow monitor hhh-Flow-Monitor-out
exporter boa-Flow-Export
cache timeout inactive 20
cache timeout active 180
record boa-Flow-Record-out
!
sampler PRTG-SAMPLER
mode random 1 out-of 32
!
!
interface Port-channel1.4
description Conn-To-Internet-WebSprix
encapsulation dot1Q 4
ip flow monitor hhh-Flow-Monitor-in input
ip flow monitor hhh-Flow-Monitor-out output
ip address 4.4.4.4 255.255.255.0
no ip redirects
no ip unreachables
no ip proxy-arp
ip access-group Block-Bogon-IP's in
!
01-13-2024 09:36 AM
what is the nexus os version running ?
which box is nexus 9K switch ?
what is the distribution switch ?
just want to check the VRF :
vrf management – You must use this option if the sFlow data collector is on the network connected to the management port. vrf default – You must use this option if the sFlow data collector is on the network connected to the front-panel ports.
why you want to use sflow only - is there any way you can use NetFlow for your use case ?
01-14-2024 10:43 PM
the distribution switch is the nexus 9k switch.
the os version is 7.0(3)I6(1)
the data collector is found at the default vrf
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide