BlackBerryForums.com : Your Number One BlackBerry Community
     

»Sponsored Links

BlackBerryApps.com Best Sellers



Closed Thread
 
LinkBack Thread Tools
  (#1 (permalink)) Old
andy47 Offline
New Member
 
Posts: 2
Join Date: Mar 2006
Model: 7290
Default User stats / reporting - 03-21-2006, 05:32 AM

Running BES 4.0 SP3. mixture of Exchange 5.5 / Exchange 2003.
600 users on BES. MSDE database.

my management want me to to produce regular reports showing how many times a someone uses their Blackberry during a period of time.

Currently on the BES Admin console this just shows the last time it was used, last time message sent/received etc but I need to show usage over a period of time.

is this possible, if so what do I need to produce this?
   
Sponsored Links
Please Login or Register to Remove these Advertisements!

  (#2 (permalink)) Old
jibi Offline
BlackBerry God
 
jibi's Avatar
 
Posts: 11,305
Join Date: Oct 2004
Location: Jibi's Secret Place
Model: 8900
OS: 4.6.1.174
Carrier: AT&T
Default 03-21-2006, 05:37 AM

without a lot of work and a constant job gathering the statistics and compiling that data into a database for reporting purposes, i don't think it'd be possible. either way, it'll take a lot of work, and likely is not something someone would do out of the kindness of their heart.



detailed monthly billing statements with day-to-day breakdown of data usage comes to mind.


In the beginning the Universe was created. This has made a lot of people very angry and is widely regarded as a bad move.
   
  (#3 (permalink)) Old
Grimlin Offline
CrackBerry Addict
 
Grimlin's Avatar
 
Posts: 662
Join Date: Jun 2005
Location: Signal Mountain, TN
Model: 9700
PIN: Positive Intrinsic Negative???
Carrier: at&t
Default 03-21-2006, 06:51 AM

Quote:
Originally Posted by andy47
my management want me to to produce regular reports showing how many times a someone uses their Blackberry during a period of time.
Depending on your level of logging, you should be able to get this information from the BES logs. You would need to write a script to parse through them, but I believe it is possible.


__________________
Berries Carried:
9700, 8220
9000, 8820, 8800, 7270, 8700c, 7290
7230, 7510, 6510, 5810, 957, 857, 950
   
  (#4 (permalink)) Old
Grimlin Offline
CrackBerry Addict
 
Grimlin's Avatar
 
Posts: 662
Join Date: Jun 2005
Location: Signal Mountain, TN
Model: 9700
PIN: Positive Intrinsic Negative???
Carrier: at&t
Default Just to get you started...and because I couldn't resist the challenge. - 03-21-2006, 07:13 AM

I did a little digging. I have a LogFile Parser that I use to find trends or look at all log entries for a particular user.

Code:
Option Explicit
'On Error Resume Next
Dim FS		'File System Object
Dim CfgFile	'Config File
Dim InFile	'File to be read
Dim InFiles
Dim TheFile
Dim OutFile
Dim OutFilePath
Dim Data	'Data from File
Dim FolderPath	'Path to Folder
Dim objFolder 	'Folder Object
Dim Search	'Text to Search
Dim WshNetwork		'Windows Scripting host Network Object
Dim SFind	'What to find
Dim FindCount
Dim FindCountTotal

FolderPath = InputBox("What LogPath?","LogPath", "C:\Program Files\Research In Motion\BlackBerry Enterprise Server\Logs\" & Year(Date) & Right("00" & Month(Date),2) & Right("00" & Day(Date),2))
Set WshNetwork = CreateObject("WScript.Network")
Set FS=CreateObject("scripting.filesystemobject")
Set objFolder = FS.GetFolder(FolderPath)
Set InFiles = objFolder.Files
OutFilePath = "c:\documents and settings\" & WshNetwork.Username & "\desktop\Parsed.txt"
FindCountTotal = 0

SFind = InPutBox("What Search Criteria?", "Search", WshNetwork.UserName)

Set OutFile = FS.Createtextfile(OutFilePath, True)

For Each TheFile in InFiles
	FindCount = 0
	OutFile.WriteLine("**************************************************")
	OutFile.WriteLine("Begin File: " & TheFile.Name)
	OutFile.WriteLine("**************************************************")
	Set InFile = FS.opentextfile(TheFile.Path, 1)
	Do Until InFile.AtEndOfStream = True
		Data = InFile.Readline
		If Instr(1,Data,SFind,1) Then
			Findcount = FindCount + 1
			FindCountTotal = FindCountTotal + 1
			OutFile.Writeline(Data)
		End If
	Loop
	OutFile.WriteLine("**************************************************")
	OutFile.WriteLine("End File: " & TheFile.Name & " Found: " & FindCount & " Lines")
	OutFile.WriteLine("**************************************************")
Next
OutFile.WriteLine("**************************************************")
OutFile.WriteLine("**************************************************")
OutFile.WriteLine("End of Parsing: Found: " & FindCountTotal & " Total Lines")
OutFile.WriteLine("**************************************************")

InFile.Close
Set InFile = Nothing
OutFile.Close
Set OutFile = Nothing
MsgBox(OutFilePath & " is Ready.")
Here are the strings I searched for. Replace the email address with the user you are looking for.
{who@where.com} Sending message to device
{who@where.com} Receiving message from device

Note: I am not sure if the overhead data is tagged like this as well, so some testing would need to be done. If it is consistent, you should be able to write a script similar to the above that will search multiple days and multiple users and dump totals to a CSV instead of the log data.


__________________
Berries Carried:
9700, 8220
9000, 8820, 8800, 7270, 8700c, 7290
7230, 7510, 6510, 5810, 957, 857, 950
   
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright © 2004-2010 BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.