ZenDMD Tip - ShowAllTransforms

From Zenoss Wiki
This is the approved revision of this page, as well as being the most recent.
Jump to: navigation, search
#!/usr/bin/env python
import Globals
from Products.ZenUtils.ZenScriptBase import ZenScriptBase
dmd = ZenScriptBase(connect=True).dmd
for ec in dmd.Events.getSubOrganizers():
    if ec.transform:
        print "= %s ===" % ec.getOrganizerName()
        print ec.transform        
        print    
    for i in ec.instances():
        if i.transform:
            print "= %s/%s ===" % (ec.getOrganizerName(), i.id)
            print i.transform
            print