" show ip bgp" equivalent

I want to be able to do manual route lookups in a global routing table to see what AS-PATH we’re getting.

I notice someone posted this question 3 years ago here: http://forum.mikrotik.com/t/ip-route-print-mikrotik-vs-sh-ip-route-and-bgp-cisco/25770/1 but there was no reply.

I know that I can do an “/ip route print where dst-address=”, but I want to be able to use a specific IP and see all available routes to that address.

Does RouterOS have any way of achieving this?

/ip route print where 1.1.1.1 in dst-address

Great thanks. I hadn’t realised you could construct the “where” statement that way around (all examples I had seen were “where dst-address in x.x.x.x/y”).

Is there any documentation about how to construct these “where” clauses? I know regex is permitted using ~, but can’t see where it’s documented.

after ‘where’ it’s a regular scripting command sequence.

‘in’ operator with provided example is here:
http://wiki.mikrotik.com/wiki/Manual:Scripting#Logical_Operators