Welcome to Community Server Sign in | Join | Help

Archiving Report for OCS 2007 R2

The Archiving Report* is meant to provide an easy way to pull information out of the archiving database.  It builds on the functionality provided by the Archiving PowerShell script that was written (http://communicationsserverteam.com/archive/2009/09/28/584.aspx) and adds a GUI interface, the ability to filter by date, and message formatting.  It has been tested against OCS 2007 R2 and SRS 2005.

 

Installation

1.       Open Report Manager – http(s)://<SRS Server>/Reports

2.       Click on New Folder

3.       Give the folder a name – i.e. OCSArchivingReport

4.       Click OK

5.       Click on the folder you just created

6.       Click on Upload File

7.       Browse to the location where you downloaded OCSArchivingReport.rdl and select the file

8.       Click OK to upload the report

9.       Click on New Data Source

10.   Enter LcsLog for the Data Source name

11.   Enter Data Source=<SQL Servername>;Initial Catalog=LcsLog for the Connection String

a.       Replace <SQL Servername> with your SQL server\instance

12.   Select the Windows integrated security radio button

13.   Click OK

14.   Click on OCSArchivingReport

a.       You will see the following error: The report server cannot process this report. The data source connection information has been deleted. (rsInvalidDataSourceReference).  This is normal, since we haven’t linked the report to the data source we just created.

15.   Click on the Properties tab

16.   Click on Data Sources in the left-hand column

17.   Make sure A shared data source radio button is selected

18.   Click the Browse button

19.   Expand OCSArchivingReport and click on LcsLog

20.   Click OK

21.   Click Apply

The report is now linked to the data source and ready to be used.

Using the Report

The report allows you to enter the SIP URI of any 2 users that you want to view archived messages from.  If you enter “Any User” (case sensitive) for either of the user input boxes, you are able to view any message from any user to a specific user as well as any user to any other user.  You can use the Start Date and End Date to narrow down the search to a specific date range.  Once you have entered all of the inputs, click on View Report.

The results of the search are shown.  The First User column represents the sender of the message and the Second User column represents the recipient of the message.  The Message column shows the message that was sent as well any formatting on the message.  Changing Show Toast to Yes will show the toast messages as well as the Toast column.

A big Thank You to Rich Thorp for helping me put together this report!

Doug Deitterick
PFE

* This is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified in the Terms of Use (http://www.microsoft.com/info/cpyright.htm).

Published Friday, February 19, 2010 12:26 PM by ocsteam
Attachment(s): http://communicationsserverteam.com/files/9/powershell_scripts/entry756.aspx

Comments

 

phonelookup4 said:

Thanks
February 22, 2010 8:03 AM
 

wilfried said:

I have installed this report and when running it it will easily consume 5.5GB of memory. Is this normal behaviour?
February 23, 2010 1:45 AM
 

dodeitte said:

@wilfried  How large is your archiving database?  How many rows do you have in the users and messages table?
February 23, 2010 10:52 AM
 

terminalx said:

Hi There

Thanks for this!!!

I however am getting some odd returns:

"

This is a multi-part message in MIME format.

------=_NextPart_058_0565_0641FCFB.6935670C
Content-Type: text/plain; charset=UTF-8;msgr=WAAtAE0AT..........
Content-Transfer-Encoding: binary

IM CONVO HERE
------=_NextPart_058_0565_0641FCFB.6935670C
Content-Type: text/rtf
Content-Transfer-Encoding: binary

{\rtf1\ansi\ansicpg1252\deff0\deflang4105{\fonttbl{\f0\fnil\fcharset0 MS Shell Dlg 2;}{\f1\fnil MS Shell Dlg 2;}}
{\colortbl ;\red0\green0\blue0;}
{\*\generator Msftedit 5.41.15.1515;}\viewkind4\uc1\pard\tx720\cf1\lang1033\f0\fs20 IM CONVO HERE?\lang4105\f1\par
}

------=_NextPart_058_0565_0641FCFB.6935670C--

"

Any idea how to fix that up? Perhaps it's because I'm running this against a NON R2 server?
February 23, 2010 7:04 PM
 

dodeitte said:

@terminalx  There's a good chance it's because you're using it against an R1 archiving database.  I didn't run across this when testing against R2.  You would need to edit the report and add additional regex expressions to remove the unwanted characters.
February 24, 2010 9:24 AM
 

wilfried said:

@dodeitte I tested this against an empty database. 0 messages.
February 25, 2010 6:28 AM
 

terminalx said:

@dodeitte Yeah, that would be nice, but I'm really not good at powershell, let along regex. I'm learning slowly, but I don't know where to start. Anyone feel like helping me out? :-) I'm sure there are others with this issue.

It should be a matter of identifying the Mime, strip out the junk and just format the text/rtf string.

But, I'm not that smart.
February 25, 2010 7:50 PM
 

AAnovel said:

I don't think so 5.5GB RAM is the normal or minimum required part of installation, for me is 2GB RAM is a minimum..
March 1, 2010 11:16 PM
 

demyanlox said:

i cant make it work
March 5, 2010 2:17 PM
 

grivinxz said:

Me too :(  I can't make it work, such as   demyanlox
March 11, 2010 8:26 AM
 

dodeitte said:

@demyanloz & @grivinxz

What issues are you running into?  What isn't working?
March 16, 2010 9:12 PM
 

ngoctrongdaok03 said:

sobakawa pillow information<br />Read more: <a href="http://www.sobakawapillow.net">sobakawa pillow</a>, <a href="http://www.sobakawapillow.net">buckwheat pillow</a>, <a href="http://www.sobakawapillow.net">organic pillow</a>
March 17, 2010 11:26 PM
 

DaveLee said:

Thank you for this! Works great
March 19, 2010 8:17 AM
 

cliphairextensions1 said:

Hello,
I have installed it step by step that is mentioned here. but whenever, i try to run application, my machine goes down and I had to force it to restart. why is this so?
March 24, 2010 4:32 AM
 

ngoctrongdaok05 said:

Read more: <a href="http://www.koalaswimsuits.com">mens swimwear</a>, <a href="http://chastityproducts.com">chastity products</a>, ...
March 25, 2010 8:14 PM
 

ngoctrongdaok05 said:

Read more: "mens swimwear":http://www.koalaswimsuits.com , "chastity products":http://chastityproducts.com , ...
March 25, 2010 9:44 PM
 

yergg said:

Has anyone corrected the issue where the memory climbs upwards of 5GB on the process and crashes the system?
March 30, 2010 9:27 AM
 

gallwapa said:

It seems that this report by default will pull the ENTIRE CURRENT MONTH for every user...this is a problem. After viewing it the first time I nearly brought down the Archiving DB server which would shut down OCS.  At any rate, I'm trying to modify the report now to point to an invalid use so the quantity of messages won't be huge.

March 31, 2010 1:16 PM
 

dodeitte said:

@gallwapa

Thanks for the feedback.  I've added that to the list for a future update.
April 5, 2010 2:42 PM
 

dodeitte said:

@yergg

Are you seeing an issue with memory usage?  If so, how large is your archiving database?  How many rows do you have in the users, messages and conferencemessages tables?
April 5, 2010 2:49 PM
 

TMing said:

I get frequent incorrect reports.  Other User's conversation archives are return that I have never established a chat session with.  Anyone else seeing this?  Thank you.  
April 6, 2010 4:13 PM
 

TMing said:

@gallwapa, you can prevent. Go to the properties of the OCS Archive Report, parameter and deselect the "has Default" for Start Date.  Once you select a start date, the greyed out End date will become available.  
April 6, 2010 4:18 PM
 

Jcoons72 said:

I got the report to work, but it sends the same data multiple times.  is there a fix for this?  I see each message anywhere from 4 to 15 times.
April 7, 2010 7:06 PM
 

gallwapa said:

Thanks, I worded my post wrong - what I meant to say was that I was currently modifying that property.  May be helpful to add a link that defines "toast" as well - I've been using OCS for over a year and I had to look up the term.
April 8, 2010 11:28 AM
 

gallwapa said:

Also in response to Jcoons72,  I noticed with one report we ran from 3/1/2010 to 3/20/2010 for a particular user had nearly every message from the beginning of the month in duplicate, but messages at the end of the report appeared correctly.  Unknown cause, but willing to duplicate if it helps.
April 8, 2010 11:30 AM
 

TMing said:

Anyone else have a problem with the accuracy on the report with this tool?  I.E.)  If I run a report between myself and a colleague for the last 30 days of conversations we had, the report returns my conversations I had with other users mixed in with my conversation between my colleague and I.  
April 9, 2010 10:55 AM
 

Mikelangelo said:

HELLOY!!!
April 16, 2010 6:06 AM
 

laptoptoner said:

I don't having any problem yet. :)
May 4, 2010 12:02 PM
 

justind01 said:

This is a great start, but like TMing I'm seeing incorrect information mixed in.  For a baseline, I can pull a report of my own conversations and see things that I've never typed attributed to me.

Very good beginning, but potentially very scary if you're using this information for HR/compliance purposes.
May 18, 2010 1:17 PM
 

kchannels said:

When I try to access http(s)://<SRS Server>/Reports I get the generic

HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

Detailed Error InformationModule IIS Web Core
Notification MapRequestHandler
Handler StaticFile
Error Code 0x80070002
Requested URL http://ocs:80/Reports
Physical Path C:\inetpub\wwwroot\Reports
Logon Method Anonymous
Logon User Anonymous


(Yes I changed <SRS Server> to my ocs server name of ocs and I tried http and https) :)

I checked the physical path and there is no reports folder under wwwroot.

What am I missing?
May 19, 2010 9:52 AM
 

epfannenstiel said:

For some reason the only messages I see are toast messages.  Is there a reason for this?
June 11, 2010 10:13 AM
 

web tasarim said:

thank you very nice web page wonderful
July 8, 2010 6:54 AM
 

Jon said:

Thank you for this, however I have exactly the same issue as epfannenstiel where the messages are shown as blank unless the Toast flag is true.

If Toast is false the message is blank, I can use other tools to view the archive and see the messages so I know the data is there.

Any suggestions?
July 14, 2010 7:40 AM
 

dalemench said:

To all the people who have written about incorrect recipients listed:
The query in the LcsLog dataset has a join error.  The joins between ConferenceMessages and ConferenceMessageRecipientList only join on messageId, overlooking the remainder of the composite key.  You can fix it by adding "and cmr.SessionIdTime = ConferenceMessages.SessionIdTime and cmr.SessionIdSeq = ConferenceMessages.SessionIdSeq".  Be careful.  This join occurs 3 separate times, one of them referencing ConferenceMessages_1 instead.
July 15, 2010 3:01 PM
 

prashuxp said:

thanks for the script. i installed it & its working great.
I need a help. Can u tell me how to change the Time format for UTC to GMT+5:30?
Hope for your quick respose.

Once again Thanks.
(prashuxp@gmail.com; amitinu@gmail.com)
July 19, 2010 8:14 AM
 

wbgfire said:

dalemench,
I tried to add your fix as you stated and I get query error.  I may be placing it in the wrong place.  Can you post the exact SQL from Begin to End for me?  Thanks in advance
July 27, 2010 3:35 PM
 

FLelite said:

I am getting some odd returns too!?!? Did anyone get the fix to work?
July 27, 2010 5:45 PM
 

dodeitte said:

@dalemench et al

We fixed the join error that dalemench found.  I will have a new version uploaded soon.  Once the new version is posted, I'd appreciate feedback on whether that fixes the issues that have been described.
July 28, 2010 10:14 PM
Anonymous comments are disabled
Powered by Community Server, by Telligent Systems