ZenDMD Tip - ShowAllTransforms

From Zenoss Wiki
Revision as of 20:04, 31 January 2013 by Eedgar (Talk | contribs)$7

(diff) ← Older revision | Approved revision (diff) | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
  1. !/usr/bin/env pythonimport Globalsfrom Products.ZenUtils.ZenScriptBase import ZenScriptBasedmd = ZenScriptBase(connect=True).dmdfor 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