I am trying to write a dmd script to dump everything that zenoss finds to a out to a csv. But I am having issues trying to find the attributes for a given device. I zenoss 2.5 I use to be able to tab find the attributes I needed for example:
for d in dmd.Devices.Server.getSubDevices():
Then it would show me all of the options I could use to find the attributes I needed. But with zenoss 3.0 when I tab after d. I just puts in COPY( and doesn't give me a list. Is there some variable or setting I need to set in python to make this work?
Another question is when I do a scan and the object doesn't resolve it puts the d.id as the ip (because it can't resolve). When I change the name of the device in zenoss zope shows it in the device as:
My question is where is the nameof server.domain.com located in the zendmd? I can't find the attribute anywhere in zope or zendmd?
Thanks for any help.
I've always used the tab completion in 3.x. I'm not sure why it wouldnt work. What if you did:
dev = dmd.Devices.findDevice("device")
I'm wondering if you need to have an actual object of that type for the completion to work
I've seen what you describe for the name as well, but I've never bother much to investigate, I know I've seen quite a few thread posts in the past about renaming and such, so not sure if you search the forums already, but there might be an answer.
So i did find the thread about the reamed device
I know I searched that but didn't find that before I will try the tab completion thing later and let you know what I find.
Follow Us On Twitter »
||Latest from the Zenoss Blog »||Community||Products||Services||Customers||About Us|
Copyright © 2005-2011 Zenoss, Inc.