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

2018-03-21 Thread Emille Blanc
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-boun...@shrubbery.net] On Behalf Of 
Heasley
Sent: March-21-18 2:15 PM
To: Lauri Haveri
Cc: Rancid-discuss@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 
>:
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

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

3-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?

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,
Lauri
___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss

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

2018-03-21 Thread Heasley


> Am 21.03.2018 um 20:43 schrieb Lauri Haveri 
> :
> 
> 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
> 3-test-fw01: missed cmd(s): show configuration, show version invoke-on 
> other-routing-engine, show system core-dumps, show version detail
> 3-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?

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,
> Lauri
> ___
> Rancid-discuss mailing list
> Rancid-discuss@shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss
___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss

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

2018-03-21 Thread Lauri Haveri
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

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

3-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
___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss