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

--ifDescr-filter filters too far #105

Open
Wintermute2k6 opened this issue Apr 25, 2023 · 1 comment
Open

--ifDescr-filter filters too far #105

Wintermute2k6 opened this issue Apr 25, 2023 · 1 comment

Comments

@Wintermute2k6
Copy link

As an Example let's say you have an output for TenGigabitEthernet1/1 , TenGigabitEthernet1/2 and TenGigabitEthernet1/11
thola check interface-metrics 127.0.0.1 --snmp-community public --ifDescr-filter 'TenGigabitEthernet1/1' --ifDescr-filter 'TenGigabitEthernet1/10'

And you only want to show the Result of TenGigabitEthernet1/11 and TenGigabitEthernet1/2 then TenGigabitEthernet1/11 will be omitted by the regex of --ifDescr-filter 'TenGigabitEthernet1/1' and will not be in the final Result ..

If you have questions you can get in contact with me for further details and explanations.

@RincewindsHat
Copy link

So I tried to introduce another filter with the expression negated ( !Match instead of Match ), but failed, because I am unable to understand how that code works. Can someone provide some explanation as to how everything works and how I would add that?

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