Is there a way to turn off monitoring of interfaces when being loaded even though a template is assigned at the device level? If not, is there a MySQL command that I can run that will update the monitor field for interfaces to FALSE? I'm assuming that device data is stored in a MySQL database someplace....

I wouldn't want to do that by hand either. The configuration/model data isn't stored in MySQL, but you can access the object database by running the zendmd command as the zenoss user. This will give you a Python shell with the full Zenoss context available. From within the context. 4 spaces are required for each indentation level.

for device in dmd.Devices.getSubDevices():
    for interface in device.os.interfaces():
        interface.monitor = False

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

Reply via email to