|  |  | 
| Subject: | How do I properly delete a device in Zenoss? | 
| Author: | Ken Jenkins | 
| Posted: | 2015-12-11 11:54 | 
Removing devices in Zenoss is hit and miss. I need to automate device removals using either the API or zendmd.
I need to remove devices by IP or device name.
Can someone provide me with the automated method that I can use to remove devices in Zenoss (Core 4 and 5) please
Thanks,
Ken
| Subject: | Don't use old Zenoss 4 zendmd | 
| Author: | Jan Garaj | 
| Posted: | 2015-12-11 16:34 | 
Devops Monitoring Expert advice: 
Dockerize/automate/monitor all the things.
DevOps stack: 
Docker / Kubernetes / Mesos / Zabbix / Zenoss / Grafana / Puppet / Ansible / Vagrant / Terraform / 
Elasticsearch
| Subject: | zendmd: | 
| Author: | Jay Stanley | 
| Posted: | 2015-12-17 07:54 | 
zendmd:
parent = dev.getPrimaryParent()
dev.deleteDevice(deleteStatus=True,deletePerf=False)
parent = self._dmd.unrestrictedTraverse("/".join(parent.getPhysicalPath()))
parent.setCount()
API:
DeviceRouter
removeDevices(self, uids, hashcheck, action="remove", uid=None, ranges=(),
params=None, sort=name, dir=ASC, deleteEvents=False, deletePerf =False)
| < | Previous I can't see one of the filesystems of my NAS | Next Serving static content from CC | > |