Discussion:
Error when adding devices with dmd
floyn
2013-05-10 13:08:24 UTC
Permalink
floyn [http://community.zenoss.org/people/floyn] created the discussion

"Error when adding devices with dmd"

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

--------------------------------------------------------------
Hi, I have this script which work :


dev=dmd.Devices.Network.Switch.createInstance(ip[0])
dev.setPerformanceMonitor('localhost')
commit()


With "ip[0]" the IP address of my devices contain in a file. The problem is : when the device is add to Zenoss, the device name is the IP address, and it have no Ip in the raw "IP Address" so my snmp don't work. If I had it manually it works but there are more than 200 devices. What's the problem ?

Thank you for helping
--------------------------------------------------------------

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

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Shane Scott
2013-05-10 19:58:51 UTC
Permalink
Shane Scott [http://community.zenoss.org/people/hackman238] created the discussion

"Re: Error when adding devices with dmd"

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

--------------------------------------------------------------
floyn:

Don't do it that way. Use the device facade/router. DMD -> listFacades()

Best,
--Shane Scott (hackman238)
--------------------------------------------------------------

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

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
floyn
2013-05-13 08:32:27 UTC
Permalink
floyn [http://community.zenoss.org/people/floyn] created the discussion

"Re: Error when adding devices with dmd"

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

--------------------------------------------------------------
Thank you, I try to use the DeviceFacade Class but don't find the way.

How I have to use the method : addDevice(self, deviceName, deviceClass, ... )
I'm a beginner in Python, the deviceName is the Ip of the device ?
--------------------------------------------------------------

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

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Shane Scott
2013-05-15 13:04:39 UTC
Permalink
Shane Scott [http://community.zenoss.org/people/hackman238] created the discussion

"Re: Error when adding devices with dmd"

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

--------------------------------------------------------------
floyn,

You can do that, yes, or hostname that's resolvable.

--Shane Scott (Hackman238)
--------------------------------------------------------------

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

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
floyn
2013-05-16 13:04:20 UTC
Permalink
floyn [http://community.zenoss.org/people/floyn] created the discussion

"Re: Error when adding devices with dmd"

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

--------------------------------------------------------------
Thank you, I mad it :


dev = getFacade('device')
dev.addDevice('10.100.106.106','/Network/Switch')

(with the zendmd script) and it return me that :
<JobRecord Info "96af7b06-aa8b-4164-8a3f-3811a29fa3d0">

I have nothing in $ZENHOME/log/job, what I have to do with that please ?
--------------------------------------------------------------

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

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Shane Scott
2013-05-17 01:23:43 UTC
Permalink
Shane Scott [http://community.zenoss.org/people/hackman238] created the discussion

"Re: Error when adding devices with dmd"

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

--------------------------------------------------------------
floyn:

You should be able to see the job and it's state on the Advanced tab -> Jobs.

Jobs that are running or finished should have a log in jobs. Can you check now?

Best,
--Shane Scott (Hackman238)
--------------------------------------------------------------

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

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
floyn
2013-05-17 07:32:12 UTC
Permalink
floyn [http://community.zenoss.org/people/floyn] created the discussion

"Re: Error when adding devices with dmd"

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

--------------------------------------------------------------
I forgot to add the line :
"commit()" and now it works, thank you form helping !
--------------------------------------------------------------

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

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Shane Scott
2013-05-17 07:57:50 UTC
Permalink
Shane Scott [http://community.zenoss.org/people/hackman238] created the discussion

"Re: Error when adding devices with dmd"

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

--------------------------------------------------------------
Anytime! :)

--Shane Scott (Hackman238)
http://linkedin.com/in/shanewilliamscott http://linkedin.com/in/shanewilliamscott
--------------------------------------------------------------

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

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...