Dump event classes, mapping, etc

4 posts / 0 new
Last post
Bschimm
Bschimm's picture
Offline
Last seen: 1 day 2 hours ago
Joined: 11/20/2015 - 11:54
Posts: 70
Dump event classes, mapping, etc

Is there an easy way to dump all Event Classes, subclasses, mappings, and zproperties into an XML file to be used in another instance of Zenoss. Right now I'm going through all event classes and subclasses and adding everything to a single ZenPack to import into another instance.

Jstanley
Jstanley's picture
Offline
Last seen: 2 weeks 6 days ago
Joined: 07/10/2014 - 09:31
Posts: 213
Careful with that. Adding

Careful with that. Adding core event classes could lead to problems if your zenpack ever gets removed.

You can script adding things to zenpacks with dmd.. or you could dump all that info using dmd as well.

 

 

Bschimm
Bschimm's picture
Offline
Last seen: 1 day 2 hours ago
Joined: 11/20/2015 - 11:54
Posts: 70
I've finished adding them all

I've finished adding them all through the GUI. I only added classes and mappings that were missing from my new server. Thanks for the info!

Jcurry
Jcurry's picture
Offline
Last seen: 3 days 7 hours ago
Joined: 01/02/2014 - 13:04
Posts: 407
Get my Audit package from

Get my Audit package from github -  https://github.com/jcurry/Audit . It has scripts to dump all sorts of elements out of the ZOPE database, including event classes and mappings.  Output format is currently just a text file, not XML.

Cheers,

Jane

Log in to post comments