On Thu, Oct 06, 2011 at 04:18:53PM +0300, Camelia Nastase wrote: > Date: Thu, 6 Oct 2011 16:18:53 +0300 > From: Camelia Nastase <[email protected]> > To: [email protected], Romanian Linux Users Group <[email protected]> > User-Agent: Mutt/1.4.2.3i > Subject: Re: [rlug] numar prefixe > > On Thu, Oct 06, 2011 at 04:17:49PM +0300, Dan Candea wrote: > > Date: Thu, 06 Oct 2011 16:17:49 +0300 > > From: Dan Candea <[email protected]> > > Organization: Quah > > User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) > > Gecko/20110922 Lightning/1.0b2 Thunderbird/3.1.15 > > To: [email protected] > > Subject: Re: [rlug] numar prefixe > > > > On 10/06/2011 04:09 PM, Camelia Nastase wrote: > > >> salut > > >> exista vreo modalitate de a afla numarul de prefixe/vecin mai eleganta > > >> decat a le numara (ex: ip route | grep -c ethX sau similar)? > > >> cand ai 3 e ok, dar cand ai 370k da cu secunde > > >> ma intereseaza ce rezulta in urma selectiei, nu ce se primeste de la > > >> vecini ... adica nu: vtysh -e "sh ip bgp sum" | awk '/ip_vecin/ {print > > >> $10;}' > > >> 10x > > >> > > > /sbin/ip ro | /bin/grep zebra | /bin/grep<ip_next_hop> | sort -u | wc -l > > > > > ip ro sh via /nexthop/ | wc -l > > > > mai putine procese ;) > > > > io nu stiu frate linux, sue me. >
asta pe langa faptul ca ce zici tu ii da si rutele statice/direct conectate, omul le vrea pe alea din bgp. deci un grep mic dupa zebra tot ii trebe. p.s. nanananananananananaaaa -- *Camelia Nastase* Network Administrator www.mediasat.ro <www.mediasat.ro> Office: +4 031 82 40 610 PGP Key: 0xFBF8530B, http://pgpkeys.mit.edu/ Key fingerprint = BABF 3B12 3D11 911C 85BB 925E 09C1 6B4A FBF8 530B _______________________________________________ RLUG mailing list [email protected] http://lists.lug.ro/mailman/listinfo/rlug
