My example just prints them to the console. If you want to print them to a
file, you'd use the standard Python way.
Code:
out = open("devices.txt", "w")
for d in dmd.Devices.getSubDevices():
out.write("%s:%s:%s\n" % (d.id, d.manageIp, d.getLocationName() or
"Unknown"))
out.close()
Then you'd have a file called devices.txt in your current directory.
-------------------- m2f --------------------
Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=33930#33930
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users