Get Number of registered devices

Version 1
    This document was generated from CDN thread

    Created by: Jan Seynaeve on 25-04-2012 10:07:17 AM
    Hello all,
     
    I have a simple question, but i don't think the answer is as simple as it seems (although i hope it is):
    What would be the recommended way to get the total number of registered devices ... preferably per server or CallManager Group?
     
    I'm using php, got quite the hang of the AXL stuff now. but for 'status' i'm looking at the risPort service now, but this far i can only seem to pull a full dump of all registered devices which seems quite heavy on the server to me ...
     
    Best regards,
    Jan.

    Subject: Re: New Message from Jan Seynaeve in Administration XML (AXL) - Administrat
    Replied by: Sascha Monteiro on 26-04-2012 07:58:13 AM
    You might want to look into perfmon

    Sent from my iPhone4

    On 26/04/2012, at 18:24, Cisco Developer Community Forums <cdicuser@developer.cisco.com> wrote:

    > Jan Seynaeve has created a new message in the forum "Administration XML Questions":
    >
    > --------------------------------------------------------------
    > I would just need a global number of connected devices, so sorting on the names is not really an option.
    > I can filter on the 'status' in SelectCmDevice, but that would still give me a full dump of all devices that are connected, while i actually only need the number ...
    > --
    > To respond to this post, please click the following link:
    >
    > <http://developer.cisco.com/web/axl/forums/-/message_boards/view_message/5523413>
    >
    > or simply reply to this email.

    Subject: RE: Re: New Message from Jan Seynaeve in Administration XML (AXL) - Adminis
    Replied by: Jan Seynaeve on 26-04-2012 11:53:17 AM
    Jan,
    Why do you not use RTMT to see this info?
     
    Geert

     
    Haha, good question, but i'm going over a number of different clusters and would like to have an overview of all of them with things like number of nodes, number of registered phones, gateways, ... 

    Subject: RE: Re: New Message from Jan Seynaeve in Administration XML (AXL) - Adminis
    Replied by: Jan Seynaeve on 26-04-2012 12:01:28 PM
    You might want to look into perfmon


     
    arr, looks like it indeed. Would there be any reference list of all those counters?

    Subject: Re: New Message from Jan Seynaeve in Administration XML (AXL) - Administrat
    Replied by: Sascha Monteiro on 25-04-2012 05:28:13 PM
    on the risport request you can specify the phonenames that you want the status of returned,
    so if you first find out which phones are in a group, you can then request them via risport

    Subject: RE: Get Number of registered devices
    Replied by: Jan Seynaeve on 26-04-2012 04:24:34 AM
    I would just need a global number of connected devices, so sorting on the names is not really an option.
    I can filter on the 'status' in SelectCmDevice, but that would still give me a full dump of all devices that are connected, while i actually only need the number ...

    Subject: RE: Re: New Message from Jan Seynaeve in Administration XML (AXL) - Adminis
    Replied by: GEERT DEWINTER on 26-04-2012 11:03:28 AM
    Jan,
    Why do you not use RTMT to see this info?
     
    Geert

    Subject: RE: Re: New Message from Jan Seynaeve in Administration XML (AXL) - Adminis
    Replied by: Jan Seynaeve on 26-04-2012 04:00:48 PM


    You might want to look into perfmon




     
    arr, looks like it indeed. Would there be any reference list of all those counters?

     
    Aha, found it, it seems there's a seperate forum for Serviceability XML ;-)
    So for the counters, looks like just using RTMT Performance as a reference and take that directory structure. For registered phones (per server) it should look like this:
    /<server>/Cisco CallManager/RegisteredHardwarePhones
     
    Anyways, gonna try it out, all tips and tricks still welcome of course...