ZenDMD Tip - Test & Delete Overrides
From Zenoss Wiki
This is the approved revision of this page, as well as being the most recent.
As the zenoss user on the ZenMaster, zendmd.
For classes:
for d in dmd.Devices.getSubOrganizers(): if d.getOverriddenObjects('zDeviceTemplates'): d.id
For devices:
for d in dmd.Devices.getSubDevices(): if d.getOverriddenObjects('zDeviceTemplates'): d.id
To remove the property, use the 'deleteZenProperty' method as follows:
d.deleteZenProperty('zDeviceTemplates')
Change out the 'zDeviceTemplates' in the examples to the property you need to work with.