On Jul 5, 2007, at 9:32 AM, russuhte wrote:

Maybe there's an easier way to do what I want... I really just want to see what devices do not have a system or location defined... I'm thinking maybe something in zendmd??

Russ,

It'd be easy to do in zendmd. Try this for getting devices without a location:

for device in dmd.Devices.getSubDevices():
    if not device.location(): print device.id

And for an empty Systems list.

for device in dmd.Devices.getSubDevices():
    if len(device.systems()) == 0: print device.id

Chet Luther
[EMAIL PROTECTED]
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to