PDA

View Full Version : number of blackberry mailboxes


mainguy
09-26-2006, 04:13 PM
I need to write code to find a number of exchange mailboxes that have blackberry enabled. The code is run on an XP client (query done via C++)

Should I find it by scanning the log directory on the BB server.

Registry keys:
LogRoot: C:\Program Files\Research In Motion\BlackBerry Enterprise Server\Logs\
Mailbox Agent: DebugLogIdent(MAGT)

//servername/C$/Program Files/Research In Motion/BlackBerry Enterprise Server/Logs/

search for a few latest logs with MAGT in the log name.

There are lines like this in the log files:

[40522] (09/23 00:01:11):{0x204} {my_email@<hidden>} ReloadPagerStats() failed

Someone mentioned to do a mssql connection to the BB server ... But I haven't found much information about that.

Any pointers would be appreciated.

Thanks,
m.

blablabla13
09-27-2006, 07:27 PM
i guess it would easiest to assume all users listed on the BES have mailboxes, but that may not always be true. Maybe the best thing is to grep the logs for "User Setting" and then take out all duplicates.

If you want to query sql, check the userconfig table under displayname, or smtpaddress, or just count the rows. (but, these users may still exist if their mailboxes, or AD accounts and mailboxes were deleted... I think grep out "User settings" might be best, the remove duplicates and do a line count.

mainguy
09-29-2006, 12:14 PM
Thanks for your reply.
- m.