<?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>ZenDMD : Finding Unbound Devices : Comments</title>
    <link>http://community.zenoss.org/docs/DOC-3766#comments</link>
    <description>Comments on : Finding Unbound Devices</description>
    <language>en</language>
    <pubDate>Tue, 05 Oct 2010 16:37:25 GMT</pubDate>
    <generator>Jive SBS 4.5.6.2  (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2010-10-05T16:37:25Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>RE: Finding Unbound Devices</title>
      <link>http://community.zenoss.org/docs/DOC-3766#comments-2790</link>
      <description>&lt;!-- [DocumentBodyStart:005771d5-1ff5-4cfd-9237-1c1ebad10a02] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Here is another version of this that will list devices id's not bound to a location by looking for a "null" location&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;div id="_mcePaste"&gt;#!/vol/opt/zenoss/bin/python&lt;/div&gt;&lt;div id="_mcePaste"&gt; &lt;/div&gt;&lt;div id="_mcePaste"&gt;#Needs to use the version of python bundled with zenoss&lt;/div&gt;&lt;div id="_mcePaste"&gt; &lt;/div&gt;&lt;div id="_mcePaste"&gt;import Globals&lt;/div&gt;&lt;div id="_mcePaste"&gt;from Products.ZenUtils.ZenScriptBase import ZenScriptBase&lt;/div&gt;&lt;div id="_mcePaste"&gt;from transaction import commit&lt;/div&gt;&lt;div id="_mcePaste"&gt; &lt;/div&gt;&lt;div id="_mcePaste"&gt;dmd = ZenScriptBase(connect=True).dmd&lt;/div&gt;&lt;div id="_mcePaste"&gt; &lt;/div&gt;&lt;div id="_mcePaste"&gt;for d in dmd.Devices.getSubDevices():&lt;/div&gt;&lt;div id="_mcePaste"&gt; if (d.location() == None):&lt;/div&gt;&lt;div id="_mcePaste"&gt;&amp;#160; print d.id&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:005771d5-1ff5-4cfd-9237-1c1ebad10a02] --&gt;</description>
      <pubDate>Tue, 05 Oct 2010 16:37:25 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-3766#comments-2790</guid>
      <dc:date>2010-10-05T16:37:25Z</dc:date>
      <clearspace:dateToText>3 years, 5 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

