<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:clearspace="http://www.jivesoftware.com/xmlns/clearspace/rss" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>2.5.0 : 8.1 1 Adding Devices Programatically : Comments</title>
    <link>http://community.zenoss.org/docs/DOC-3805#comments</link>
    <description>Comments on : 8.1 1 Adding Devices Programatically</description>
    <language>en</language>
    <pubDate>Wed, 03 Feb 2010 21:13:28 GMT</pubDate>
    <generator>Jive SBS 4.5.6.2  (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2010-02-03T21:13:28Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>RE: 8.1 1 Adding Devices Programatically</title>
      <link>http://community.zenoss.org/docs/DOC-3805#comments-1730</link>
      <description>&lt;!-- [DocumentBodyStart:2b1bf8b9-3ff9-4015-b11b-c83dbf37069d] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I just updated this document to fix an error in how the example serv.loadDevice method was called. It had previously suggested that you should build a dictionary containing key value pairs for each of the XML-RPC attributes you wanted to supply for the new device. This was incorrect because the loadDevice method takes positional parameters in the order specified in the XML-RPC Attributes table, not a single dictionary.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Ticket #5399: deviceName getting passed as a dict, expecting a string&lt;/p&gt;&lt;p&gt;&lt;a class="jive-link-external-small" href="http://dev.zenoss.org/trac/ticket/5399"&gt;http://dev.zenoss.org/trac/ticket/5399&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:2b1bf8b9-3ff9-4015-b11b-c83dbf37069d] --&gt;</description>
      <pubDate>Wed, 03 Feb 2010 21:13:28 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-3805#comments-1730</guid>
      <dc:date>2010-02-03T21:13:28Z</dc:date>
      <clearspace:dateToText>4 years, 1 month ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: 8.1 1 Adding Devices Programatically</title>
      <link>http://community.zenoss.org/docs/DOC-3805#comments-1935</link>
      <description>&lt;!-- [DocumentBodyStart:2c64b344-2c80-42c1-8977-513f32dfb54c] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Just out of curiosity.... if the arguments are positional in the xml-rpc call, how does it handle multiple group/system Path calls?&amp;#160; If you declare more than one how does it know when you are done declaring them?&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:2c64b344-2c80-42c1-8977-513f32dfb54c] --&gt;</description>
      <pubDate>Tue, 20 Apr 2010 17:32:56 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-3805#comments-1935</guid>
      <dc:date>2010-04-20T17:32:56Z</dc:date>
      <clearspace:dateToText>3 years, 10 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: 8.1 1 Adding Devices Programatically</title>
      <link>http://community.zenoss.org/docs/DOC-3805#comments-2051</link>
      <description>&lt;!-- [DocumentBodyStart:0e53b9ae-4a63-4a2c-be73-fcacad945ef8] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I too would like to know how to add multiple groups,systems using positional parameters.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:0e53b9ae-4a63-4a2c-be73-fcacad945ef8] --&gt;</description>
      <pubDate>Thu, 13 May 2010 15:25:05 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-3805#comments-2051</guid>
      <dc:date>2010-05-13T15:25:05Z</dc:date>
      <clearspace:dateToText>3 years, 10 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: 8.1 1 Adding Devices Programatically</title>
      <link>http://community.zenoss.org/docs/DOC-3805#comments-2771</link>
      <description>&lt;!-- [DocumentBodyStart:7d3530fa-b35b-4c2e-8ef1-63cf25ec8fcb] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Here's a VBscript example:&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;' The device to be added&lt;br/&gt;ipToAdd = "192.168.1.105"&lt;br/&gt;zDeviceClass = "/Ping"&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;'Zenoss URL&lt;br/&gt;zenossURL = "192.168.1.107:8080"&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;'userid and password for zenoss&lt;br/&gt;zUser = "admin"&lt;br/&gt;zPwd = "password"&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;'----------------------------No need to change&amp;#160; below here --------------------------------&lt;br/&gt;zenossAction = "/zport/dmd/DeviceLoader/loadDevice?"&lt;br/&gt;zDeviceToAdd = "deviceName="&lt;br/&gt;zClass = "&amp;amp;devicePath=" &amp;amp; zDeviceClass&lt;br/&gt;zAuth = "&amp;amp;__ac_name=" &amp;amp; zUser &amp;amp; "&amp;amp;__ac_password=" &amp;amp; zPwd&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;senddata = zDeviceToAdd &amp;amp; ipToAdd &amp;amp; zClass &amp;amp; zAuth&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Set WshShell = WScript.CreateObject("WScript.Shell")&lt;br/&gt;Set http = CreateObject("Microsoft.XmlHttp")&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;&lt;span&gt;http.open "POST", "&lt;/span&gt;&lt;a class="jive-link-external-small" href="http://"&gt;http://&lt;/a&gt;&lt;span&gt;" &amp;amp; zenossURL &amp;amp; zenossAction, FALSE&lt;/span&gt;&lt;br/&gt;http.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"&lt;br/&gt;http.send senddata&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;WScript.Echo http.responseText&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;set WshShell = nothing&lt;br/&gt;set http = nothing&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:7d3530fa-b35b-4c2e-8ef1-63cf25ec8fcb] --&gt;</description>
      <pubDate>Thu, 30 Sep 2010 03:18:50 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-3805#comments-2771</guid>
      <dc:date>2010-09-30T03:18:50Z</dc:date>
      <clearspace:dateToText>3 years, 5 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: 8.1 1 Adding Devices Programatically</title>
      <link>http://community.zenoss.org/docs/DOC-3805#comments-3639</link>
      <description>&lt;!-- [DocumentBodyStart:c9af4b9f-e5d9-46d3-aede-5cff9de87e21] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;From the Perl side of the fence, if using Zenoss &amp;gt;= 3.0, the following CPAN module can be used:&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;&lt;a class="jive-link-external-small" href="http://search.cpan.org/dist/Zenoss/"&gt;http://search.cpan.org/dist/Zenoss/&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:c9af4b9f-e5d9-46d3-aede-5cff9de87e21] --&gt;</description>
      <pubDate>Tue, 15 Mar 2011 06:17:16 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-3805#comments-3639</guid>
      <dc:date>2011-03-15T06:17:16Z</dc:date>
      <clearspace:dateToText>3 years, 47 minutes ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: 8.1 1 Adding Devices Programatically</title>
      <link>http://community.zenoss.org/docs/DOC-3805#comments-4908</link>
      <description>&lt;!-- [DocumentBodyStart:4fee0084-feb7-4e03-8a0c-2132aa5e335c] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;When I try to pass the argument "locationPath", the event.log issues the following:&lt;/p&gt;&lt;p&gt;2011-12-15T14:11:28 ERROR extdirect addDevice() got an unexpected keyword argument 'locationPath'&lt;/p&gt;&lt;p&gt;Traceback (most recent call last):&lt;/p&gt;&lt;p&gt;&amp;#160; File "/opt/zenoss/Products/ZenUtils/extdirect/router.py", line 128, in _processDirectRequest&lt;/p&gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160; result = _targetfn(**data)&lt;/p&gt;&lt;p&gt;&amp;#160; File "/opt/zenoss/Products/Zuul/decorators.py", line 28, in inner&lt;/p&gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160; return decorator_func(func, *args, **kwargs)&lt;/p&gt;&lt;p&gt;&amp;#160; File "/opt/zenoss/Products/Zuul/decorators.py", line 90, in wrapped_fn&lt;/p&gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160; return f(self, *args, **kwargs)&lt;/p&gt;&lt;p&gt;TypeError: addDevice() got an unexpected keyword argument 'locationPath'&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;This is happening mainly when I try to create a device with a location. I don't want to create a device and then having to move it again with the moveDevices method. Any suggestions?&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:4fee0084-feb7-4e03-8a0c-2132aa5e335c] --&gt;</description>
      <pubDate>Thu, 15 Dec 2011 12:13:24 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-3805#comments-4908</guid>
      <dc:date>2011-12-15T12:13:24Z</dc:date>
      <clearspace:dateToText>2 years, 2 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

