All of lore.kernel.org
 help / color / mirror / Atom feed
* Route count
@ 2021-02-08 17:10 Grant Taylor
  2021-02-10  8:11 ` Anton Danilov
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Grant Taylor @ 2021-02-08 17:10 UTC (permalink / raw)
  To: lartc

[-- Attachment #1: Type: text/plain, Size: 525 bytes --]

Hi,

Does anyone know a more efficient way to get a count of the number of 
routes than to do something like the following?

    # ip route show table $TABLE | wc -l

I'm doing something where I'd like to instrument the number of 
(unreachable / null) routes once a minute and I'd like to avoid 
unnecessary load on the system.

It seems to me like there should be a counter somewhere that I can just 
read instead of needing to enumerate every single route in the table.



-- 
Grant. . . .
unix || die


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4013 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-02-10 19:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-08 17:10 Route count Grant Taylor
2021-02-10  8:11 ` Anton Danilov
2021-02-10 16:46 ` Grant Taylor
2021-02-10 16:53 ` Grant Taylor
2021-02-10 19:11 ` Jay Vosburgh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.