ptom wrote:
> I am working on a zendmd script to remove the serial numbers for all devices


  Can I ask what it is in your particular case that you do not want the serial 
numbers to be recorded?


ptom wrote:
> 
>  but I am getting some errors. 
> 
> 
> Code:
> 
> for d in dmd.Devices.getSubDevices():
>      for serial in d.hw.SerialNumber():
>                 serial.SerialNumber = ""
> 
> 
> 
> 
> 
> Once I run this I am seeing a AttributeError: Serial Number. 
> I am assuming the second line is incorrect. Does anyone know the proper 
> syntax to wipe these out? 
> 
> Thanks,
> -t-


 Before doing this operation, please make a backup.

 Having said that, hopefully this zendmd command sequence will do the trick for 
you:


Code:

for d in dmd.Devices.getSubDevices():
     d.hw.serialNumber= ""

commit()





kells




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

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

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



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

Reply via email to