[rancid] Error when trying to back up a JunOS device, SRX100

Lauri Haveri lauri.haveri at alsocloudsolutions.fi
Sat Apr 21 10:48:42 UTC 2018


I just wanted to tell that little over one week ago I was able to fix this error by using an account that had admin-rights. The ones I used previously were root-account and read-only account.

Now the same problem is facing me with a “HP procurve 2510”. I have assigned an account with manager-rights and configured it to .cloginrc file. I am able to login to the HP Switch by using command “/var/lib/rancid/bin/clogin DEVICENAME”

Do you have any idea if there are any special things to be considered in HP Switches?

Best regards,
From: Emille Blanc <emille at abccommunications.com>
Sent: torstai 22. maaliskuuta 2018 2.13
To: Heasley <heas at shrubbery.net>; Lauri Haveri <lauri.haveri at alsocloudsolutions.fi>
Cc: Rancid-discuss at shrubbery.net
Subject: RE: [rancid] Error when trying to back up a JunOS device, SRX100

I've had no problems with our lonely SRX100b, in any versions of RANCID 3.x, up to and including 3.7.
The SRX is running 12.1X46-D55.3

From: Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Heasley
Sent: March-21-18 2:15 PM
To: Lauri Haveri
Cc: Rancid-discuss at shrubbery.net
Subject: Re: [rancid] Error when trying to back up a JunOS device, SRX100

Am 21.03.2018 um 20:43 schrieb Lauri Haveri <lauri.haveri at alsocloudsolutions.fi<mailto:lauri.haveri at alsocloudsolutions.fi>>:
Hello all,

I am setting up a test enviroment on Ubuntu 16.04 before Rancid will go to a production enviroment.

Everytime I run Rancid I get the following error:

“Use of uninitialized value $_ in pattern match (m//) at /usr/share/perl5/rancid/junos.pm line 135

Use of uninitialized value $_ in pattern match (m//) at /usr/share/perl5/rancid/junos.pm line 140

00003-test-fw01: missed cmd(s): show configuration, show version invoke-on other-routing-engine, show system core-dumps, show version detail

00003-test-fw01: End of run not foud

# Error: TIMEOUT reached”

When I go the the part that the log (/usr/share/perl5/rancid/junos.pm) tells me, the part is following:

“$rval = {$commands{$cmd}}{$INPUT, $OUTPUT, $cmd};


if {$rval == -1} {                                // this is the line 135

               $clean_run = 0;

               last TOP;


if (/>\s*quit/){                                  // this is line 140




The command I am using to run Rancid is:
“sudo su -c /var/lib/rancid/bin/rancid-run -s /bin/bash -l rancid”

Could you please help me?

You havent told us what version of rancid nor from where you retrieved it. If its not 3.7, please start there. If it already is, but it is a ubuntu package, please try an install from source.

Kind regards,
Rancid-discuss mailing list
Rancid-discuss at shrubbery.net<mailto:Rancid-discuss at shrubbery.net>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20180421/1e51ad94/attachment.html>

More information about the Rancid-discuss mailing list