Re: Route count
Grant Taylor <[email protected]> Wed, 10 Feb 2021 09:46:45 -0700
| Newsgroups | gmane.linux.network.routing |
|---|---|
| Organization | TNet Consulting |
| Message-ID | <[email protected]> |
On 2/10/21 1:11 AM, Anton Danilov wrote: > Hello. Hi Anton, > Instead of fetching all content of a route table, you can parse the > /proc/net/fib_triestat file. It contents the number of prefixes for > every routing table. Perfect! That's exactly what I was wanting. Now I just need to put together a simple script to parse /proc/net/fib_triestat. I suspect awk, or maybe even sed, will do quite nicely. -- Grant. . . . unix || die
smime.p7s
(application/pkcs7-signature, 3.9 KB) - not displayed