Re: Route count

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/10/21 9:46 AM, Grant Taylor wrote:
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.

sed -n '/Id 13:/,/^$/p' /proc/net/fib_triestat | sed -n '/Prefixes:/p' | sed 's/ Prefixes //'

That's a tab before Prefixes and seven (7) spaces afterwards.

I'd like to have something more graceful.  But it's a start.

Thank you again Anton.



--
Grant. . . .
unix || die

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux