Hello,

I am using linux app NetDB, with some perl modules. One of them is capable of translating mac addresses using other perl module NET:MAC:Vendors.

And here comes my problem...

After I installed NET:MAC:Vendors module I am able to use it directly from command line (/Vendord.pm <MAC>) and translate MACs right way using online query to database as it is described here http://search.cpan.org/~bdfoy/Net-MAC-Vendor-1.25/lib/Net/MAC/Vendor.pm

BUT!

When I want to use it as it is described in NetDB documentation, it returns error and MACs are not translated. Error is simple - it cant load data from local txt db using load_cache( file://path/to/file.txt) function.

ERROR - Net::Mac::Vendor cache source [file://opt/netdb/data/oui.txt] does not exist at /usr/lib/perl5/NetDB.pm line 2468

Local txt file is 10000% correct, with all needed permissions. Checked it hundred times.

So I tried to create simple pl script, just to find, why it is not working and If I can reproduce the error. What a surprise, simple pl script, just three lines of code to load cache from txt file - and error is the same :(

#!/usr/bin/perl use strict; use Net::MAC::Vendor; Net::MAC::Vendor::load_cache("file://opt/netdb/netmacvendor/oui.txt");

ERROR - Net::Mac::Vendor cache source [file://opt/netdb/netmacvendor/oui.txt does not exist at ./net-mac-vendor-test.pl line 4.

I am newbie to perl so I dont know what can be wrong... Thanks anyone who can help me with it...

VictorC

P.S. Here is more about my problem in NetDB forum https://sourceforge.net/p/netdbtracking/discussion/939989/thread/15661611


In reply to NetDB - Problem with perl module NET:MAC:Vendors by Vict0rC

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.