<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>SelectCmDevice returns info only about registered phone - Cucm 6.1.5</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_category?p_l_id=194743&amp;mbCategoryId=0" />
  <subtitle>SelectCmDevice returns info only about registered phone - Cucm 6.1.5</subtitle>
  <id>http://developer.cisco.com/c/message_boards/find_category?p_l_id=194743&amp;mbCategoryId=0</id>
  <updated>2013-05-22T23:39:59Z</updated>
  <dc:date>2013-05-22T23:39:59Z</dc:date>
  <entry>
    <title>RE: RIS Query returns multiple Status device records with same timestamp</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=194743&amp;messageId=4256597" />
    <author>
      <name>Daniele Visaggio</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=194743&amp;messageId=4256597</id>
    <updated>2011-07-21T11:35:28Z</updated>
    <published>2011-07-21T11:35:28Z</published>
    <summary type="html">Same for me (cucm 6.1.5).

Rule of thumb:  if you receive *at least*  one status records with status "Registered", it means that the phone is really registered.

In my cluster I have devices with 4 status records returned from query to the ris port! :wacko:

Regards</summary>
    <dc:creator>Daniele Visaggio</dc:creator>
    <dc:date>2011-07-21T11:35:28Z</dc:date>
  </entry>
  <entry>
    <title>SelectCmDevice returns info only about registered phone - Cucm 6.1.5</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=194743&amp;messageId=4173467" />
    <author>
      <name>Daniele Visaggio</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=194743&amp;messageId=4173467</id>
    <updated>2011-07-06T14:44:30Z</updated>
    <published>2011-07-06T14:41:15Z</published>
    <summary type="html">Hi all,
 
i'm trying to find a method to discover a cluster's complete list of all phone status (vers. 6.1.5). Basically i need a list of all mac addresses with their status: registered, unregistered, unknown, rejected, etc.
 
The problem is that "SelectCmDevice" doesn't see unknown phones. As far as I know, this kind of query can return info only on registered phones.
 
This is the xml I run against cucm:
 
############################################
 
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
&lt;soapenv:Body&gt;
&lt;ns1:SelectCmDevice soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://schemas.cisco.com/ast/soap/"&gt;
&lt;StateInfo xsi:type="xsd:string"/&gt;
&lt;CmSelectionCriteria href="#id0"/&gt;
&lt;/ns1:SelectCmDevice&gt;
&lt;multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:CmSelectionCriteria" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://schemas.cisco.com/ast/soap/"&gt;
&lt;MaxReturnedDevices xsi:type="xsd:unsignedInt"&gt;200&lt;/MaxReturnedDevices&gt;
&lt;Class xsi:type="xsd:string"&gt;Phone&lt;/Class&gt;
&lt;Model xsi:type="xsd:unsignedInt"&gt;255&lt;/Model&gt;
&lt;Status xsi:type="xsd:string"&gt;Unknown&lt;/Status&gt;
&lt;NodeName xsi:type="xsd:string" xsi:nil="true"/&gt;
&lt;SelectBy xsi:type="xsd:string"&gt;Name&lt;/SelectBy&gt;
&lt;SelectItems soapenc:arrayType="ns2:SelectItem[1]" xsi:type="soapenc:Array"&gt;
&lt;item href="#id1"/&gt;
&lt;/SelectItems&gt;
&lt;/multiRef&gt;
&lt;multiRef id="id1" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns3:SelectItem" xmlns:ns3="http://schemas.cisco.com/ast/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"&gt;
&lt;Item xsi:type="xsd:string"&gt;*&lt;/Item&gt;
&lt;/multiRef&gt;
&lt;/soapenv:Body&gt;
&lt;/soapenv:Envelope&gt;
 
############################################
 
This query returns only info about registered phones, I can't see any info about unknown phones (which are present on my test cluster). The CmSelectionCriteria &lt;Status xsi:type="xsd:string"&gt;Unknown&lt;/Status&gt; seem to have no effect.
 
Does anybody know how to retrieve the informations I need?
 
Thank you in advance,
 
Daniele</summary>
    <dc:creator>Daniele Visaggio</dc:creator>
    <dc:date>2011-07-06T14:41:15Z</dc:date>
  </entry>
</feed>

