I need to rename hundreds (perhaps thousands) of devices to use
FQDNs as their device IDs. I don't seem to be able to do this via zendmd/python:

<<< snipped traceback >>>
  The object <em>labshop-3620-1</em> does not support this operation.

I've run into this problem myself and never did get to the bottom of it. It does appear to be related to the security manager being present within the Zope environment, but not within zendmd. As a temporary solution you could use a REST call to do the rename.

http://zenoss:8080/zport/dmd/Devices/path/to/device/devices/deviceId/ renameDevice?newId=newDeviceId

Of course you can use zendmd to find the full path with device.getPrimaryUrlPath().
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to