BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 03-20-2006, 04:32 PM   #1 (permalink)
New Member
 
Join Date: Mar 2006
Model: 7100T
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default How can I count number of messages from log file

Please Login to Remove!

Hi,

I have a few questions regarding BES log files. I have BES R4.0 with MS Exchange server.

I need to write a script to generate a few statistics from BES log files. The stats I want are

Number of attempts in sending messages to handhelds
Number of successes in sending messages to handhelds
Number of attempts in receiving messages from handhelds
Number of successes in receiving messages from handhelds

Do anyone know how can I compute them from log file?

Thank you for help in advance.
Offline  
Old 03-20-2006, 06:12 PM   #2 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Apr 2005
Location: The Netherlands
Model: 8800
Carrier: Vodafone
Posts: 374
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

The best thing you can do is download the resource kit and you can obtain this and a lot more statistics.

Regards,
Bob
Offline  
Old 03-21-2006, 01:56 PM   #3 (permalink)
New Member
 
Join Date: Mar 2006
Model: 7100T
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default test

Thank you for the answer Bob.

I checked out the resource kit. I found out how to count number of emails sent TO handheld, but I couldnxxx8217;t figure out how to count number of emails sent FROM handheld. Any insights?

Thanks again
Offline  
Old 03-21-2006, 05:36 PM   #4 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Apr 2005
Location: The Netherlands
Model: 8800
Carrier: Vodafone
Posts: 374
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Look for the HistoricalStats:

Quote:
Interpreting the results of the HistoricalStats query
Results are in a .csv file HistoricalStats_<MMDD>.<#>.csv, where MMDD is the month and day, and <#> is the number of agent restarts that the tool finds in the logs that it processes. If you specified all, the file name is HistoricalStats_<MMDD>.<#>.csv.
-u all/<username>
xxx8226;Type all to query all users in the logs, or type the user name to query a specific user.
xxx8226;Microsoft Exchange: SMTP name
xxx8226;IBM Lotus Domino: canonical name
xxx8226;GroupWise: first name and last name
[-input <userlist.txt>]
xxx56256;xxx56416;Specify a user list file to check a group of users. The list file can only contain usersxxx8217; names and must be new-line delimited.
xxx8226;SMTP name for Microsoft Exchange
xxx8226;common name for IBM Lotus Domino
xxx8226;first name and last name for GroupWise
Note: Using this parameter overrides the value specified in -u.
[-agent <acronym>]
xxx56256;xxx56416;Type the acronym for the BlackBerry Messaging Agent logs if it is not MAGT.
[-dispatcher <acronym>]
xxx56256;xxx56416;Type the acronym for the BlackBerry Dispatcher logs if it is not DISP.
[-l <c:\folder\>]
xxx56256;xxx56416;Type the location of log files if they are not in the same folder as the tool.
[-output user/all]
xxx56256;xxx56416;Type user to create one file for each user, or all to create one file for all users.
[-debug <filename.txt>]
xxx56256;xxx56416;Type -debug and a file name if you want to produce more detailed output for debugging purposes.
Note: If you do not specify a file, the debug information appears on-screen.
[-?/-help]
xxx56256;xxx56416;Type either -? or -help to receive help for the tool.
Note: No other parameters are required when you use this parameter.
Parameter Procedure
Column
Description
Server
displays the messaging server on which the user resides (not available on GroupWise servers)
User
displays the userxxx8217;s
xxx8226;Microsoft Exchange: SMTP name
xxx8226;IBM Lotus Domino: canonical name
xxx8226;GroupWise: first name and last name
Display name
displays the name of the BlackBerry Dispatcher
PIN
displays the userxxx8217;s handheld PIN
BES SRPID
displays the SRPID for the BlackBerry Enterprise Server on which the user resides
Messages to
displays the number of messages sent to the handheld
Messages from
displays the number of messages sent from the handheld
replied/forwarded from

displays the number of messages replied to or forwarded from the handheld; this is a subset of sent from handheld
Attachment requests
displays the number of attachment requests sent from the handheld
OTAFM TO
displays the number of wireless message reconciliation requests sent to the handheld; this is wireless folder-management data
OTAFM FROM
displays the number of wireless message reconciliation requests sent from the handheld
CICAL TO (in bytes)
displays the number of CICAL bytes sent to the handheld; this is wireless calendar data
CICAL FROM (in bytes)
displays the number of CICAL bytes sent from the handheld
Regards,
Bob
Offline  
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-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.