summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJan Moskyto Matejka <mq@ucw.cz>2017-03-30 13:52:01 +0200
committerJan Moskyto Matejka <mq@ucw.cz>2017-04-12 16:04:22 +0200
commit2faf519cf9d34f90d59081ee5f8d6976c62f4f6e (patch)
tree7f246432dbb55377e0f9d11a8e73dbf6f6795818 /doc
parentbff21441dd9b8cd526680e9977f8eceb9912ca6f (diff)
Client: multitable version of show route
Diffstat (limited to 'doc')
-rw-r--r--doc/bird.sgml20
1 files changed, 15 insertions, 5 deletions
diff --git a/doc/bird.sgml b/doc/bird.sgml
index e2e8964a..1777b8f3 100644
--- a/doc/bird.sgml
+++ b/doc/bird.sgml
@@ -924,11 +924,13 @@ This argument can be omitted if there exists only a single instance.
Show the list of symbols defined in the configuration (names of
protocols, routing tables etc.).
- <tag><label id="cli-show-route">show route [[for] <m/prefix/|<m/IP/] [table <m/t/] [filter <m/f/|where <m/c/] [(export|preexport|noexport) <m/p/] [protocol <m/p/] [<m/options/]</tag>
- Show contents of a routing table (by default of the main one or the
- table attached to a respective protocol), that is routes, their metrics
+ <tag><label id="cli-show-route">show route [[for] <m/prefix/|<m/IP/] [table (<m/t/ | all)] [filter <m/f/|where <m/c/] [(export|preexport|noexport) <m/p/] [protocol <m/p/] [(stats|count) [by table]] [<m/options/]</tag>
+ Show contents of specified routing tables, that is routes, their metrics
and (in case the <cf/all/ switch is given) all their attributes.
+ <p>More tables can be specified by repeating the <cf>table <m/t/></cf> clause.
+ To cycle over all tables, specify <cf>table all</cf>.
+
<p>You can specify a <m/prefix/ if you want to print routes for a
specific network. If you use <cf>for <m/prefix or IP/</cf>, you'll get
the entry which will be used for forwarding of packets to the given
@@ -946,18 +948,26 @@ This argument can be omitted if there exists only a single instance.
With <cf/noexport/, routes rejected by the export filter are printed
instead. Note that routes not exported to the protocol for other reasons
(e.g. secondary routes or routes imported from that protocol) are not
- printed even with <cf/noexport/.
+ printed even with <cf/noexport/. These switches magically cycle over
+ all tables connected to the protocol.
<p>You can also select just routes added by a specific protocol.
- <cf>protocol <m/p/</cf>.
+ <cf>protocol <m/p/</cf>. This switch also magically cycles over
+ all tables connected to the protocol.
<p>If BIRD is configured to keep filtered routes (see <cf/import keep
filtered/ option), you can show them instead of routes by using
<cf/filtered/ switch.
+ <p>If no table is specified in any way (<cf/table/, <cf/export/, <cf/preexport/, <cf/noexport/, <cf/protocol/),
+ the default tables are listed: <cf/master4/, <cf/master6/
+ and first declared table of any other net type.
+
<p>The <cf/stats/ switch requests showing of route statistics (the
number of networks, number of routes before and after filtering). If
you use <cf/count/ instead, only the statistics will be printed.
+ If you use <cf/stats by table/ or <cf/count by table/, the statistics
+ will be printed also per-table.
<tag><label id="cli-show-roa">show roa [<m/prefix/ | in <m/prefix/ | for <m/prefix/] [as <m/num/] [table <m/t/]</tag>
Show contents of a ROA table (by default of the first one). You can