[cisco-voip] Query TcdSrv.ClientsOnline Programmatically

Wes Sisk wsisk at cisco.com
Wed Mar 31 11:06:51 EDT 2010


Inline,
ws.

On Tuesday, March 30, 2010 7:09:58 PM, Patrick Humpal 
<phumpal at execinc.com> wrote:
>
> Hello,
>
>  
>
> We're currently running Call Manager 4.1(3)sr8a and I've been asked to 
> provide alerts when the number of Attendant Console users falls below 
> 0.  Initially, this seemed like an easy task: enable RTMT Alerts for 
> "Cisco Call Manager Attendant Console ClientsOnline" 
> (TcdSrv.ClientsOnline) and send notification to the appropriate 
> users.  However, RTMT does not allow you to filter by date (only start 
> and stop times; nor does it consider time of day routing) so it would 
> generate alerts on the weekends or holidays when AC users would never 
> be online.
>
ws: RTMT with CM 7.x and later allows time based alarms I believe.
>
>  
> My next step was to look into AXL.  I created a simple PHP script to 
> query the AXL service, but again, there is no TcdSrv.ClientsOnline 
> available so it's kind of pointless to use SOAP.
>
ws: The counter is just a perfmon counter. It should be available by 
normal windows perfmon poll or by AXL Serviceability API.  Not sure if 
AXL serviceability included perfmons in 4.x, it certainly does in 5.x 
and later.
>
>  
> Instead I took a different approach creating a performance counter to 
> run every minute and log the number of clients online.  The log file 
> is mapped to a CIFS share where I have a cron job that greps the last 
> line looking for an instance of 0 users:
>  
> "03/30/2010 15:35:07.546","1"
> "03/30/2010 15:36:07.547","0"
> "03/30/2010 15:37:07.547","1"
>  
> While this works and will send an alert out during business hours I 
> wanted to extend this a bit to provide more useful information.  For 
> example it would be nice if you could see which users were currently 
> online and who the last user was to go offline.  Looking over the 
> "Performance Objects and Counters" documentation it doesn't look like 
> you can query for specific ClientsOnline:
>
>  
>
> http://www.ciscosystems.biz/en/US/docs/voice_ip_comm/cucm/service/4_1_3/ccmsrvs/ssappdxc.html
>
>  
>
> Is there an easier way to do this short of writing a log parser to 
> collect/grep the AC logs from each AC user's PC?
>
ws: Client information is not readily available.  You can parse the 
serverside AC logs to get the information but that is about it. 
>
>
> If I missed something in the Developer docs please don't hesitate to 
> point it out. Thanks!
>
ws: Nope, this is a hole in AC. What you are looking for is more 
advanced user reporting which is a feature of IPCC.
>
>  
>
> Patrick Humpal
>
> Systems Administrator
>
> Executive Director, Inc.
>
> 555 E. Wells St Suite 1100
>
> Milwaukee, WI 53202
>
> (o) 414.276.6445
>
> (d) 414.918.3165
>
>  
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> cisco-voip mailing list
> cisco-voip at puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco-voip
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20100331/c85b7389/attachment.html>


More information about the cisco-voip mailing list