Hello
RouterOS CLI should have some kind of Cisco-like piping method for command output regexp match.
Regards,
Anton Aksola
Hello
RouterOS CLI should have some kind of Cisco-like piping method for command output regexp match.
Regards,
Anton Aksola
As I am not familiar with Cisco IOS, I can only suggest that you try the export command at the base promt or at any menu promt to get the commands that made the config for that part. You can copy and paste these…
John
IOS provides a limited matching engine, which functions similar to ‘grep’ on a posix system.
You can for instance, do this:
#show ip arp | include abcd
Which will print only those lines in the arp cache, which contain abcd. I would think, that since RouterOS uses Linux for its base, that it wouldn’t be too hard to add ‘grep’ to the command line.
By the way, ‘grep’ is much more powerfull than ‘include’, so this could be an chance to stomp cisco, in a minor but very useful way.
–Eric
If you go to the submenu and do export, you will get the config commands from that area.
Otherwise, you can export all command and do a search with you text utility - for example ‘notepad’
John
True, but it would be nice to quickly match lines from the command output. For instance, I could some times use simple terminal device and have no way to do any cut&paste.
Of course you could implement find-command futher. Now we use find only in scripts and for quick mass changes. There could be some option to quickly print any matching rule/line/whatever.
Regards,
Anton