How to print main routing table contents from console?

Hi!

I have several routing tables and routes with no mark.
When I type:

/ip route print where routing-mark=tab1

then all is ok and content of a tab1 is printed. But when I type:

/ip route print where routing-mark=main

then result is empty. And when I simply type

/ip route print

then console prints me all routes in all tables (Wiki says “routing-mark not set by default which is the same as main”).

Is there some special command to print only main routing table (like in Winbox)?

by default routing-mark=main is not set. So to print all routes that are not in other routing tables you can use this command
/ip route print where !routing-mark

Thank you very much

not only ‘routing-mark=main’ is not work at /ip route print where … .

3x Flags (dynamic, connect, static) are not work with =no.
The ‘disabled=no’ and ‘active=no’ works correctly.

Workaround is to use ‘!flag=yes’ or ‘!flag’ what mean the same like ‘flag=no’.

Value “no” is not the same as unset value. If route is not dynamic, then value for dynamic parameter is not set at all, so if you compare “no” to nothing then of course it will fail.

I fully undestand your answer. But still when I press or <?> key for any new information I can see the options who should be working.
cli345345.png
At many place of CLI I found a misleading syntax. I cannot go to wiki and add my own suggestion/corrections because is close for MT employer only. You know, I hope to have a proper CLI help in index.
I can only write to support and on this forum.