Page 1 of 1

Little bug is /routing bgp advertisements print ... detail ?

Posted: Fri Oct 10, 2014 9:56 am
by OleksandrL
Hi, dear MikroTik developers and users!
I have little bug in routeros.

Let me describe this problem:
[admin@mkt] > /routing bgp advertisements print where prefix =1.66.64.0/19
Print values of item properties in different formats.

<peer> --
append --
as-value --
brief -- Displays brief description
count-only --
detail -- Displays detailed information
file -- Print the content of the submenu into specific file
follow --
follow-only --
interval -- Displays information and refreshes it in selected time interval
terse -- Show details in compact and machine friendly format
value-list -- Show properties one per line
where --
without-paging -- Displays information in one piece


[admin@mkt] > /routing bgp advertisements print where prefix =1.66.64.0/19 detail
PEER     PREFIX               NEXTHOP          AS-PATH                 ORIGIN     LOCAL-PREF
[admin@mkt] > /routing bgp advertisements print where prefix =1.66.64.0/19
PEER     PREFIX               NEXTHOP          AS-PATH                 ORIGIN     LOCAL-PREF
bgp-p... 1.66.64.0/19         x.x.x.x    x,6453,2914,9605     igp               100
[admin@mkt] >
So, "detail" keyword does not works.
RouterOS version is 6.19.
Thank you.

Re: Little bug is /routing bgp advertisements print ... deta

Posted: Fri Oct 10, 2014 11:52 am
by mrz
Order is critical here, use
print detail where ...

Re: Little bug is /routing bgp advertisements print ... deta

Posted: Fri Oct 10, 2014 2:27 pm
by OleksandrL
Order is critical here, use
print detail where ...
Thank you for your answer, but:
[admin@mkt] > /routing bgp advertisements print detail where prefix =1.66.64.0/19
input does not match any value of peer
[admin@mkt] >

Re: Little bug is /routing bgp advertisements print ... deta

Posted: Fri Oct 10, 2014 2:50 pm
by janisk
prefix =1.66.64.0/19
most probably, just fix this (loose the unnecessary space)

Re: Little bug is /routing bgp advertisements print ... deta

Posted: Fri Oct 10, 2014 3:08 pm
by OleksandrL
prefix =1.66.64.0/19
most probably, just fix this (loose the unnecessary space)
Thank you for your answer!
But this command works good without "detail".
I try several different commands without success:
[admin@mkt] > /routing bgp advertisements print detail where prefix = 1.66.64.0/19
syntax error (line 1 column 56)
[admin@mkt] > /routing bgp advertisements print detail where prefix="1.66.64.0/19"
input does not match any value of peer
[admin@mkt] > /routing bgp advertisements print detail where prefix=1.66.64.0/19
input does not match any value of peer
[admin@mkt] >

Re: Little bug is /routing bgp advertisements print ... deta

Posted: Fri Oct 10, 2014 3:19 pm
by mrz
Press tabs and you will get tips for right syntax

For BGP advertisements you need to also specify peer name

/routing bgp advertisements print peer1 detail where ...

in other menus it will bee

/ip route print detail where ....

Re: Little bug is /routing bgp advertisements print ... deta

Posted: Fri Oct 10, 2014 3:42 pm
by OleksandrL
Press tabs and you will get tips for right syntax

For BGP advertisements you need to also specify peer name

/routing bgp advertisements print peer1 detail where ...
.
yes, this works.
OK