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
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature