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

Lauri Haveri lauri.haveri at alsocloudsolutions.fi
Wed Mar 21 20:43:24 UTC 2018


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};

delete($commands{$cmd});

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

               $clean_run = 0;

               last TOP;

}

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

$clean_run=1;

last;

}"

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?

Kind regards,
Lauri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20180321/93e3358e/attachment.html>


More information about the Rancid-discuss mailing list