On Mon, Oct 22, 2007 at 04:01:02PM -0400, Chet Luther wrote:
> >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()


Is this inherently more efficient than just creating an empty ethernetCsmacd 
template?  ( I copy the originals to a new /Devices/tmp organizer for safety, 
and then delete the objects from the original. )  

I guess my technique may not live through upgrades.  

Wouldn't it be a good idea to lock the above?  Won't a re-model set them to 
be monitored again?


-- 
David Carmean                                           Network Appliance, Inc
Infosystems Architect,                                  495 E. Java Drive
Java (Sunnyvale) Engineering Lab Services               Sunnyvale, CA  94089
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to