Difference between revisions of "ZenDMD TIP - List Decomissioned devices"

From Zenoss Wiki
Jump to: navigation, search
(Add decommissioned device listing)
(Add decommissioned device listing)
(No difference)

Latest revision as of 11:56, 23 February 2015

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"