Discussion:
Zenoss 3.0 zendmd attribute question
Ryan Rowe
2012-05-05 00:18:11 UTC
Permalink
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]
dpetzel
2012-05-05 15:26:56 UTC
Permalink
dpetzel [http://community.zenoss.org/people/dpetzel] created the discussion

"Re: Zenoss 3.0 zendmd attribute question"

To view the discussion, visit: http://community.zenoss.org/message/66218#66218

--------------------------------------------------------------
dev = dmd.Devices.findDevice("device")
print dev.<tab>
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.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/66218#66218]

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]
Ryan Rowe
2012-05-06 00:59:08 UTC
Permalink
Ryan Rowe [http://community.zenoss.org/people/Rowelax] created the discussion

"Re: Zenoss 3.0 zendmd attribute question"

To view the discussion, visit: http://community.zenoss.org/message/66233#66233

--------------------------------------------------------------
So i did find the thread about the reamed device

http://community.zenoss.org/thread/17078 http://community.zenoss.org/thread/17078

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.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/66233#66233]

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]
Ryan Rowe
2012-05-06 05:16:20 UTC
Permalink
Ryan Rowe [http://community.zenoss.org/people/Rowelax] created the discussion

"Re: Zenoss 3.0 zendmd attribute question"

To view the discussion, visit: http://community.zenoss.org/message/66234#66234

--------------------------------------------------------------
OK I guess the tab complete works now I don't know why it wasn't working before
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/66234#66234]

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]
Loading...