Welcome, Guest. Please login or register.

Author Topic: perl error on config backup on nedi 1.1 beta  (Read 1296 times)

ascii

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
perl error on config backup on nedi 1.1 beta
« on: September 15, 2014, 08:52:43 AM »
Hello together,

not sure if this is the right place.

i have a cron job backing up the devices

Code: [Select]
51 5 * * *      /var/nedi/nedi.pl -SafsgmijtedbpowAO -b -A 'devos ="IOS"' > /tmp/nedi-logfile-backup
also when i run it manually

Code: [Select]
/var/nedi/nedi.pl -b -A 'devos ="IOS"' >  /tmp/nedi-logfile-backup
the discovery stops with a perl error
Code: [Select]
error: must pass array or hash references to Algorithm::Diff::traverse_sequences at /usr/share/perl5/Algorithm/Diff.pm line 145.

Code: [Select]
nedi@krenoc /var/nedi $ tail /tmp/nedi-logfile-backup
10.68.53.170    kre-p06-sw-0  v81 i33   Jc j1 p0  m3   Ac a3|o0|b0|f0  f497   57/23-2s
10.68.53.89     kre-f07-sw-0  v81 i62   Jc j1 p0  m5   Ac a3|o0|b0|f0  f492   56/24-2s
10.81.223.254   LINN-HRL-SW-  v18 i234    j8   p0  m10    a88|o0|b0|f0    f110   55/25-11s
10.68.53.99     kre-f100-sw-  v81 i33   Jc j1 p0  m3   Ac a3|o0|b0|f0  f564   54/26-2s
10.68.53.251    kreF1K2-bb    v81 i251    j1   p0  m11    a88|o0|b0|f0    f1018   53/27-3s
10.68.53.51     kre-t03-sw-0  v81 i61   Jc j1 p0  m4   Ac a3|o0|b0|f0  f511   52/28-3s
10.68.53.252    kreF1K1-bb    v81 i300    j1   p0  m27    a3|o0|b0|f0    f1076   51/29-4s
10.68.53.199    kre-p14-sw-0  v81 i33   Jc j1 p0  m3   Ac a3|o0|b0|f0  f482   50/30-2s
10.68.53.125    kre-f01-sw-0  v81 i33   Jc j1 p0  m3   Ac a3|o0|b0|f0  f538   49/31-2s
10.68.53.56     kre-m04-sw-0  v81 i33   Jc j1 p0  m3   Ac a3|o0|b0|f0  f521 c734

running just the device gives

Code: [Select]
/var/nedi/nedi.pl -v -B0 -SWOAjedibatflowg -a 10.68.53.56
.......
CONF:ntp server 10.68.8.19 prefer
CONF:ntp server 10.72.16.22
CONF:ntp server 149.216.41.61
CONF:end
WAIT:
CONF:734 lines read
error: must pass array or hash references to Algorithm::Diff::traverse_sequences at /usr/share/perl5/Algorithm/Diff.pm line 145.

Code: [Select]
nedi@krenoc /var/nedi $ perl -v

This is perl 5, version 20, subversion 0 (v5.20.0) built for x86_64-linux-gnu-thread-multi
(with 35 registered patches, see perl -V for more detail)

Code: [Select]
from inside /usr/share/perl5/Algorithm/Diff.pm

 126 sub _longestCommonSubsequence
 127 {
....
 140
 141     # Check for bogus (non-ref) argument values
 142     if ( !ref($a) || !ref($b) )
 143     {
 144         my @callerInfo = caller(1);
 145         die 'error: must pass array or hash references to ' . $callerInfo[3];
 146     }
 147

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2687
    • View Profile
    • NeDi
Re: perl error on config backup on nedi 1.1 beta
« Reply #1 on: September 16, 2014, 10:55:31 AM »
I came across this one as well and believe to have fixed it in the next release...
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo