<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40"
xmlns:ns0="urn:schemas-microsoft-com:office:smarttags">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PostalCode"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="State"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="Street"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="address"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";
        color:black;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";
        color:black;}
pre
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:Arial;
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor=white lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Wes,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I ended up writing a small VB script that
polls every 60 seconds and sends alerts to HR when the ClientsOnline falls
below 1. Another helpful utility is Solar Winds WMI Monitor (which is
free). I configured it for:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Win32_PerfRawData_CiscoTcdSrv_CiscoCallManagerAttendantConsole.ClientsOnline<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Win32_PerfRawData_CiscoTcdSrv_CiscoCallManagerAttendantConsole.ClientsRegistered<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>HR can now see in real time the count of online
AC users and the # of AC instances registered with CM. Still working on
the log parser for client side logs, but this is a decent hack for now.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thanks again for your assistance.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Pat<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
color=black face="Times New Roman"><span style='font-size:12.0pt;color:windowtext'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 color=black face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:windowtext;font-weight:bold'>From:</span></font></b><font
size=2 color=black face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;
color:windowtext'> Wes Sisk [mailto:wsisk@cisco.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, March 31, 2010
10:07 AM<br>
<b><span style='font-weight:bold'>To:</span></b> Patrick Humpal<br>
<b><span style='font-weight:bold'>Cc:</span></b> <st1:PersonName w:st="on">cisco-voip@puck.nether.net</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [cisco-voip] Query
TcdSrv.ClientsOnline Programmatically</span></font><font color=black><span
style='color:windowtext'><o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'>Inline,<br>
ws.<br>
<br>
On Tuesday, March 30, 2010 7:09:58 PM, Patrick Humpal <a
href="mailto:phumpal@execinc.com"><phumpal@execinc.com></a> wrote:<br>
<br>
<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'><u1:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place"><u1:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PostalCode"><u1:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="State"><u1:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="City"><u1:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="Street"><u1:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="address"></u1:SmartTagType></u1:SmartTagType></u1:SmartTagType></u1:SmartTagType></u1:SmartTagType></u1:SmartTagType>Hello,<u1:p></u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'><u1:p> </u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'>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.</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'>ws: RTMT with CM 7.x and later allows time based
alarms I believe.<br>
</span></font><i><font color=black><span style='color:windowtext;font-style:
italic'>PH: 4.1(3) allows for time, but not date or day of week </span></font></i><o:p></o:p></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'> <br>
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.</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'>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.<br>
</span></font><i><font color=black><span style='color:windowtext;font-style:
italic'>PH: I looked through both AXLAPI.wsdl and axlsoap.xsd that are provided
with 4.1(3), but ClientsOnline is not available.</span></font><o:p></o:p></i></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'> <br>
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:<br>
<br>
"03/30/2010 15:35:07.546","1"<br>
</span></font><font size=2 color=red face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:red'><span mce_style="color: #ff0000;">"03/30/2010
15:36:07.547","0"</span></span></font><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'><br>
"03/30/2010 15:37:07.547","1"<br>
<br>
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:<u1:p></u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'><u1:p> </u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'><a
href="http://www.ciscosystems.biz/en/US/docs/voice_ip_comm/cucm/service/4_1_3/ccmsrvs/ssappdxc.html"
moz-do-not-send=true>http://www.ciscosystems.biz/en/US/docs/voice_ip_comm/cucm/service/4_1_3/ccmsrvs/ssappdxc.html</a><u1:p></u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'><u1:p> </u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'>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? </span></font><o:p></o:p></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'>ws: Client information is not readily available.
You can parse the serverside AC logs to get the information but that is about
it. <br>
</span></font><i><font color=black><span style='color:windowtext;font-style:
italic'>PH: Still looking for a location: </span></font></i><i><font size=2
color=black face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:windowtext;font-style:italic'>C:\Program
Files\Cisco\CallManagerAttendant\logs has the standard ac.out.log and
ac_j.out.log log files but lacks the AC user information the client PCs
have. I’ve enabled detailed trace level for JTAPI.<o:p></o:p></span></font></i></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'><br>
If I missed something in the Developer docs please don't hesitate to point it
out. Thanks!</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'>ws: Nope, this is a hole in AC. What you are looking
for is more advanced user reporting which is a feature of IPCC.<br>
</span></font><i><font color=black><span style='color:windowtext;font-style:
italic'>PH: IPCC looks like a treat but licensing is pricey. Plus we
wouldn’t need the IVR functionality.</span></font></i><font color=black><span
style='color:windowtext'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'><u1:p></u1:p><u1:p> </u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'>Patrick Humpal<u1:p></u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'>Systems Administrator<u1:p></u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'>Executive Director, Inc.<u1:p></u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:windowtext'><ns0:Street w:insAuthor="phumpal"
w:insDate="2010-04-08T10:24:00Z" w:endInsAuthor="phumpal"
w:endInsDate="2010-04-08T10:24:00Z"><ns0:address w:insAuthor="phumpal"
w:insDate="2010-04-08T10:24:00Z" w:endInsAuthor="phumpal"
w:endInsDate="2010-04-08T10:24:00Z"><st1:Street w:st="on"><st1:address w:st="on"><font
color=black><span style='color:black'>555 E. Wells St Suite 1100</span></font></st1:address></st1:Street></ns0:address></ns0:Street></span></font><o:p></o:p></p>
<u1:p></u1:p>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:windowtext'><ns0:place w:insAuthor="phumpal"
w:insDate="2010-04-08T10:24:00Z" w:endInsAuthor="phumpal"
w:endInsDate="2010-04-08T10:24:00Z"><ns0:City w:insAuthor="phumpal"
w:insDate="2010-04-08T10:24:00Z" w:endInsAuthor="phumpal"
w:endInsDate="2010-04-08T10:24:00Z"><st1:place w:st="on"><st1:City w:st="on"><font
color=black><span style='color:black'>Milwaukee</span></font></st1:City></st1:place></ns0:City><font
color=black><span style='color:black'>, </span></font><ns0:State
w:insAuthor="phumpal" w:insDate="2010-04-08T10:24:00Z" w:endInsAuthor="phumpal"
w:endInsDate="2010-04-08T10:24:00Z"><st1:State w:st="on"><font color=black><span
style='color:black'>WI</span></font></st1:State></ns0:State><font
color=black><span style='color:black'> </span></font><ns0:PostalCode
w:insAuthor="phumpal" w:insDate="2010-04-08T10:24:00Z" w:endInsAuthor="phumpal"
w:endInsDate="2010-04-08T10:24:00Z"><st1:PostalCode w:st="on"><font
color=black><span style='color:black'>53202</span></font></st1:PostalCode></ns0:PostalCode></ns0:place></span></font><o:p></o:p></p>
<u1:p></u1:p>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'>(o) 414.276.6445<u1:p></u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'>(d) 414.918.3165<u1:p></u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'><u1:p> </u1:p></span></font><o:p></o:p></p>
<pre wrap=""><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre
style='text-align:center'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre
style='text-align:center'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre
style='text-align:center'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>
<hr size=4 width="90%" align=center>
</span></font></pre><pre style='text-align:center'><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre
style='text-align:center'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>_______________________________________________<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>cisco-voip mailing list<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><a
href="mailto:cisco-voip@puck.nether.net">cisco-voip@puck.nether.net</a><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><a
href="https://puck.nether.net/mailman/listinfo/cisco-voip">https://puck.nether.net/mailman/listinfo/cisco-voip</a><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'> <o:p></o:p></span></font></pre>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
</div>
</body>
</html>