I see the filter function and count function shows as unknown functions in NQE query. Please help with appropriate functions for these two.
I need to count the total number of interfaces in a devices and interfaces operational status DOWN in state.
I see the filter function and count function shows as unknown functions in NQE query. Please help with appropriate functions for these two.
I need to count the total number of interfaces in a devices and interfaces operational status DOWN in state.
For Count.
If you put all of the interfaces into a list you can use the “length()”.
Or, you can get the results and download them as .xls and do the “count” in the spreadsheet.
https://fwd.app/docs/nqe/std-lib/length/
For filter.
That is the “where” is the filter you can use within the body of the query. If you look at the examples in the Forward Library, or in the docs, you will see “where” used to filter out results.
Or you have filters at the top of the columns in the UI once you have the result.
Again, you can also export the results as a spreadsheet if that is more comfortable to you.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.