[quote="massimo"]

Code:

>>> fnames = open("/tmp/devices.txt", "r")
>>> lines = fnames.readlines()
>>> for d in dmd.Devices.getSubDevices():
...     for line in lines:
...             lineIp,lineHostname = line.split(";")
...             if d.manageIp == lineIp:
...                     d.renameDevice(lineHostname)
... 
>>> commit()
>>>




Thanks, Is there somewhere I can find out what variables we can edit like this?

I have a document were all our switches have their geocodes in them. That would 
be great to batch import :)




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

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

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



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

Reply via email to