Search | Register | Login 
CMShell > Discussion
Nederlands English
HomeHomeCMShellCMShellGeneralGeneralCM85 - -Realtime not workingCM85 - -Realtime not working
Previous
 
Next
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.

Sincerely,

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 - 10.10.10.10 - CM85 - AXLRate: 50 - RISRate: 15
<string />
<CmSelectionCriteria xmlns:xsi="http://www.w3.org/2001/XMLSchema-inst..." xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <MaxReturnedDevices>200</MaxReturnedDevices>
  <Class>Any</Class>
  <Model>255</Model>
  <Status>Any</Status>
  <SelectBy>Name</SelectBy>
  <SelectItems>
    <SelectItem>
      <Item>SEP40F4ECEE98CE</Item>
    </SelectItem>
  </SelectItems>
</CmSelectionCriteria>

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

Thanks,
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.

Sincerely,

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.

Sincerely,

Foxnet Helpdesk

 
Previous
 
Next
HomeHomeCMShellCMShellGeneralGeneralCM85 - -Realtime not workingCM85 - -Realtime not working


Privacy Statement
Foxnet BV 2011