Vict0rC has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: NetDB - Problem with perl module NET:MAC:Vendors
by Corion (Patriarch) on Oct 12, 2015 at 16:52 UTC | |
by Vict0rC (Initiate) on Oct 12, 2015 at 19:08 UTC | |
by Corion (Patriarch) on Oct 12, 2015 at 19:17 UTC | |
by Vict0rC (Initiate) on Oct 12, 2015 at 19:58 UTC | |
by Vict0rC (Initiate) on Oct 14, 2015 at 19:50 UTC |