Device Types

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

Post Reply
msw1970
Cacti User
Posts: 206
Joined: Tue Jan 09, 2007 8:28 am
Location: London, UK

Device Types

Post by msw1970 »

Hi

Since upgrading our test cacti to the SVN version of mactrack, I appear to have lost all of my device types.

Is there anyway of getting them back??
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Restore your latest backup to a separate database, export the appropriate table using something like MySQL Query Browser to a CSV and then import using the new Device Type import function.

Interested in "how" they got wiped though.

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?
msw1970
Cacti User
Posts: 206
Joined: Tue Jan 09, 2007 8:28 am
Location: London, UK

Post by msw1970 »

TheWitness wrote:Restore your latest backup to a separate database, export the appropriate table using something like MySQL Query Browser to a CSV and then import using the new Device Type import function.

Interested in "how" they got wiped though.

TheWitness
The table contents don't appear to be in the SVN version of mactrack.sql.

I removed all the old tables on the test database before upgrading and starting again and then ran mysql test_cacti < mactrack.sql so I guess that's how I lost them
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Absolutely. You need to restore from your last backup.

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?
lavermil
Posts: 45
Joined: Thu Feb 15, 2007 2:25 pm
Location: Phoenix, Arizona

Post by lavermil »

I am fairly sure the reason he lost them all is because he didn't install the original version of mactrack from cactiusers.org. Once that is done and then upgrade, if I recall correctly, everything goes ok.

Anyhow in case anyone is interested. Here is an export of the device types. This is in SQL (4.1.10a) format
Attachments
mactrack-device-types_sql.txt
(7.88 KiB) Downloaded 2008 times
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests