« Back to Serviceability XML Questions

SelectCmDevice different behaviour on CUCM 6?

Combination View Flat View Tree View
Threads [ Previous | Next ]
I'm trying to determine the 'registered' state of all phone lines of a given Call Manager, but I'm seeing different behaviour from "SelectCmDevice" when it is invoked on a CUCM 6 (6.1.2.1000-13) compared to running against CUCM 5 or CUCM 7.  In particular, if a phone has multiple lines, the call on CUCM 5 and CUCM 7 returns all of the lines with their associated status under "DirNumber".  Example output from CUCM 7 (editted to only include the first few fields from device in question):
 
<item xsi:type="ns1:CmDevice">
  <Name xsi:type="xsd:string">SEP00152BB5D5F5</Name>
  <IpAddress xsi:type="xsd:string">******</IpAddress>
  <DirNumber xsi:type="xsd:string">2450-Registered,2470-Registered</DirNumber>
  <Class xsi:type="ns1: DeviceClass">Phone</Class>
  ...
</item>
 
But on CUCM 6, the "DirNumber" field only lists the information for line 1.  Ex (editted again):
 
<item xsi:type="ns1:CmDevice">
  <Name xsi:type="xsd:string">SEP000BFD07C71C</Name>
  <IpAddress xsi:type="xsd:string">******</IpAddress>
  <DirNumber xsi:type="xsd:string">2610-Registered</DirNumber>
  <Class xsi:type="ns1: DeviceClass">Phone</Class>
  ...
</item>

I have tried changing the "SelectCmDevice" query to select based on DirNumber rather than Name, but this still does not locate the second line.   I have seen this behaviour from multiple instances of CUCM 6.  Any thoughts on why CUCM 6 is behaving differently, and/or advice on how to query the registered status of secondary lines would be appreciated. 
 

Is it possible the difference is between SCCP vs SIP devices?  For SCCP devices registration is at the device level, and individual line registration doesn't make much sense.  For SIP devices each line does register separately, and it is conceivable that some could or could not be registered at any given time.

Thanks for the reply.  Unfortunately, in all 3 of my test cases (CUCM 5, CUCM 6, CUCM 7), the device protocol is SCCP.  
 
I can use the device's status for each associated line if I have to - I'm just trying to figure out why there is a difference in the behaviour.

I tried this on my CM7.0(1) test bed and was not able to reproduce it.  Registering one phone with two lines, I received a response like:
 
                    <item xsi:type="ns1:CmDevice">
                        <Name xsi:type="xsd:string">SEP00070EB9C4B4</Name>
                        <IpAddress xsi:type="xsd:string">10.89.20.50</IpAddress>
                        <DirNumber xsi:type="xsd:string">1000-Registered,2000-Registered</DirNumber>
According to engineering, the correct behaviour is for the DirNumber field to show multiple DNs/states, as above.
 
It may be useful to look at the output of the CLI commands:
 
admin: show risdb query phone
admin: show risdb query phoneextn
 
 

Thanks again.  The behavior you are seeing matches what I was seeing - I also got back the information for both lines in the output from CUCM7.   It was only from CUCM6 where the output only contained a single line.
 
I tried the CLI commands you suggested, and I found that the behavior again is different between CUCM6 and CUCM7.  On CUCM6, I get back 6 phones from the 'query phone' command, and 6 extensions from the 'query phoneextn' command.  
 
admin:show risdb query phone
----------- Phone Information -----------
#TotalPhones, #TotalRegistered, #RegisteredSCCP, #RegisteredSIP, #UnRegistered, #Rejected, #PartiallyRegistered, StateId
6, 6, 6, 0, 0, 0, 0, 414
 
admin:show risdb query phoneextn
----------- Phone Extension Information -----------
#extensions, #registered, #unregistered, #rejected, StateId
6, 0, 0, 0, 216
 
 
But on CUCM7, I get back 3 phones from the 'query phone' command and 4 extensions from the 'query phoneextn' command. 
 
admin:show risdb query phone
----------- Phone Information -----------
#TotalPhones, #TotalRegistered, #RegisteredSCCP, #RegisteredSIP, #UnRegistered,#Rejected, #PartiallyRegistered, StateId
3, 3, 3, 0, 0, 0, 0, 36
 
admin:show risdb query phoneextn
----------- Phone Extension Information -----------
#extensions, #registered, #unregistered, #rejected, StateId
4, 0, 0, 0, 20