On Apr 24, 2009, at 11:01 AM, stephm wrote:
> Does anyone know of a way to get text dump list of all the devices,
> their IPs and their location in the device map? We are currently
> using 2.1.3.
You could use zendmd for this. Run "zendmd" as the zenoss user, and
paste the following into the >>> prompt. The second line should be
indented in case the forum strips that.
for d in dmd.Devices.getSubDevices():
print "%s:%s:%s" % (d.id, d.manageIp, d.getLocationName() or
"Unknown")
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users