Ryan Rowe
2012-05-05 00:18:11 UTC
Ryan Rowe [http://community.zenoss.org/people/Rowelax] created the discussion
"Zenoss 3.0 zendmd attribute question"
To view the discussion, visit: http://community.zenoss.org/message/66231#66231
--------------------------------------------------------------
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():
   print d.<tab>
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:
1.2.3.4 (nameofserver.domain.com)
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.
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/66231#66231]
Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
"Zenoss 3.0 zendmd attribute question"
To view the discussion, visit: http://community.zenoss.org/message/66231#66231
--------------------------------------------------------------
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():
   print d.<tab>
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:
1.2.3.4 (nameofserver.domain.com)
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.
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/66231#66231]
Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]