Community discussions

MikroTik App
 
fsebera
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 63
Joined: Thu Jun 03, 2021 6:19 pm

cli search omitting known data

Mon Jun 07, 2021 3:46 pm

Thanks to Rexended Forum Gugu for providing the cli command to find specific data!! This Really helps.

EXAMPLE: ip arp print where mac-address~"^00:0C:42"
----The above cli syntax finds all MAC addresses that start with 00:0C:42

With the above command, I can search for a specific OUI vendor, one by one.
Is there a way to search for multiple known OUI vendors in one search?
Is there a way to omit specific strings of data in the same search as-well?

Thank you
Frank
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7038
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: cli search omitting known data

Mon Jun 07, 2021 4:15 pm

It is a regular expressions so you can match multiple substrings, or use negative lookaround to exclude string.

If you do not know what regexp is, you can start here:
https://medium.com/factory-mind/regex-t ... 9dc1c3f285
 
fsebera
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 63
Joined: Thu Jun 03, 2021 6:19 pm

Re: cli search omitting known data

Mon Jun 07, 2021 5:15 pm

Could you provide an example!!!!!

Who is online

Users browsing this forum: ccrsxx, Google [Bot], mkx, Qalderu, rano, rplant, sted and 76 guests