What about copying the configuration file over instead, and processing that?
Frank
From: Rancid-discuss [mailto:rancid-discuss-***@shrubbery.net] On Behalf Of nachofw
Sent: Tuesday, March 29, 2016 8:24 AM
To: heasley <***@shrubbery.net>
Cc: rancid-***@shrubbery.net
Subject: Re: [rancid] High cpu on large configs
It is very inconvinient for my scenario, high cpu causes alerts on the monitoring systems creating false positive alerts. Also on other platforms causes packet loss por example cisco 3k series with large configs
Enviado desde mi smartphone Samsung Galaxy.
-------- Mensaje original --------
De: heasley <***@shrubbery.net <mailto:***@shrubbery.net> >
Fecha: 29/03/2016 9:46 AM (GMT-03:00)
Para: nachofw <***@adinet.com.uy <mailto:***@adinet.com.uy> >
Cc: rancid-***@shrubbery.net <mailto:rancid-***@shrubbery.net>
Asunto: Re: High cpu on large configs
Thanks for the input.I ended up taking advantage of the fact that asa doesn't support 'terminal length'and 'terminal width'. And changed the file lee mentioned:-> /usr/share/perl5/rancid/ios.pm # the pager can not be disabled per-session on the PIX if (/^(<-+ More -+>)/) { my($len) = length($1); s/^$1s{$len}//;+ select(undef, undef, undef, 0.15); }
I cant use the 'terminal pager 0' because that displays all the config in one shot and causes the cpu to spike to 97%, i needed for rancid to use the ---more--- feature when displaying the config.Again thanks to all--------
Why is it an issue if the cpu jumps for 97%? So what. It is temporary and
the scheduler should prioritize processes appropriately.