Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Try ti import downloaded file oui.txt

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (MAC Track)
Author Message
caweiss



Joined: 04 Jul 2007
Posts: 4

PostPosted: Wed Jul 04, 2007 12:45 am    Post subject: Try ti import downloaded file oui.txt Reply with quote

Hi,
I try to import the downloaded file from ...standard.ieee oui.txt.
but it doesnt work. In the mactrack dir I try following
"php5 mactrack_import_ouidb.php -f=oui.txt" the oui.txt file is in the same dir

The output from this :
PHP Warning: file(http://standards.ieee.org/regauth/oui/oui.txt): failed to open stream: Connection timed out in /usr/share/cacti/plugins/mactrack/lib/mactrack_functions.php on line 1568
OUI Database Download from IEEE Complete
PHP Warning: Invalid argument supplied for foreach() in /usr/share/cacti/plugins/mactrack/lib/mactrack_functions.php on line 1592

There were '0' Entries Added/Updated in the database.
There were '0' Records Removed from the database.

CAn you help ?
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9736
Location: MI, USA

PostPosted: Wed Jul 04, 2007 3:32 am    Post subject: Reply with quote

Resync your SVN copy of MacTrack and then run the following:

php -q mactrack_import_ouidb.php --help

You will first have to manually download the file. Your proxy is blocking the wget request.

TheWitness
Back to top
caweiss



Joined: 04 Jul 2007
Posts: 4

PostPosted: Wed Jul 04, 2007 9:27 am    Post subject: Reply with quote

I synchronized my SVN copy

made php -q mactrack_import_ouidb.php --help
made php mactrack_import_ouidb.php -f=oui.txt
and always the same Error

PHP Warning: file(http://standards.ieee.org/regauth/oui/oui.txt): failed to open stream: Connection timed out in /usr/share/cacti/plugins/mactrack/lib/mactrack_functions.php on line 1568
OUI Database Download from IEEE Complete
PHP Warning: Invalid argument supplied for foreach() in /usr/share/cacti/plugins/mactrack/lib/mactrack_functions.php on line 1592

There were '0' Entries Added/Updated in the database.
There were '0' Records Removed from the database.
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9736
Location: MI, USA

PostPosted: Wed Jul 04, 2007 5:08 pm    Post subject: Reply with quote

I'll take a look at it.

TheWitness
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9736
Location: MI, USA

PostPosted: Thu Jul 05, 2007 9:13 pm    Post subject: Reply with quote

Resync SVN and try again. It was buggered up.

TheWitness
Back to top
caweiss



Joined: 04 Jul 2007
Posts: 4

PostPosted: Tue Jul 10, 2007 1:00 am    Post subject: Reply with quote

Hello, TheWitness
thanks for your work but now their appears another Error

php5 mactrack_import_ouidb.php -f=oui.txt

PHP Fatal error:
Allowed memory size of 8388608 bytes exhausted (tried to allocate 16bytes) in /usr/share/cacti/plugins/mactrack/lib/mactrack_functions.php on line 1576

What is that now ?
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9736
Location: MI, USA

PostPosted: Tue Jul 10, 2007 10:29 pm    Post subject: Reply with quote

Edit your /etc/php.ini file and increase PHP memory to 256MBytes. 8MBytes is too small for even Cacti. You are lucking anything runs...

TheWitness
Back to top
caweiss



Joined: 04 Jul 2007
Posts: 4

PostPosted: Wed Jul 11, 2007 2:53 am    Post subject: Reply with quote

Hello
now it works
Thanks for quick help

CAWeiss
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (MAC Track) All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group