This is what I’m attempting to do:
/ip arp pr | grep aaa.bbb.ccc
how do I do this in mikrotik syntax?
This is what I’m attempting to do:
/ip arp pr | grep aaa.bbb.ccc
how do I do this in mikrotik syntax?
Nevermind, found my answer here: http://forum.mikrotik.com//viewtopic.php?t=8900&highlight=grep
I found it easier to do a “pr file=abc” and ftp the file to a linux box and run cat abc | grep expression
I too second a similar implementation of grep!
Me too. MT has to keep in mind that not everybody is a programmer. In stressful support situation, an easier and a more efficient powerful CLI matters more.
Asked for it some time ago
http://forum.mikrotik.com/t/feature-request-filter-for-log-viewer/84979/4
I’ve found the way below, I think could help anyone.
e.g:
ip arp print where address=192.168.10.1
Or
ip arp print where mac-address=00:00:00:00:00:01
Just a quick aside, but there is no need to cat the file and pipe it to grep on any Unix/Linux variant I’ve ever seen. You can simply use: grep expression abc
So: grep 00:aa:15:aa:aa:aa myfilename will work without problems and save you some typing.
Of course it is required in order to earn the “useless use of cat award”.
See http://porkmail.org/era/unix/award.html
I was looking for the answer but only find this thread. After looking at the scripting wiki, I found this out.
/ip addr pr where address~“aaa.bbb.ccc”