ZenDMD TIP - List Decomissioned devices
From Zenoss Wiki
Revision as of 11:56, 23 February 2015 by Aseques $7
If you want to get a simple dump of decomissioned devices it's quite easy to get with zendmd. I have defined not device category, it would be just as simple as change dmd.Devices.getSubDevices for dmd.Devices.Network.getSubDevices or similar
for d in dmd.Devices.getSubDevices(): if d.getProdState() == "Decommissioned": print "Device " + str(d.titleOrId()) + " " + d.id + " is decomissioned"