You can script these changes inside the zendmd command line utility by doing 
something like this:


Code:

for device in dmd.Devices.getSubDevices():
    if device.id.startswith('location1-'):
        device.setLocation('/Location1')
    elif device.id.startswith('location2-'):
        device.setLocation('/Location2')
    else:
        print "No location set for %s." % (device.id)




------------------------
 Chet Luther




-------------------- m2f --------------------

Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=7143#7143

-------------------- m2f --------------------



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

Reply via email to