Mailing List Archive

PAR Not Changing Process Counts
Hello,

I have PAR_COUNT set to 100 (and uncommented, and “export”ed) in ~rancid/etc/rancid.conf. However, I notice that there’s never more than 5 devices being archived at any given time. My system load is low, and this server is dedicated exclusively to rancid, so it’s unclear to me why I wouldn’t be able to do more at once, or how to troubleshoot?

I’m on rancid 3.4.1.

weylin
Re: PAR Not Changing Process Counts [ In reply to ]
I worked with Heasley (very) sporadically over the past few years on this. Short version: control-rancid has around line 122:


if [ -z "$ENVFILE" ] ; then

ENVFILE="${prefix}/etc/rancid.conf"

fi

if [ -f "$ENVFILE" ] ; then

. $ENVFILE

fi


On my setup, ENVFILE didn’t exist, so the '-z' flag caught and tried to set it. only problem? ${prefix} also doesn’t exist, so it was trying to find /etc/rancid.conf which yet again also doesn’t exist.

This was all supposed to have been properly set with autoconf during installation. Near as we can tell, something about my installation made that not stick. As this is an old problem, an old version of code, and with my fix there are no other identified problems, we didn’t pursue it further. I manually added prefix=<rancid home directory> just after the copyright notice. This is a solution unique to my setup, but my system now works.





[signature_1593189312]

Weylin Piegorsch | Manager, Network Engineering
Boston University Information Services & Technology
weylin@bu.edu<mailto:weylin@bu.edu> | 617.353.8128 | bu.edu/tech<http://www.bu.edu/tech>
Listen. Learn. Lead.




From: Piegorsch, Weylin William <weylin@bu.edu>
Sent: Thursday, April 18, 2019 7:15 AM
To: rancid-discuss@shrubbery.net
Subject: PAR Not Changing Process Counts

Hello,

I have PAR_COUNT set to 100 (and uncommented, and “export”ed) in ~rancid/etc/rancid.conf. However, I notice that there’s never more than 5 devices being archived at any given time. My system load is low, and this server is dedicated exclusively to rancid, so it’s unclear to me why I wouldn’t be able to do more at once, or how to troubleshoot?

I’m on rancid 3.4.1.

weylin
Re: PAR Not Changing Process Counts [ In reply to ]
Thu, Jul 13, 2023 at 03:42:29AM +0000, Piegorsch, Weylin William:
> I worked with Heasley (very) sporadically over the past few years on this. Short version: control-rancid has around line 122:
>
>
> if [ -z "$ENVFILE" ] ; then
>
> ENVFILE="${prefix}/etc/rancid.conf"
>
> fi
>
> if [ -f "$ENVFILE" ] ; then
>
> . $ENVFILE
>
> fi
>
>
> On my setup, ENVFILE didn’t exist, so the '-z' flag caught and tried to set it. only problem? ${prefix} also doesn’t exist, so it was trying to find /etc/rancid.conf which yet again also doesn’t exist.

That line should not have been ${prefix}, it should have been
@sysconfdir@ in the original source and that would have been replaced by
the makefile or make process. And it has been that way since at least
2014, which is long before rancid 3.4.1.

Are you possibly using an installation from a linux package system?.

> This was all supposed to have been properly set with autoconf during installation. Near as we can tell, something about my installation made that not stick. As this is an old problem, an old version of code, and with my fix there are no other identified problems, we didn’t pursue it further. I manually added prefix=<rancid home directory> just after the copyright notice. This is a solution unique to my setup, but my system now works.

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@www.shrubbery.net
https://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: PAR Not Changing Process Counts [ In reply to ]
> Are you possibly using an installation from a linux package system?.

My installation engineer said he started with a clean install of CentOS 6.10... well, as clean as our organization provides us, not sure what customizations they made. Anyway, on top of that install, he downloaded the tarball of what was then-current version, and ran through the README to install it.





 
Weylin Piegorsch |  Manager, Network Engineering
Boston University Information Services & Technology
weylin@bu.edu | 617.353.8128 | bu.edu/tech
Listen. Learn. Lead.




-----Original Message-----
From: heasley <heas@shrubbery.net>
Sent: Friday, July 14, 2023 11:18 AM
To: Piegorsch, Weylin William <weylin@bu.edu>
Cc: rancid-discuss@shrubbery.net
Subject: Re: [rancid] PAR Not Changing Process Counts

Thu, Jul 13, 2023 at 03:42:29AM +0000, Piegorsch, Weylin William:
> I worked with Heasley (very) sporadically over the past few years on this. Short version: control-rancid has around line 122:
>
>
> if [ -z "$ENVFILE" ] ; then
>
> ENVFILE="${prefix}/etc/rancid.conf"
>
> fi
>
> if [ -f "$ENVFILE" ] ; then
>
> . $ENVFILE
>
> fi
>
>
> On my setup, ENVFILE didn’t exist, so the '-z' flag caught and tried to set it. only problem? ${prefix} also doesn’t exist, so it was trying to find /etc/rancid.conf which yet again also doesn’t exist.

That line should not have been ${prefix}, it should have been @sysconfdir@ in the original source and that would have been replaced by the makefile or make process. And it has been that way since at least 2014, which is long before rancid 3.4.1.

Are you possibly using an installation from a linux package system?.

> This was all supposed to have been properly set with autoconf during installation. Near as we can tell, something about my installation made that not stick. As this is an old problem, an old version of code, and with my fix there are no other identified problems, we didn’t pursue it further. I manually added prefix=<rancid home directory> just after the copyright notice. This is a solution unique to my setup, but my system now works.
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@www.shrubbery.net
https://www.shrubbery.net/mailman/listinfo/rancid-discuss