I've been trying to update a large number of devices that were not placed in a
system when they were added. This is some test code I've come up with, and I
can tell that it probably won't work due to the braces or backslash passed as
systemPaths. Is there another way to do this? Any help would be appreciated,
especially since I don't want to edit over 200 entries manually. I'm not sure
if I'm even on the right track with this script. Thanks in advance.
Code:
import os
devices = ["store101"]
for x in devices:
cmd = "wget http://admin:[EMAIL
PROTECTED]:8080/zport/dmd/Devices/Network/devices/" + x +
"/manage_editDevice?systemPaths=[\"/DSL\"]'"
os.system(cmd)
------------------------
Jamey Rush
-------------------- m2f --------------------
Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=6600#6600
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users