Welcome, Guest. Please login or register.

Author Topic: Many Perl errors during discover  (Read 2104 times)

richard.lajaunie

  • Newbie
  • *
  • Posts: 26
    • View Profile
Many Perl errors during discover
« on: February 22, 2012, 05:56:33 PM »
Hello,
I have just (4 days) install nedi 1.0.7 on an Ubuntu 10.04 LTS.
When i execute a nedi.pl command many errors appears:

./nedi.pl -vpob -a 10.1.xx.yy
Started with relative path!
PTY :Not available
LWP :Loaded
OUI :19777 NIC vendor entries read
RDEV:275 devices read from nedi.devices
RADDR:6809 MAC & 564 IP addresses read.
RLNK:0 links (WHERE linktype = "STAT") read from nedi.links
Use of uninitialized value in substitution (s///) at ./inc/libdb-msq.pm line 1405.
RUSR:5 entries (groups & 8 AND (phone != "" OR email != "")) read from nedi.users
SEED:10.1.45.14 added for discovery
MAIN:1 thread, 1st from Wed Feb 22 17:24:18 2012 seems ok adding this one
UPDT:system SET value=value+1 WHERE name="threads"
...
...
Config (CLI)   ----------------------------------------------------------------
TEL :nedi:23 Tout:2s OS:SANOS EN:(.+?)#\s?$
CLI2:Matched login: , sending username
CLI3:Username nedi sent
CLI3:Matched Password:, sending password
CLI3:Password sent
CLI8:Matched enable prompt, OK
CMD :terminal length 0:
CMD :show running-config
Use of uninitialized value in regexp compilation at ./inc/libcli-iopty.pm line 815.
WAIT:
Use of uninitialized value in regexp compilation at ./inc/libcli-iopty.pm line 815.
WAIT:!Command: show running-config

One error for a line of configuration and at the end :

WAIT:no system default switchport shutdown
Use of uninitialized value in regexp compilation at ./inc/libcli-iopty.pm line 815.
WAIT:
Use of uninitialized value $misc::curcfg[0] in concatenation (.) or string at ./inc/libcli-iopty.pm line 826.
ERR :No config ()

Also in the same run :

Config (CLI)   ----------------------------------------------------------------
TEL :nedi:23 Tout:2s OS:SANOS EN:(.+?)#\s?$
CLI2:Matched login: , sending username
CLI3:Username nedi sent
CLI3:Matched Password:, sending password
CLI3:Password sent
CLI8:Matched enable prompt, OK
CMD :terminal length 0:
CMD :show running-config
Use of uninitialized value in regexp compilation at ./inc/libcli-iopty.pm line 815.
WAIT:
Use of uninitialized value in regexp compilation at ./inc/libcli-iopty.pm line 815.
...
...
Use of uninitialized value in regexp compilation at ./inc/libcli-iopty.pm line 815.
WAIT:
Use of uninitialized value $misc::curcfg[0] in concatenation (.) or string at ./inc/libcli-iopty.pm line 826.
ERR :No config ()

and finaly when i start moni.pl or syslog.pl i have this error:
Use of uninitialized value in substitution (s///) at ./inc/libdb-msq.pm line 1405.

Thank you for your help.
Richard

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2711
    • View Profile
    • NeDi
Re: Many Perl errors during discover
« Reply #1 on: February 22, 2012, 07:35:29 PM »
Have a look at the lines showing the errors. The first one mingles a users phone number. What do your users have set?

I assume you've created a .def with SANOS? Make sure strt is set (with a . like others should do). Usually printing the variables used in that line reveals which one is causing the error and lets you find a fix quickly...
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

richard.lajaunie

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: Many Perl errors during discover
« Reply #2 on: February 23, 2012, 09:55:24 AM »
Hello Remo,
thank you for your help.

Discovery work perfectly :D.