Welcome, Guest. Please login or register.

Author Topic: 1.1.155 OUI discovery  (Read 2284 times)

redpineapple

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
1.1.155 OUI discovery
« on: July 07, 2014, 02:30:30 PM »
OUI discovery fails with

Use of uninitialized value $snmp::ip in pattern match (m//) at ./inc/libsnmp.pm line 2431.
OUI :IP not usable


Looks like $ip on :2431 isn't set?

                if($main::opt{'o'}){                                                            # Only add if OUI discovery set
                        my $oui = &misc::GetOui($mc);
                        print $mc; $oui;
                        print $nip;
                        if($oui =~ /$misc::ouidev/i or $mc =~ /$misc::ouidev/){
                                if(grep /\Q$mc\E/,(@misc::doneid,@misc::failid,@misc::todo) ){  # Don't queue if done or queued.
                                        &misc::Prt("OUI :Device done already\n");
                                        $dn++;
                                }elsif($mc =~ /$misc::border/ or $oui =~ /$misc::border/){      # ...or matching the border...
                                        &misc::Prt("OUI :$mc or $oui matches border /$misc::border/\n");
                                        $bd++;
                                }elsif($ip !~ /$misc::netfilter/){                             # ...or not usable
                                        &misc::Prt("OUI :IP not usable\n");
                                        $fl++;
                                }else{
                                        &misc::Prt("OUI :MAC or '$oui' matches ouidev\n");
                                        $ad += misc::CheckTodo($mc,&misc::MapIp($ip,'ip') );
                                }
                        }
                }

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2552
    • View Profile
    • NeDi
Re: 1.1.155 OUI discovery
« Reply #1 on: July 07, 2014, 05:38:40 PM »
Correct, it's fixed in my current version:

            }elsif($misc::arp{$mcvl} !~ /$misc::netfilter/){      # ...or not usable


tx for the feedback!
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

redpineapple

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: 1.1.155 OUI discovery
« Reply #2 on: July 07, 2014, 06:32:50 PM »
kewl beanz!!!!

I have updates also which I'll send later.  Like .def for 6513, and more radios.

Also I added mtr and TracePath as tools in the Nodes-Toolbox + vnstat, mytop in Systems.

redpineapple

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: 1.1.155 OUI discovery
« Reply #3 on: July 08, 2014, 07:21:45 AM »
Code: [Select]
NMP:Connect 10.8.54.250 public v2 Tout:2s MaxMS:1472
ARPS:000c4240914e 10.8.54.1 on bridge1 vl
OUI :MAC or 'Routerboard.com' matches ouidev
Use of uninitialized value $ip in exists at ./inc/libmisc.pm line 607.
Use of uninitialized value $tgt in pattern match (m//) at ./inc/libmisc.pm line 881.
ERR :Resolving SEED 000c4240914e!
ARPS:1 IP and 0 IPv6 entries found

Progressed further but now an issue as above^

redpineapple

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: 1.1.155 OUI discovery
« Reply #4 on: July 08, 2014, 01:47:51 PM »
If fixed it by doing this:

Code: [Select]
}elsif($misc::arp{$mcvl} !~ /$misc::netfilter/){      # ...or not usable
                                        &misc::Prt("OUI :IP not usable\n");
                                        $fl++;
                                }else{
                                        &misc::Prt("OUI :MAC or '$oui' matches ouidev\n");
                                        $ip = $misc::arp{$mcvl};
                                        $ad += misc::CheckTodo($mc,&misc::MapIp($ip,'ip') );
                                }