[SOLVED] Try to import downloaded file oui.txt

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

Post Reply
caweiss
Posts: 4
Joined: Wed Jul 04, 2007 12:31 am

[SOLVED] Try to import downloaded file oui.txt

Post by caweiss »

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 ?
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
caweiss
Posts: 4
Joined: Wed Jul 04, 2007 12:31 am

Post by caweiss »

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.
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I'll take a look at it.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Resync SVN and try again. It was buggered up.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
caweiss
Posts: 4
Joined: Wed Jul 04, 2007 12:31 am

Post by caweiss »

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 ?
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
caweiss
Posts: 4
Joined: Wed Jul 04, 2007 12:31 am

Post by caweiss »

Hello
now it works
Thanks for quick help

CAWeiss
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest