Search | Register | Login 
CMShell > Discussion
Nederlands English
HomeHomeCMShellCMShellGeneralGeneralCM85 - -Realtime not workingCM85 - -Realtime not working
New Post
9/23/2011 12:02 PM

Hi Aaron,

In CMShell you can enable a request-trace to inspect which messages are being sent by the client:

    $cm.EnableRequestTrace = $true

This should tell us if CMShell is actually sending a request for RIS-Data.

Could you also do a device search for a registered phone in the Cisco RTMT? This should tell us if the RIS-Data service is actually functioning.


Foxnet Helpdesk

New Post
9/26/2011 2:40 AM

Hi Helpdesk,
When I run the query with "$cm.EnableRequestTrace = $true" I see the following RIS query:

2011.09.26 10:19:53 - RIS.selectcmdevice started - - CM85 - AXLRate: 50 - RISRate: 15
<string />
<CmSelectionCriteria xmlns:xsi="" xmlns:xsd="">

When searching for the phone in RTRM, the realtime information is returned correctly.

Aaron Daniels

New Post
9/26/2011 11:37 AM

Hi Aaron,

It appears that CMShell is formulating a correct request that somehow doesn't reach the RIS-Port.

To dig down a little deeper into this communication failure we would like you to run this PowerShell-script:

#------------------------ RISTest.ps1 ------------------------

param ($cm, $sep = "SEP40F4ECEE98CE")

$ris = $cm.APIServices[[Foxnet.cmservices.CMServiceName]::RIS]
$sc = New-Object foxnet.cmservices.cm85.ris.cmselectioncriteria
$si = New-Object foxnet.cmservices.cm85.ris.selectitem
$state = ""

$sc.SelectBy = "Name"
$sc.Class = "Any"
$sc.Status = "Any"
$sc.Model = [uint32]255
$sc.MaxReturnedDevices = [uint32]200
$si.Item = $sep
$sc.SelectItems = , $si

$ris.SelectCmDevice([ref]$state, $sc)


If you save this as "RISTest.ps1", for example, you can then run

.\RISTest.ps1 $cm

to retrieve realtime information for SEP40F4ECEE98CE, or

.\RISTest.ps1 $cm <Device-Name>

for any other device. However, in the current situation we would expect the operation to fail. Please reply to us with any error messages the script generates.


Foxnet Helpdesk

New Post
9/27/2011 1:00 AM
Accepted Answer 
Hi Helpdesk,

Ah ha..
Upon running the script, I was getting a 403 error. So I started looking at the roles assigned to the user. After a bit of trial and error I found that the user needs the 'Standard CCM Admin Users' role.
My user only had 'Standard AXL API Access' role. This requirement was confirmed here.

To save users from this problem in the future, could these requiremends be added to the CMShell Manual?
Thanks for your help.
Aaron Daniels
New Post
9/27/2011 9:40 AM

Hi Aaron,

We're glad you were able to solve this problem. We will include these requirements in the next version of the manual.


Foxnet Helpdesk

HomeHomeCMShellCMShellGeneralGeneralCM85 - -Realtime not workingCM85 - -Realtime not working

Privacy Statement
Foxnet BV 2011