[cisco-voip] Query TcdSrv.ClientsOnline Programmatically

Patrick Humpal phumpal at execinc.com
Tue Mar 30 19:09:58 EDT 2010


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.
 
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.
 
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?  


If I missed something in the Developer docs please don't hesitate to
point it out. Thanks!

 

Patrick Humpal

Systems Administrator

Executive Director, Inc.

555 E. Wells St Suite 1100

Milwaukee, WI 53202

(o) 414.276.6445

(d) 414.918.3165

 

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


More information about the cisco-voip mailing list