Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Traffic collection does not work on ACX7100 22.4R2.11-EVO #15

Closed
Jimmy-Cl opened this issue Apr 5, 2024 · 9 comments
Closed

Traffic collection does not work on ACX7100 22.4R2.11-EVO #15

Jimmy-Cl opened this issue Apr 5, 2024 · 9 comments
Assignees

Comments

@Jimmy-Cl
Copy link

Jimmy-Cl commented Apr 5, 2024

We have a fleet of ACX7100 (48L and 32C) that currently use 22.4R2.11-EVO (Current JTAC recommend image) and traffic collection is not working. Using the path browser it looks like they use a different path which prepends some sensors with an if_. See the below outputs from one of the ACX7100s on 22.4R2.11-EVO and our Lab ACX7100 on 23.2R2.21-EVO.

ACX7100 on 22.4R2.11-EVO -

image

ACX7100 on 23.2R2.21-EVO -

image

I created a fork and tried adding the following lines to acx_traffic.conf but had no luck, I think it could be something to do with the older firmware also using if_name=* for these and not just name=* but I'm not sure.

[[processors.rename.replace]]
field="counters/if_in_octets"
dest="in_octets"

[[processors.rename.replace]]
field="counters/if_out_octets"
dest="out_octets"

[[processors.rename.replace]]
field="counters/if_in_pkts"
dest="in_pkts"

[[processors.rename.replace]]
field="counters/if_out_pkts"
dest="out_pkts"

Let me know if you might have come across anything like this before or have any ideas as we are keen to start streaming telemetry out of our ACXs. Also please reach out if you would like us to do any tests as we are happy to help out. :)

@door7302
Copy link
Owner

door7302 commented Apr 7, 2024

Hello.

Thank you for this feedback and the issue. Let me check in my lab with your current version. I get back to you soon.

david

@Jimmy-Cl
Copy link
Author

Jimmy-Cl commented Apr 7, 2024

Hi David,

Thanks for getting back to me.

I think I found the issue and it was related to the interfaces using if_name=* instead of just using name=*.
I fixed it by adding the following lines to my acx_traffic.conf

[[processors.rename.replace]]
tag="/interfaces/interface/if_name"
dest="if_name"

[[processors.rename.replace]]
tag="/interfaces/interface/@if_name"
dest="if_name"

[[processors.rename.replace]]
field="counters/if_in_octets"
dest="in_octets"

[[processors.rename.replace]]
field="counters/if_out_octets"
dest="out_octets"

[[processors.rename.replace]]
field="counters/if_in_pkts"
dest="in_pkts"

[[processors.rename.replace]]
field="counters/if_out_pkts"
dest="out_pkts"

I'll put it into a pull request tomorrow so you can look at the changes and test the new config on your lab ACX.

James

@door7302
Copy link
Owner

door7302 commented Apr 8, 2024

cool thank you. I will update the profile by including a patch for this version. In the meantime I will try to find out starting from which version we rename name to if_name.

David

@door7302
Copy link
Owner

door7302 commented Apr 8, 2024

I'm suprised in my lab with this ACX:

Model: ACX7100-48L
Junos: 22.4R2.11-EVO
Yocto: 3.0.2
Linux Kernel: 5.2.60-yocto-standard-g5039935
JUNOS-EVO OS 64-bit [junos-evo-install-acx-f-x86-64-22.4R2.11-EVO]

I didn't see the same behavior.

image

@door7302
Copy link
Owner

door7302 commented Apr 8, 2024

Could please share the output of these commands:

show version
show agent sensor-capability resource /interfaces/interface

thks

@door7302 door7302 self-assigned this Apr 8, 2024
@Jimmy-Cl
Copy link
Author

Jimmy-Cl commented Apr 8, 2024

A basic show version

claphamj@acx7100-ldshe> show version
Hostname: acx7100-ldshe
Model: ACX7100-48L
Junos: 22.4R2.11-EVO
Yocto: 3.0.2
Linux Kernel: 5.2.60-yocto-standard-g5039935
JUNOS-EVO OS 64-bit [junos-evo-install-acx-f-x86-64-22.4R2.11-EVO]

Attached is the output from show version detail and show agent sensor-capability resource /interfaces/interface

ACX Output.txt

I've tried again on the openjts browser and it still shows as if_ which is odd. I have 6 ACXs on this firmware that all report the same but the show agent command looks correct without the if_ which is really odd.

image

@door7302
Copy link
Owner

door7302 commented Apr 9, 2024

thank you for the output... It's weird. Let me ask some guys internally and come back to you soon.

@door7302
Copy link
Owner

door7302 commented Apr 11, 2024

Ok. This was a limitation in 22.4 that was fixed later to align QFX/ACX Interface counters with the OpenConfig models. I will fix the profile in OpenJTS 1.0.1 which should be published tomorrow. I'm going to close your PR as the patched version will include the fix with other minor fixes. I keep the issue open til you've made some tests.

@door7302
Copy link
Owner

I published the v1.0.1. JTSO has also been updated. Please refer to the "update stack" part in the README. Let me know if it works better. Thks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants