Welcome, Guest. Please login or register.

Author Topic: NeDi 1.0.6 Public Beta  (Read 69001 times)

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2605
    • View Profile
    • NeDi
NeDi 1.0.6 Public Beta
« on: December 05, 2010, 09:47:05 PM »
Here it is! After way too much delay, but please keep in mind it's beta thus not thoroughly tested! Expect to see many warnings, but that's just because I turned them on in Perl. The config file should explain the most important things and perldoc is supported as well...

The current version can be found at http://www.nedi.ch/files:download (number is the day of year)

Post feedback in this thread during beta phase...

Good luck  ;)
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

harry

  • Full Member
  • ***
  • Posts: 128
    • View Profile
Re: NeDi 1.0.6 Public Beta
« Reply #1 on: December 06, 2010, 12:59:48 AM »
I tried to install on allready ndios and tried to initaliese the database with the commad

perl nedi.pl -i

Can't locate RRDs.pm in @INC (@INC contains: /usr/libdata/perl5/i386-openbsd/5.10.0 /usr/local/libdata/perl5/i386-openbsd/5.10.0 /usr/libdata/perl5 /usr/local/libdata/perl5 /usr/local/libdata/perl5/site_perl/i386-openbsd /usr/libdata/perl5/site_perl/i386-openbsd /usr/local/libdata/perl5/site_perl /usr/libdata/perl5/site_perl .) at ./inc/libmisc.pm line 17.
BEGIN failed--compilation aborted at ./inc/libmisc.pm line 17.
Compilation failed in require at nedi.pl line 59.


how to isntall RRDs.pm on openbsd..? I have googled it but could not found any solution for RRDs.pm. rrdtoll is already there but I thin this is a perl module.

can you please guide with a command to install RRDs.pm...?

I will test and  provide feedback if any.

Tahnsk and Regards,
Harry.

harry

  • Full Member
  • ***
  • Posts: 128
    • View Profile
Re: NeDi 1.0.6 Public Beta
« Reply #2 on: December 06, 2010, 04:35:38 AM »
HI Remo,
I could resolve the previous issue but now new error
Can't locate IO/Pty.pm in @INC (@INC contains: /usr/libdata/perl5/i386-openbsd/5.10.0 /usr/local/libdata/perl5/i386-openbsd/5.10.0 /usr/libdata/perl5 /usr/local/libdata/perl5 /usr/local/libdata/perl5/site_perl/i386-openbsd /usr/libdata/perl5/site_perl/i386-openbsd /usr/local/libdata/perl5/site_perl /usr/libdata/perl5/site_perl .) at ./inc/libcli-iopty.pm line 684.
BEGIN failed--compilation aborted at ./inc/libcli-iopty.pm line 684.
Compilation failed in require at nedi.pl line 65.

I tried to install in perl as "Install Expect". but it fails.

I will update the post if I get it resolved.

Regards,
Harry.

kevinava

  • Newbie
  • *
  • Posts: 30
  • - Network Systems Engineer
    • View Profile
    • SNMP Location Generator
Re: NeDi 1.0.6 Public Beta
« Reply #3 on: December 06, 2010, 11:14:07 AM »
Hi, Harry
To remove error Can't locate IO/Pty.pm you must install the missing Perl module.

This is easiest solved this way:
perl -MCPAN -e shell

Follow instructions on screen, when done and you have cpan[1]> promt.
type install IO::Pty
quit when done.
It should now work.
Best regards,

Kevin A. Vatn
- Network Systems Engineer
SNMP Location Generator - http://snmplg.kvatn.net/

kevinava

  • Newbie
  • *
  • Posts: 30
  • - Network Systems Engineer
    • View Profile
    • SNMP Location Generator
Re: NeDi 1.0.6 Public Beta
« Reply #4 on: December 06, 2010, 12:56:06 PM »
Hi, Rickli

I'm getting the following error when running Nedi 1.0.6 BETA with ./nedi.pl -por


test]# ./nedi.pl -por

DP-OUI-Route-Discovery (1.0.6 beta) with 19 seeds at Mon Dec  6 12:51:18 2010
-------------------------------------------------------------------------------
Device                          Status                          Todo/Done-Time
===============================================================================
X.X.X.X    trondos-wlc0 Il i3       18/1-1s
X.X.X.X    trondos-wlc0 Il i3       17/2-0s
X.X.X.X    trondos-wlc0 Il i3       16/3-0s
X.X.X.X    NOTDTR-H7G9- Stv9 i16   Jv p2/0   Dr Can't call method "waitfor" on an undefined value at ./inc/libcli-iopty.pm line 255.

Last box is an SSH only Cisco L3 Switch , eg. Cisco 3560 in routing mode.

NOTE! Debug dosen't seem to work.
« Last Edit: December 06, 2010, 01:01:48 PM by kevinava »
Best regards,

Kevin A. Vatn
- Network Systems Engineer
SNMP Location Generator - http://snmplg.kvatn.net/

vtur

  • Guest
Re: NeDi 1.0.6 Public Beta
« Reply #5 on: December 06, 2010, 03:41:55 PM »
Hi, Rickli
I'm have problem.
Are not displayed Firstseen Lastseen in GUI.

vtur

  • Guest
Re: NeDi 1.0.6 Public Beta
« Reply #6 on: December 06, 2010, 03:58:55 PM »
Hi, Rickli
I'm have second problem :

" VAS_CSMS_MNG v6 i27      p0/1   problem connecting to "10.1.17.110", port 23: Connection refused at ./inc/libcli-iopty.pm line 243
"
Then Discovery stops.
How to make that after the given error Discovery for the others device proceeded?

ps: Excuse for my bad English.

cmesser

  • Jr. Member
  • **
  • Posts: 78
    • View Profile
Re: NeDi 1.0.6 Public Beta
« Reply #7 on: December 06, 2010, 04:53:58 PM »
Hi Remo,

seems to work so far. But I get hundreds of such lines during the initial discovery.
Code: [Select]
10.16.129.55    b02bhl020    SuSmStIhUse of uninitialized value $sp in concatenation (.) or string at ./inc/libsnmp.pm line 887.
Use of uninitialized value $sp in string eq at ./inc/libsnmp.pm line 888.
Use of uninitialized value $io in concatenation (.) or string at ./inc/libsnmp.pm line 890.
Use of uninitialized value $oo in concatenation (.) or string at ./inc/libsnmp.pm line 891.
Use of uninitialized value $sp in concatenation (.) or string at ./inc/libsnmp.pm line 887.
Use of uninitialized value $sp in string eq at ./inc/libsnmp.pm line 888.
Use of uninitialized value $io in concatenation (.) or string at ./inc/libsnmp.pm line 890.
Use of uninitialized value $oo in concatenation (.) or string at ./inc/libsnmp.pm line 891.
Use of uninitialized value $sp in concatenation (.) or string at ./inc/libsnmp.pm line 887.
Use of uninitialized value $sp in string eq at ./inc/libsnmp.pm line 888.
Use of uninitialized value $io in concatenation (.) or string at ./inc/libsnmp.pm line 890.
Use of uninitialized value $oo in concatenation (.) or string at ./inc/libsnmp.pm line 891.
Use of uninitialized value $sp in concatenation (.) or string at ./inc/libsnmp.pm line 887.
Use of uninitialized value $sp in string eq at ./inc/libsnmp.pm line 888.
Use of uninitialized value $io in concatenation (.) or string at ./inc/libsnmp.pm line 890.
Use of uninitialized value $oo in concatenation (.) or string at ./inc/libsnmp.pm line 891.

Something to worry about??

Regards

cmesser

  • Jr. Member
  • **
  • Posts: 78
    • View Profile
Re: NeDi 1.0.6 Public Beta
« Reply #8 on: December 06, 2010, 05:08:03 PM »
Hi Remo,

another small thing I just noticed and what worked in 1oh5.
The GUI remembered what columns you selected within one session.
I liked this feature very much and will miss it it if it hasn't made it into
the new version   :( (It would be even better if the selection is stored in a cookie
that survives the end of a session :) )

Update:  I get it back. You just have to check the "Columns Optimize" option in the profile.
             Sorry.  :(
« Last Edit: December 09, 2010, 05:39:58 PM by cmesser »

vtur

  • Guest
Re: NeDi 1.0.6 Public Beta
« Reply #9 on: December 07, 2010, 09:36:01 AM »
Hi, Rickli
I'm have problem.
Are not displayed Firstseen Lastseen in GUI.

It is solved with add "dateformat      j.M y G:i"  in new  nedi.conf than  ./nedi.pl -i
ps: How to migrate database from 1.0.5 to 1.0.6 ?

cmesser

  • Jr. Member
  • **
  • Posts: 78
    • View Profile
Re: NeDi 1.0.6 Public Beta
« Reply #10 on: December 07, 2010, 11:49:20 AM »
And here another problem:
Code: [Select]
10.12.0.10      def-gw-1     v6 i29     Jv p2/4   Dr Can't call method "waitfor" on an undefined value at /opt/nedi/inc/libcli-iopty.pm line 255.
And the discovery stopped.  :(

raider82

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
Re: NeDi 1.0.6 Public Beta
« Reply #11 on: December 07, 2010, 12:41:45 PM »
Hi all,

first of all thanks to Remo for the new beta. It solves a lot of issues with SSH and Cisco switches. In general I like NeDi very much.

Maybe an issue in the new beta: I cannot connect to an HP switch via SSH, although it is possible with the credentials in the conf file (only one line) via ssh <ip> -l <user> within bash.
Message: Can't call method "waitfor" on an undefined value at ./inc/libcli-iopty.pm line 255.
Has anyone had the same problem and fixed it?

My 1st guess: when I logon, the switch shows some information and: Press any key to continue
I guess, this is what the script isn't doing.

Thanks.
« Last Edit: December 07, 2010, 12:53:43 PM by raider82 »

rufer

  • Guest
Re: NeDi 1.0.6 Public Beta
« Reply #12 on: December 07, 2010, 01:11:56 PM »
When I tried it first, the problem was SSH asking for confirmation for the host key each time.
What I did to avoid that:
create user under which nedi runs
login as that user
vi ~/.ssh/config
Code: [Select]
StrictHostKeyChecking no
You should do that only for the user nedi runs (NOT root).

Also check perl dependencies!

Greetings
Rufer

kevinava

  • Newbie
  • *
  • Posts: 30
  • - Network Systems Engineer
    • View Profile
    • SNMP Location Generator
Re: NeDi 1.0.6 Public Beta
« Reply #13 on: December 07, 2010, 02:46:06 PM »
Hi, thanks Rufer
This did the trick for me, discovery is going like a dream now.

Cheers!

When I tried it first, the problem was SSH asking for confirmation for the host key each time.
What I did to avoid that:
create user under which nedi runs
login as that user
vi ~/.ssh/config
Code: [Select]
StrictHostKeyChecking no
You should do that only for the user nedi runs (NOT root).

Also check perl dependencies!

Greetings
Rufer
Best regards,

Kevin A. Vatn
- Network Systems Engineer
SNMP Location Generator - http://snmplg.kvatn.net/

kevinava

  • Newbie
  • *
  • Posts: 30
  • - Network Systems Engineer
    • View Profile
    • SNMP Location Generator
Re: NeDi 1.0.6 Public Beta
« Reply #14 on: December 07, 2010, 03:14:45 PM »
Hi, new 'bugs' found.

LINE 358 regexp/pattern maching fails.
And we still have line 255 errors.

Code: [Select]
X.X.X.X    NOTDST-SS-F0 v6 i28      p1/0   Use of uninitialized value in pattern match (m//) at ./inc/libcli-iopty.pm line 358.
Fp100Fx100f29  64/15-15s
X.X:X.X   NOTDST-VG7A- SuSmSiv5IxIx i28  p1/0 Mt  Can't call method "waitfor" on an undefined value at ./inc/libcli-iopty.pm line 255.

Temp fix for line 358 error in nedi/inc/libcli-iopty.pm, needs to be verified by Remo himself!
But this did the trick for me.
Change line 385 from
Code: [Select]
if ($match =~ /$cmd{$os}{enpr}/){ to
Code: [Select]
if ($match =~ /$cmd{$os}{enpr}/i){
Still getting can't call waitfor at line 255.
As the first type of 255 error was solved by Rufer by adding StrictHostKeyChecking no to ~/.ssh/config

The next 255 error has it source in when connecting to a SNMP only device, it will fail and result in the
Code: [Select]
Can't call method "waitfor" on an undefined value at ./inc/libcli-iopty.pm line 255.
X.X:X.X   NOTDST-VG7A- SuSmSiv5IxIx i28 is an SNMP only enabled device, eg. no Telnet and SSH access. Only SNMP and WEB. This is a Cisco Catalyst Express 500 switch.
Best regards,

Kevin A. Vatn
- Network Systems Engineer
SNMP Location Generator - http://snmplg.kvatn.net/