I was trying to set a zProperty via zendmd and seem to have broken 
zDeviceTempates for a group of my servers.  Here's what I ran:

for dev in dmd.Devices.getSubDevices():
     if dev.getHWProductName().startswith('PowerEdge 2950'):
             dev.zDeviceTemplates = "PowerEdge 2950"

commit()

I now realize this was not the right thing to do.  However, I can't seem to 
back it out.  When I look at the zProperties page the zDeviceTemplates box has 
this in it:
P
o
w
e
.....(all the way to 2950)

I tried deleting that text and saving but I get backtrace as follows:

Type: BadRequest
Value: The property zDeviceTemplates does not exist

Traceback (innermost last):

    * Module ZPublisher.Publish, line 114, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 40, in call_object
    * Module Products.ZenRelations.ZenPropertyManager, line 229, in 
saveZenProperties
    * Module Products.ZenRelations.ZenPropertyManager, line 209, in 
setZenProperty
    * Module OFS.PropertyManager, line 206, in _updateProperty

BadRequest: The property zDeviceTemplates does not exist

Similar if I try to reset bindings for device or just bind the Device template. 
  The zDeviceTemplates does not show up as a local property either.  I'm not 
sure what I can do to recover this property for these servers so I can set the 
templates that I need set.

Any help appreciated.

Chock




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

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

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



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

Reply via email to