User Guide
User Guide
BlackBerry Enterprise Server Resource Kit Version 4.1 Service Pack 2 User Guide Last modified: 13 February 2007 Document ID: 11573821 Version 2 At the time of publication, this documentation is based on the BlackBerry Enterprise Server Version 4.1 Service Pack 2. 2007 Research In Motion Limited. All Rights Reserved. The BlackBerry and RIM families of related marks, images, and symbols are the exclusive properties of Research In Motion Limited. RIM, Research In Motion, BlackBerry, Always On, Always Connected and the envelope in motion symbol are registered with the U.S. Patent and Trademark Office and may be pending or registered in other countries. IBM, Lotus, Lotus Notes, Domino, DB2, and DB2 Universal Database are trademarks of International Business Machines. Microsoft, Windows, Excel, and SQL Server are trademarks of Microsoft Corporation. Novell and GroupWise are trademarks of Novell, Inc. GSM is a trademark of GSM MOU Association. All other brands, product names, company names, trademarks, and service marks are the properties of their respective owners. The BlackBerry device and/or associated software are protected by copyright, international treaties, and various patents, including one or more of the following U.S. patents: 6,278,442; 6,271,605; 6,219,694; 6,075,470; 6,073,318; D445,428; D433,460; D416,256. Other patents are registered or pending in various countries around the world. Visit www.rim.com/patents for a list of RIM [as hereinafter defined] patents. This document is provided as is and Research In Motion Limited and its affiliated companies (RIM) assume no responsibility for any typographical, technical, or other inaccuracies in this document. In order to protect RIM proprietary and confidential information and/or trade secrets, this document may describe some aspects of RIM technology in generalized terms. RIM reserves the right to periodically change information that is contained in this document; however, RIM makes no commitment to provide any such changes, updates, enhancements, or other additions to this document to you in a timely manner or at all. RIM MAKES NO REPRESENTATIONS, WARRANTIES, CONDITIONS, OR COVENANTS, EITHER EXPRESS OR IMPLIED (INCLUDING WITHOUT LIMITATION, ANY EXPRESS OR IMPLIED WARRANTIES OR CONDITIONS OF FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, MERCHANTABILITY, DURABILITY, TITLE, OR RELATED TO THE PERFORMANCE OR NON-PERFORMANCE OF ANY SOFTWARE REFERENCED HEREIN OR PERFORMANCE OF ANY SERVICES REFERENCED HEREIN). IN CONNECTION WITH YOUR USE OF THIS DOCUMENTATION, NEITHER RIM NOR ITS RESPECTIVE DIRECTORS, OFFICERS, EMPLOYEES, OR CONSULTANTS SHALL BE LIABLE TO YOU FOR ANY DAMAGES WHATSOEVER BE THEY DIRECT, ECONOMIC, COMMERCIAL, SPECIAL, CONSEQUENTIAL, INCIDENTAL, EXEMPLARY, OR INDIRECT DAMAGES, EVEN IF RIM HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES, INCLUDING WITHOUT LIMITATION, LOSS OF BUSINESS REVENUE OR EARNINGS, LOST DATA, DAMAGES CAUSED BY DELAYS, LOST PROFITS, OR A FAILURE TO REALIZE EXPECTED SAVINGS. This document might contain references to third-party sources of information, hardware or software, products or services and/or third-party web sites (collectively the Third-Party Information). RIM does not control, and is not responsible for, any Third-Party Information, including, without limitation the content, accuracy, copyright compliance, compatibility, performance, trustworthiness, legality, decency, links, or any other aspect of Third-Party Information. The inclusion of Third-Party Information in this document does not imply endorsement by RIM of the Third-Party Information or the third-party in any way. Installation and use of Third-Party Information with RIM's products and services may require one or more patent, trademark, or copyright licenses in order to avoid infringement of the intellectual property rights of others. Any dealings with Third-Party Information, including, without limitation, compliance with applicable licenses and terms and conditions, are solely between you and the third-party. You are solely responsible for determining whether such third-party licenses are required and are responsible for acquiring any such licenses relating to Third-Party Information. To the extent that such intellectual property licenses may be required, RIM expressly recommends that you do not install or use Third-Party Information until all such applicable licenses have been acquired by you or on your behalf. Your use of Third-Party Information shall be governed by and subject to you agreeing to the terms of the Third-Party Information licenses. Any Third-Party Information that is provided with RIM's products and services is provided as is. RIM makes no representation, warranty or guarantee whatsoever in relation to the Third-Party Information and RIM assumes no liability whatsoever in relation to the Third-Party Information even if RIM has been advised of the possibility of such damages or can anticipate such damages.
Research In Motion Limited 295 Phillip Street Waterloo, ON N2L 3W8 Canada Published in Canada
Research In Motion UK Limited Centrum House, 36 Station Road Egham, Surrey TW20 9LF United Kingdom
Contents
1 BlackBerry Enterprise Server Resource Kit..................................................................................................... 11 Product overview...............................................................................................................................................11 BlackBerry Domain Administration History tool ..................................................................................11 BlackBerry Syslog tool ..............................................................................................................................11 Log analysis tools...................................................................................................................................... 12 Log Monitor tool........................................................................................................................................ 12 Message Receipt Confirmation tool ......................................................................................................13 Upgrade IT Policy Template tool............................................................................................................13 User Administration tool .........................................................................................................................14 Support for the BlackBerry Enterprise Server Resource Kit ......................................................................15 BlackBerry Domain Administration History tool ...........................................................................................17 Requirements and considerations................................................................................................................. 17 Download the BlackBerry Enterprise Server Resource Kit ........................................................................ 17 Prepare to run the BlackBerry Domain Administration History tool .......................................................18 Generating a report of changes made in your BlackBerry environment.................................................18 Generate a report .....................................................................................................................................18 Interpreting the configuration changes in the .csv file output messages.......................................19 Interpreting debug log file messages....................................................................................................19 3 BlackBerry Syslog tool........................................................................................................................................21 Requirements and considerations................................................................................................................. 21 Download the BlackBerry Enterprise Server Resource Kit ........................................................................ 21 Installing the BlackBerry Syslog tool............................................................................................................ 21 Install the BlackBerry Syslog service..................................................................................................... 21 Configure the notification delivery settings........................................................................................ 22 Specify the port numbers on which the BlackBerry Syslog tool listens .......................................... 22 Preparing to monitor the BlackBerry Enterprise Server ........................................................................... 23 Change who receives notification messages and nightly reports ................................................... 23 Specify which BlackBerry services and events to monitor................................................................ 24 Interpreting notification messages....................................................................................................... 25 Interpreting nightly reports ...................................................................................................................26
Output files...............................................................................................................................................26 4 Log analysis tools ...............................................................................................................................................29 Requirements and considerations................................................................................................................29 Download the BlackBerry Enterprise Server Resource Kit files...............................................................29 Prepare to run the log analysis tools ...........................................................................................................30 Tracking message flow through the BlackBerry Enterprise Server.........................................................30 Run the Messageflow tool......................................................................................................................30 Interpreting the results of the Messageflow query.............................................................................31 Differentiating nonresponsive threads from slow threads....................................................................... 32 Run the NoResponseCheck tool............................................................................................................ 33 Interpreting the results of the NoResponseCheck query.................................................................. 33 Identifying notification delays...................................................................................................................... 34 Run the DelayedNotifications tool ....................................................................................................... 34 Interpreting the results of the DelayedNotifications query ............................................................. 35 Identifying user accounts that might be outside of a wireless coverage area...................................... 35 Run the OutofCoverage tool.................................................................................................................. 35 Interpreting the results of the OutofCoverage query........................................................................36 Monitoring the number of messages in the queue....................................................................................36 Run the Pending tool .............................................................................................................................. 37 Interpreting the results of the Pending query .................................................................................... 38 Identifying Microsoft Exchange MAPI/CDO issues .................................................................................. 38 Run the MapiCdoErrors tool .................................................................................................................. 38 Interpreting the results of the MapiCdoError query ..........................................................................39 Checking timing statistics on rescan events ..............................................................................................39 Run the AvailIndex tool ..........................................................................................................................39 Interpreting the results of the AvailIndex query ................................................................................40 Generating detailed statistics........................................................................................................................41 Run the HistoricalStats tool....................................................................................................................41 Interpreting the results of the HistoricalStats query......................................................................... 42 Determining BlackBerry MDS Connection Service use patterns ............................................................ 43 Run the MDSPushvsPull tool ................................................................................................................. 43 Interpreting the results of the MDSPushvsPull query .......................................................................44 5 Log Monitor tool..................................................................................................................................................45 Requirements and considerations................................................................................................................45
Download the BlackBerry Enterprise Server Resource Kit files...............................................................45 Prepare to run the Log Monitor tool ............................................................................................................45 Preparing to monitor the BlackBerry Enterprise Server ...........................................................................45 Environment variables that the Log Monitor tool uses......................................................................46 Run the Log Monitor tool........................................................................................................................ 47 Log Monitor tool examples..................................................................................................................... 47 6 Message Receipt Confirmation tool............................................................................................................... 49 Requirements and considerations................................................................................................................49 Download the BlackBerry Enterprise Server Resource Kit files...............................................................49 Install the Message Receipt Confirmation tool..........................................................................................49 Install the Message Receipt Confirmation service.............................................................................50 Preparing to monitor the BlackBerry Enterprise Server ............................................................................51 Set up the Message Receipt Confirmation tool ...................................................................................51 Viewing the status of messages sent to BlackBerry devices.................................................................... 52 Message Receipt Confirmation client status fields............................................................................ 52 Sample Message Receipt Confirmation tool messages..................................................................... 53 Message Receipt Confirmation tool log files.............................................................................................. 53 Upgrade IT Policy Template tool .....................................................................................................................55 Requirements and considerations................................................................................................................55 Download the BlackBerry Enterprise Server Resource Kit files...............................................................55 Preparing the input file..................................................................................................................................55 Upgrade IT Policy Template tool input file requirements .................................................................55 Prepare the input file in SQL format ....................................................................................................56 Prepare the input file in CSV format .................................................................................................... 57 Run the Upgrade IT Policy Template tool ...................................................................................................58 Upgrade IT Policy Template log files ...........................................................................................................59 User Administration tool................................................................................................................................... 61 Requirements and considerations.................................................................................................................61 Download the BlackBerry Enterprise Server Resource Kit files...............................................................62 Installing the User Administration tool.......................................................................................................62 Install the User Administration service................................................................................................62 User Administration service log files....................................................................................................64 User Administration audit log files.......................................................................................................65
Prepare to run the User Administration client....................................................................................65 Specify a local system account to run the User Administration tool ..............................................65 Client password authentication ........................................................................................................... 66 User Administration tool authentication for role-based administration........................................ 67 Managing user accounts................................................................................................................................ 67 Add a user account to the BlackBerry Enterprise Server................................................................... 67 Add a user account to a group...............................................................................................................68 Add an existing user account to a group ............................................................................................ 69 Remove a user account from the BlackBerry Enterprise Server...................................................... 69 Remove a user account from a group................................................................................................... 70 Move a user account to a different BlackBerry Enterprise Server ................................................... 70 Move a user account to a different group............................................................................................. 71 Find a user account on a BlackBerry Enterprise Server..................................................................... 72 Change user account settings ............................................................................................................... 72 Add a user account to a software configuration................................................................................. 73 Remove a user account from a software configuration ..................................................................... 73 List the groups in a BlackBerry Domain............................................................................................... 74 Managing BlackBerry devices....................................................................................................................... 74 Set the BlackBerry device password..................................................................................................... 74 Set owner information on a BlackBerry device ................................................................................... 75 Delete data from the BlackBerry device memory and make the BlackBerry device unavailable 76 Purge pending messages ....................................................................................................................... 76 Resend the peer-to-peer encryption key to the BlackBerry device................................................. 77 Resend a service book............................................................................................................................. 77 Obtain or clear user account statistics........................................................................................................ 78 Interpreting the results of a statistics query for a user account ...................................................... 78 Clear user account statistics..................................................................................................................80 Sending notification messages to BlackBerry devices..............................................................................80 Send a PIN message ...............................................................................................................................80 Send an email message ...........................................................................................................................81 Managing email and folder redirection....................................................................................................... 82 Turn on email redirection ....................................................................................................................... 82 Turn off email redirection....................................................................................................................... 82 List the folders available for redirection .............................................................................................. 83 Turn on folder redirection ...................................................................................................................... 83 Turn off folder redirection ......................................................................................................................84 Managing IT policies and IT policy rules .....................................................................................................85
Set IT policy rules for a user account....................................................................................................85 List the IT policies in the BlackBerry Configuration Database.........................................................86 Obtaining BlackBerry device information................................................................................................... 87 List the applications that are available on one or more BlackBerry devices.................................. 87 List the BlackBerry devices on which a specified application is installed ...................................... 87 List the statistics for BlackBerry devices..............................................................................................88 List the modules and .cod files that are available on a BlackBerry device .....................................89 Obtain BlackBerry Enterprise Server statistics ..........................................................................................90 Interpreting the results of a statistics query for a BlackBerry Enterprise Server ..........................91 Display the status of the User Administration service...............................................................................91 Parameters available for the User Administration tool ............................................................................92 9 Upgrading and removing the BlackBerry Enterprise Server Resource Kit ..............................................97 Upgrading the BlackBerry Enterprise Server Resource Kit tools ............................................................97 Upgrade the BlackBerry Syslog tool.....................................................................................................97 Upgrade the log analysis tools..............................................................................................................97 Upgrade the User Administration tool.................................................................................................98 Removing the BlackBerry Enterprise Server Resource Kit tools..............................................................98 Remove the BlackBerry Domain Administration History tool ..........................................................98 Remove the BlackBerry Syslog tool ..................................................................................................... 99 Remove the log analysis files................................................................................................................ 99 Remove the Log Monitor tool................................................................................................................ 99 Remove the Message Receipt Confirmation tool .............................................................................. 99 Remove the Upgrade IT Policy Template tool................................................................................... 100 Remove the User Administration tool ................................................................................................ 100 Appendix A: Error codes for the User Administration tool.........................................................................101
1
BlackBerry Enterprise Server Resource Kit
Product overview Support for the BlackBerry Enterprise Server Resource Kit
Product overview
The BlackBerry Enterprise Server Resource Kit is a collection of tools that you download from the BlackBerry web site. You can use the BlackBerry Enterprise Server Resource Kit to streamline management tasks, administer user accounts, monitor events, collect statistics, troubleshoot issues with the BlackBerry Enterprise Server, and analyze the BlackBerry Enterprise Server performance. You can use the BlackBerry Enterprise Server Resource Kit tools with the BlackBerry Enterprise Server for Microsoft Exchange, the BlackBerry Enterprise Server for IBM Lotus Domino, the BlackBerry Enterprise Server for Novell GroupWise, or the BlackBerry Enterprise Server for MDS Applications.
BlackBerry Syslog service (BESSyslog.exe), which runs as a Microsoft Windows service. BlackBerry Syslog client (BESysLogConfig.exe), which you install on and run from the same computer as the BlackBerry Syslog service. The BlackBerry Syslog client opens as a configuration window in which you can configure nightly reports, notifications, and alerts; customize event ID descriptions; and specify recipients of the notifications and nightly reports. You can also specify the BlackBerry services and each BlackBerry Enterprise Server that the BlackBerry Syslog tool monitors.
12
You use the Message Receipt Confirmation client (MessageConfirmConfig.exe) to perform the following functions: set the configuration information that the Message Receipt Confirmation service uses; for example, you can set the user accounts that you want the Message Receipt Confirmation service to monitor, how it monitors those accounts, how frequently it sends messages, and how it delivers timeout notifications monitor the status of the messages that the Message Receipt Confirmation service sends to BlackBerry devices
13
You can upgrade the IT policy template using the Upgrade IT Policy Template tool from a local or client computer without upgrading the BlackBerry Enterprise Server. The tool is designed to back up the template table before it makes any changes.
Gather statistics about user accounts, BlackBerry devices, and the BlackBerry Enterprise Server
You can use the User Administration tool to obtain statistics about user accounts, BlackBerry devices, and the BlackBerry Enterprise Server. For example, you can obtain statistics for individual user accounts, all user accounts on a BlackBerry Enterprise Server, or all user accounts in a group.
14
15
16
2
BlackBerry Domain Administration History tool
Requirements and considerations Download the BlackBerry Enterprise Server Resource Kit Prepare to run the BlackBerry Domain Administration History tool Generating a report of changes made in your BlackBerry environment
! !
Do not run the BlackBerry Domain Administration History tool on the same computer on which the BlackBerry Enterprise Server resides. Verify that your environment uses Microsoft SQL Server Desktop Engine (MSDE) or Microsoft SQL Server for the BlackBerry Configuration Database. The BlackBerry Domain Administration tool also support IBM DB2 UDB for the BlackBerry Enterprise Server for IBM Lotus Domino. The BlackBerry Domain Administration History tool must have a connection to the BlackBerry Configuration Database. You must have the Server Administrator permission for the BlackBerry Configuration Database. If you use an IBM DB2 UDB, you must install an IBM DB2 UDB client on the computer on which you plan to run the BlackBerry Domain History tool. If you use an IBM DB2 UDB, verify that the BlackBerry Configuration Database belongs to the database catalog that resides on the same computer on which you plan to run the BlackBerry Domain History tool.
! ! ! !
Generate a report
1. At the command prompt, switch to the folder in which AdminHistory.exe resides. 2. Run the BlackBerry Domain Administration History tool with the following parameters. The parameters listed in brackets are optional.
Parameter -n <database address> -db <database name> [-SQLAuth] [-login] <database login name> [-db2] <database name> [-db2schema] <schema name> [-o] <output file name> Steps > > > > > > > Type the host name, computer name, or IP address of the computer that hosts the BlackBerry Configuration Database. You do not require this parameter if you use an IBM DB2 UDB. Type the name of the BlackBerry Configuration Database. By default, the name is BESMgmt. Type -sqlauth to use SQL authentication or IBM DB2 UDB authentication. By default, the BlackBerry Domain Administration History tool uses Microsoft Windows authentication. Type the login name, if applicable. Type the password, if applicable. Type -db2 if the BlackBerry Configuration Database runs on an IBM DB2 UDB server. Type the IBM DB2 UDB schema name. By default, the name is BESADMIN. Type the output file path and name. By default, the BlackBerry Domain Administration History tool uses the name AdminHistory<MMDDYY>.csv. The output file resides in the same folder as the tool. Specify the number of rows to process. By default, the tool processes all the data in the ServerConfigHistory table. If you do not remove the previous output file, the new output file appends to the previous file. The average limit is 1000 to 2000 lines. Type -x to start logging to the specified file.
Platform: This parameter applies to the BlackBerry Enterprise Server for IBM Lotus Domino only. Platform: This parameter applies to the BlackBerry Enterprise Server for IBM Lotus Domino only.
[-l] <limit>
>
>
18
Parameter [-?]
Steps > Type -? to receive information about the BlackBerry Domain Administration History tool. The BlackBerry Domain Administration History tool does not require other parameters when you use this parameter.
Example: Running the BlackBerry Domain Administration History tool using SQL authentication
adminhistory -n server01 -db kmtestd -sqlauth -login clyde warren -password password1 -o output.csv -l 1000 -x C:\logs\logfilename.txt
Example: Running the BlackBerry Domain Administration History tool using IBM DB2 UDB authentication
adminhistory -db kmtestd -sqlauth -db2 -db2schema <schema name> -login clyde warren -password password1 -o output.csv -l 1000 -x C:\logs\logfilename.txt
19
Example: Debug log file entries for an unsuccessful connection attempt to the BlackBerry Configuration Database
<12:10:30> Attempting Database Connection... <12:11:38> Database Connection Failed! <12:11:38> Database Error: COM Error 0x80004005 in ADOConnectionItem:ConnectToDB() [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied. Unspecified error <12:11:38> BlackBerry Domain Administration History Tool Terminating... <12:11:38> Attempting To Write Debug Log...
20
3
BlackBerry Syslog tool
Requirements and considerations Download the BlackBerry Enterprise Server Resource Kit Installing the BlackBerry Syslog tool Preparing to monitor the BlackBerry Enterprise Server
! ! ! ! !
Do not run the BlackBerry Syslog tool on the same computer on which the BlackBerry Enterprise Server runs. The BlackBerry Syslog tool must run as a Microsoft Windows service. BESSysLog.exe and BESSysLogConfig.exe must be the same version and reside in the same folder on the same computer. If you have an environment with different BlackBerry Enterprise Server platforms, you must install and configure a separate copy of the BlackBerry Syslog tool for each platform. Only one instance of the BlackBerry Syslog tool can run on a computer. The BlackBerry Dispatcher and the BlackBerry Messaging Agent log files must be set to level 3.
3. At the command prompt, switch to the folder in which the BlackBerry Syslog tool resides. 4. Type bessyslog -install <platform>, where <platform> is one of the following values: exchange domino groupwise
6. In the Microsoft Windows Services window, start the BlackBerry Syslog Service.
Example: Installing the BlackBerry Syslog service with a login account and starting the BlackBerry Syslog tool automatically
Specify the port numbers on which the BlackBerry Syslog tool listens
The BlackBerry Syslog service receives syslog messages on a socket. You must configure the SyslogLevel and SysLogHost registry keys on the BlackBerry Enterprise Server to enable the BlackBerry services to write to this socket.
22
1.
2. For each BlackBerry service that you want to monitor, change the SysLogLevel and SysLogHost registry keys for that service.
Key SysLogLevel SysLogHost Steps 1. > If the SysLogLevel registry key does not exist, create a DWORD value called SysLogLevel. To change the existing registry key, add the host name or IP address and port number (514) of the computer on which the BlackBerry Syslog service runs, using one of the following formats: <ip address>:514 <hostname>:514 <localhost>:4071, <localhost>:4070, <xx.xx.xx.xx>:514. Note: If the SysLogHost key already exists, append the entries to the existing key; do not remove the original registry key information from the SysLogHost key. You must separate each entry with a comma. 2. Right-click SysLogLevel. Type 3.
If you monitor a large number of events, the events can create a high volume of traffic on the BlackBerry Enterprise Server. Monitor level 3 events to avoid a high volume of traffic. By default, the BlackBerry Syslog tool limits the number of notification messages sent to users in a specified period of time. The notification message frequency information resides at HKEY_LOCAL_MACHINE\SOFTWARE\Research In Motion\BlackBerry Syslog Server in the following registry keys:
Key OneMinuteThreshold FiveMinuteThreshold FifteenMinuteThreshold SixtyMinuteThreshold Default value 5 10 15 30
23
Specify filters and customized event descriptions for each user account
1. To open the BlackBerry Syslog client, double-click BESSysLogConfig.exe. 2. In the list of user accounts, click a user name. 3. Click Edit. 4. Perform any of the following tasks:
Task Create a customized subject line for a notification message for the user account. Steps 1. Click Alerts. 2. Click Add. 3. Type a BlackBerry service event ID and customized description. Note: Only event IDs corresponding to actual BlackBerry service event IDs trigger a notification message. 4. Click OK. 5. Select a range of events to exclude from the notification messages.
24
Task
Steps
Remove a customized subject line for a 1. Click Alerts. notification message for the user 2. In the list of notification messages, click a notification message. account. 3. Click Delete. Create a filter to prevent a specific BlackBerry Enterprise Server from sending a specific event to the user account. Remove a filter that prevents a user from receiving notification messages about a specific event. 1. Click Alerts. 2. Click Add. 3. Type -<event ID>. 4. Click OK. 1. Click Alerts. 2. In the list of notification messages, click a notification message. 3. Click Delete. 4. Click OK. Create a filter to prevent a specific BlackBerry Enterprise Server from sending notification messages to the user account. 1. Click Servers. 2. Click Add. 3. Type the BlackBerry Enterprise Server information as it appears in the List of Known BlackBerry Servers. 4. In the Description field, type remove. Remove a filter that prevents a specific 1. Click Servers. BlackBerry Enterprise Server from 2. Click a BlackBerry Enterprise Server. sending notification messages to the 3. Click Delete. user account.
body
25
Service: BlackBerry Messaging Agent SERVER1 Event ----10398 20000 20089 50001 50002 Occ. ----1 1 1 2 1 Description -------------------Unable to open mail database for user %s (server=%s) (db=%s) Unable to open %s DB for %s Starting BlackBerry Server ... Shutting down BlackBerry ServerMessages
Output files
The BlackBerry Syslog service creates the following log files:
Location Logs folder folder in which the BESSysLog.exe file resides File name bessyslog<YYYYMMDD>.txt msgs_<hostname><YYYYMMDD>.txt Details The BlackBerry Syslog service creates the Logs folder. The log file contains detailed information about all messages that the BlackBerry Enterprise Server processes. The BlackBerry Syslog service writes message information to the file every 10 minutes. This interval is not configurable.
26
Details The log file contains a summary of scan averages for the past hour plus detailed information about any scan that takes longer than 5 seconds. The file is created in the same folder as the bessyslog.exe file. The BlackBerry Syslog service prints rescan information every hour. The BlackBerry Syslog service uses this log file to generate nightly reports. The BlackBerry Syslog service uses this log file to generate nightly reports.
folder in which the BESSysLog.exe file resides folder in which the BESSysLog.exe file resides
bessyslogerror<YYYYMMDD>.txt bessyslogdebug<YYYYMMDD>.txt
27
28
4
Log analysis tools
Requirements and considerations Download the BlackBerry Enterprise Server Resource Kit files Prepare to run the log analysis tools Tracking message flow through the BlackBerry Enterprise Server Differentiating nonresponsive threads from slow threads Identifying notification delays Identifying user accounts that might be outside of a wireless coverage area Monitoring the number of messages in the queue Identifying Microsoft Exchange MAPI/CDO issues Checking timing statistics on rescan events Generating detailed statistics Determining BlackBerry MDS Connection Service use patterns
! ! ! !
Do not run the log analysis tools on the same computer on which the BlackBerry Enterprise Server runs. The BlackBerry log files that you analyze must reside on the same computer as the log analysis tools. The computer on which you run the log analysis tools must have a large volume of free disk space to accommodate the size of the BlackBerry log files and the log analysis output files. The log analysis tools are version specific and must run on the specified BlackBerry Enterprise Server log files. Although the log analysis tools run on different versions of the BlackBerry log files, the results might be unpredictable.
2. Copy the BlackBerry log files to the computer on which you plan to run the log analysis tools. 3. Note the path and folder at which the BlackBerry log files reside; you must provide the location if it is different from the folder in which the log analysis tools reside. See the BlackBerry Enterprise Server System Administration Guide for more information about how to change the BlackBerry Enterprise Server logging levels.
30
Parameter -u all/<username>
Steps > Type all to query all user accounts in the log files, or type the user name in the appropriate format to query a specific user account. Microsoft Exchange: Type the SMTP email address; for example, cwarren@<domain>.net. IBM Lotus Domino: Type the hierarchical name; for example, Clyde Warren/Organization. Novell GroupWise: Type the first name and last name; for example, Clyde Warren. Type the name of a user list file to check a group of user accounts. The list file must be newline delimited and contain the same user name format used with the -u option. Note: This parameter overrides the value specified with the -u parameter. Type the acronym for the BlackBerry Messaging Agent log files if it is not MAGT. Type the acronym that identifies the BlackBerry Dispatcher log file if it is not DISP. Type the acronym that identifies the BlackBerry Router if it is not ROUT. To check message flow across multiple days, type a date value to specify which log file subdirectories to check. The Messageflow tool checks subdirectories from the current date. Use the format <YYYYMMDD-YYYYMMDD> for the date range or <YYYYMMDD> for a single date. If you do not type a date value, the Messageflow tool cannot check the subdirectories. Specify the location of the log files if they are not in the same folder as the Messageflow tool. Type user to create one file for each user account or all to create one file for all user accounts. If you do not specify a user account, the user name does not appear in the .csv file name. Type the location where you want to place the output files. Type -debug and a file name to produce more detailed output for debugging purposes. Note: If you do not specify a file name, the debug information appears on the screen. Type either -? or -help for information about the Messageflow tool. The Messageflow tool does not require other parameters when you use this parameter.
[-input] <userlist.txt>
>
Example: Querying all user accounts and creating the report in a specified location
31
Column User EntryID/NoteID RefID AGT Tag Disp Tag Total Time Server Time Posted Mail Del Queue 1 Queue out Sending Disp Recv Router Recv Router Del Disp Del Agt Status Status time Retry CNT Discovery Path Pending
Description displays the user name identifier that tracks the message from its initial stages unique identifier assigned to messages and calendar appointments that the BlackBerry Enterprise Server or the BlackBerry device uses to track messages identifier that tracks the message between the BlackBerry Messaging Agent and the BlackBerry Dispatcher; assigned by the BlackBerry Messaging Agent identifier that tracks the message from the BlackBerry Dispatcher to the wireless network; assigned by the BlackBerry Dispatcher total time (in minutes) between the messaging server receiving the message and the BlackBerry Enterprise Server completing the processing (can be a negative value when the BlackBerry device sends a message) time it takes the BlackBerry Enterprise Server to process a message and deliver it to the BlackBerry device time when the messaging server posts the message to the mailstore time when the messaging server indicates that the message is delivered time when the BlackBerry Enterprise Server first recognizes the message time when the message enters the second queue stage time when the BlackBerry Messaging Agent sends the message to the BlackBerry Dispatcher time when the BlackBerry Dispatcher receives the message time when the BlackBerry Router receives the message time when the BlackBerry Router sends the message time when the BlackBerry Dispatcher receives the delivery notification message status of whether the BlackBerry Messaging Agent receives the delivery notification message time of the message delivery number of times the BlackBerry Enterprise Server attempts to send the message how the BlackBerry Enterprise Server discovers the message Platform: This column applies to the BlackBerry Enterprise Server for Microsoft Exchange only. whether the message is sent over the wireless network or through the bypass router (wired) path number of pending messages
32
[-mds] <acronym>
>
Example: Producing detailed output for the BlackBerry Enterprise Server for IBM Lotus Domino
33
Description incrementing number that equals x multiplied by the BlackBerry Enterprise Server health-check interval (usually 10 minutes); for example, if the wait count equals 2, the thread has been unresponsive or slow for 20 minutes whether the NoResponseCheck tool reported a false positive (a slow thread instead of a nonresponsive thread) last activity before the failure, user account associated with the failure, and the BlackBerry Enterprise Server file name in which the thread reported as nonresponsive entry from the log file for the failure
34
-u all/<username>
>
-t <time>
>
35
Steps > Type the name of a user list file to check a group of user accounts. The list file must contain the same user name formats as used with the -u parameter and must be new-line delimited. Note: This parameter overrides the value specified with the -u parameter. Type the acronym that identifies the BlackBerry Dispatcher log file if it is not DISP. Specify the location of the log files if they are not in the same folder as the tool. Type the location where you want to place the output files. Type user to create one file for each user account or type all to create one file for all user accounts. Type -debug and a file name to produce more detailed output for debugging purposes. Note: If you do not specify a file name, the debug information appears on the screen. Type either -? or -help for information about the OutofCoverage tool. The OutofCoverage tool does not require other parameters when you use this parameter.
[-dispatcher] <acronym> [-l] <C:\folder\> [-ol] <path> [-output] user/all [-debug] <filename.txt> [-?/-help]
Example: Checking if the user account has not sent or received packets for 25 minutes
36
-u all/<username>
>
[-input] <userlist.txt>
>
Example: Querying all user accounts for more than one pending message and print out the user account with the highest pending count
37
38
Steps > Type this parameter to specify a file of new-line delimited events to search for. Notes: This parameter overrides the default list. The tool does not check for duplicates or valid events; however, it does verify that events are numerical. The tool uses events to monitor the BlackBerry Enterprise Server starts, versions, and user account settings.
Type this parameter to output the results to a .txt file instead of a .csv file. Type the location in which you want to place the output files. Type -debug and a file name if you want to produce more detailed output for debugging purposes. If you do not specify a file, the debug information appears on the screen. Type either -? or -help for information about the MapiCdoErrors tool. The MapiCdoErrors tool does not require other parameters when you use this parameter.
mapicdoerrors -p e -u all -input users.txt -l C:\logs -output all -events 20018,20055 -override -raw
39
2. At the command prompt, switch to the folder in which AvailIndex.exe resides. 3. Run the tool with the following parameters. The parameters listed in brackets are optional.
Parameter -p <e> [-l] <C:\folder\> [-agent] <acronym> [-ol <path>] [-debug] <filename.txt> [-?/-help] Steps > > > > > > Type e to specify the Microsoft Exchange platform. Type the location of the BlackBerry Messaging Agent log files if it is different from the location of the AvailIndex tool. Type the acronym for the BlackBerry Messaging Agent if it is not MAGT. Type the location in which to save the output files. Type -debug and a file name to produce more detailed output for debugging purposes. Note: If you do not specify a file name, the debug information appears on the screen. Type either -? or -help for information about the AvailIndex tool. The AvailIndex tool does not require other parameters when you use this parameter.
40
Column MESSAGE_DELETED_RESCAN Total in seconds MESSAGE_MOVED_RESCAN count MESSAGE_MOVED_RESCAN Total in seconds MESSAGE_STATUS_RESCAN count MESSAGE_STATUS_RESCAN Total in seconds RELOAD_FOLDERS count RELOAD_FOLDERS Total in seconds GENERATE_FOLDER_LIST count GENERATE_FOLDER_LIST Total in seconds PIM_ADDRESSBOOK_RESCAN count PIM_ADDRESSBOOK_RESCAN Total in seconds PIM_MEMO_RESCAN count PIM_MEMO_RESCAN Total in seconds PIM_TASK_RESCAN count PIM_TASK_RESCAN Total in seconds CALENDAR_SLOWSYNC count CALENDAR_SLOWSYNC Total in seconds EMAIL_RECONCILIATION count EMAIL_RECONCILIATION Total in seconds Log total in seconds
Description total time of MESSAGE_DELETED_RESCAN events, in seconds number of times the MESSAGE_MOVED_RESCAN event occurred total time of MESSAGE_MOVED_RESCAN events, in seconds number of times the MESSAGE_STATUS_RESCAN event occurred total time of MESSAGE_STATUS_RESCAN events, in seconds number of times the RELOAD_FOLDERS event occurred total time of RELOAD_FOLDERS events, in seconds number of times the GENERATE_FOLDER_LIST event occurred total time of GENERATE_FOLDER_LIST events, in seconds number of times the PIM_ADDRESSBOOK_RESCAN event occurred total time of PIM_ADDRESSBOOK_RESCAN events, in seconds number of times the PIM_MEMO_RESCAN event occurred total time of PIM_MEMO_RESCAN events, in seconds number of times the PIM_TASK_RESCAN event occurred total time of PIM_TASK_RESCAN events, in seconds number of times the CALENDAR_SLOWSYNC event occurred total time of CALENDAR_SLOWSYNC events, in seconds number of times the EMAIL_RECONCILIATION event occurred total time of EMAIL_RECONCILIATION events, in seconds total number of rescan events for the BlackBerry device user account
41
Parameter -u all/<username>
Steps > Type all to query all user accounts in the log files, or type the user name in the appropriate format to query a specific user account. Microsoft Exchange: Type the SMTP email address; for example, cwarren@<domain>.net. IBM Lotus Domino: Type the hierarchical name; for example, Clyde Warren/Organization. Novell GroupWise: Type the first name and last name; for example, Clyde Warren. Specify a user list file to check a group of user accounts. The list file can contain only the names of the BlackBerry device user account and must be new-line delimited. Use the same format as shown with the -u option. Note: Use this parameter overrides the value specified in -u. Type the acronym for the BlackBerry Messaging Agent log files if it is not MAGT. Type the acronym for the BlackBerry Dispatcher log files if it is not DISP. Type the location of the log files if they are not in the same folder as the tool. Type user to create one file for each BlackBerry device user account, or type all to create one file for all BlackBerry device user accounts. Type the location where you want to place the output files. Type -debug and a file name if you want to produce more detailed output for debugging purposes. By default, the debug information appears on the screen. Type either -? or -help for information about the HistoricalStats tool. The HistoricalStats tool does not require other parameters when you use this parameter.
[-input] <userlist.txt>
>
[-agent] <acronym> [-dispatcher] <acronym> [-l] <C:\folder\> [-output] user/all [-ol] <path> [-debug] <filename.txt> [-?/-help]
Example: Querying for historical statistics for a BlackBerry Enterprise Server for Microsoft Exchange
SMTP email address of the user Platform: This column applies to the BlackBerry Enterprise Server for IBM Lotus Domino. display name of the user account PIN of the BlackBerry device
42
Column SRPID Messages to Messages from replied to/forwarded from Attachment requests OTAFM TO OTAFM FROM CICAL TO (in bytes) CICAL FROM (in bytes) CMIME TO (in bytes) CMIME FROM (in bytes) MDS TO (in bytes) MDS FROM (in bytes) OTASYNC TO (in bytes)
Description SRP identifier for the BlackBerry Enterprise Server on which the user account resides number of messages sent to the BlackBerry device number of messages sent from the BlackBerry device number of messages replied to or forwarded from the BlackBerry device; this is a subset of the messages sent from BlackBerry device number of attachment requests sent from the BlackBerry device number of wireless message reconciliation requests sent to the BlackBerry device; this is wireless folder management data number of wireless message reconciliation requests sent from the BlackBerry device number of compressed ICAL (CICAL) bytes sent to the BlackBerry device; this is wireless calendar data number of CICAL bytes sent from the BlackBerry device number of compressed MIME (CMIME) bytes sent to the BlackBerry device number of CMIME bytes sent from the BlackBerry device number of BlackBerry MDS Connection Service bytes sent to the BlackBerry device; you can find this statistic in the BlackBerry Dispatcher log file number of BlackBerry MDS Connection Service bytes sent from the BlackBerry device; you can find this statistic in the BlackBerry Dispatcher log file number of synchronized bytes sent over the wireless network to the BlackBerry device (wireless personal information management (PIM) synchronization data); you can find this statistic in the BlackBerry Dispatcher log file number of synchronized bytes sent over the wireless network from the BlackBerry device; you can find this statistic in the BlackBerry Dispatcher log file
43
Parameter [-type] <push or pull> [-mds] <acronym> [-l] <C:\folder\> [-debug] <filename.txt> [-ol] <path> [-?/-help]
Steps > > > > > > Type push or pull to see results for one type only. If you do not specify a type, the tool returns results for both types. Type the acronym that identifies the BlackBerry MDS Connection Service log file if it is not MDAT. Specify the location of the log files if they are not in the same folder as the tool. Type -debug and a file name if you want to produce more detailed output for debugging purposes. By default, the debug information appears on the screen. Type the location in which you want to place the output files. Type either -? or -help for information about the MDSPushvsPull tool. The MDSPushvsPull tool does require other parameters when you use this parameter.
date the request was made time the request was made port number of the request size of the request in bytes
44
5
Log Monitor tool
Requirements and considerations Download the BlackBerry Enterprise Server Resource Kit files Prepare to run the Log Monitor tool Preparing to monitor the BlackBerry Enterprise Server
! !
The Log Monitor tool must run on the same computer on which the BlackBerry Enterprise Server runs. The Log Monitor tool can monitor only one log file at a time.
You can specify the values to monitor and actions to perform in the following ways: At the command prompt, type a list of event IDs or a text string that you want to monitor and an action that you want the Log Monitor tool to perform, such as running a customized batch file or creating text files that contain the information that you requested the Log Monitor tool to gather. When you request that the Log Monitor tool monitor for event IDs, it monitors the log file for entries that begin with the given event IDs enclosed in brackets. For example, the Log Monitor tool finds event 40805 in the log entry [40805] (01/26 00:00:05):{0x10FC} and then performs the specified action for the event. You can specify event IDs as five- or six-digit numbers. You must type the event IDs in a comma-separated list at the command prompt. When you use a comma-separated list of events, specified with the -events parameter, the Log Monitor tool treats the event individually with an assigned action for that specific event. In an input file, specify sets of actions and event IDs or text strings that trigger the Log Monitor tool to perform the actions. The input file contains events (text values or regular expressions) that you want the Log Monitor tool to monitor, and new actions that the tool performs when it finds the event or text string. Action lines in the input file begin with the text action= (where the text action is case-insensitive). When the Log Monitor tool finds an action line, that action becomes the current action to associate with subsequent events. The Log Monitor tool treats input lines that contain exactly five or six digits as event IDs and searches for them at the beginning of log lines enclosed in brackets. For multiple event IDs, you must specify one event ID on each line. You can specify text strings for the Log Monitor tool to monitor. The Log Monitor tool treats the text strings as case-insensitive regular expressions.
A sample batch script that accesses and displays these environment variables on the screen might include the following lines:
@echo off echo "LogMonitorEncoding=%LogMonitorEncoding%" echo "LogMonitorEvent=%LogMonitorEvent%" echo "LogMonitorAction=%LogMonitorAction%" echo "LogMonitorText=%LogMonitorText%" echo "LogMonitorValue=%LogMonitorValue%"
46
Type the name of the input file. Type -debug and a file name to create a more detailed output file for debugging purposes. Type either -? or -help for information about the Log Monitor tool. The Log Monitor tool does not require other parameters when you use this parameter.
1.
Create a batch file named cmd.bat that contains the following text:
@echo off echo %LogMonitorText% >>%LogMonitorValue%.txt
2. Create an input file named input.txt that contains the following string (regular expression) that the tool monitors:
?:}{([^}]*)
3. Create a text file named log.txt to store and append the log information. 4. Run the following command:
LogMonitor.exe l log.txt input input.txt Action cmd.bat
47
7. At the command prompt, type type SampleMessages.txt >>log.txt to append the contents of SampleMessages.txt to log.txt. When the Log Monitor tool finds the newly added log entries in the log.txt file, the tool creates files named [email protected] and [email protected].
Example 2: Run the Log Monitor tool so that when it finds events 40702 or 40703, it executes a cmd.bat file and exits
1.
2. Create a text file named log.txt to store and append the log information. 3. Run the following command:
LogMonitor l log.txt events 40702,40703 action ~cmd.bat
4. Create a text file named SampleMessage.txt. 5. Copy the following log lines to SampleMessages.txt:
[40702] (08/16 00:00:11):{0x12E8} {[email protected]} Starting message rescan [40703] (08/16 00:00:12):{0x12E8} {[email protected]} Message rescan completed [40702] (08/16 00:00:12):{0x12E8} {[email protected]} Starting message rescan [40703] (08/16 00:00:12):{0x12E8} {[email protected]} Message rescan completed
6. At the command prompt, type type SampleMessages.txt >>log.txt >>log.txt to append the contents of SampleMessages.txt to log.txt. When the Log Monitor tool finds the newly added log entries in log.txt, the Log Monitor tool completes the action that you requested in cmd.bat. For example, if cmd.bat is the same file that you used in Sample 1, the Log Monitor tool creates files named 40702.txt and 40703.txt.
48
6
Message Receipt Confirmation tool
Requirements and considerations Download the BlackBerry Enterprise Server Resource Kit files Install the Message Receipt Confirmation tool Preparing to monitor the BlackBerry Enterprise Server Viewing the status of messages sent to BlackBerry devices Message Receipt Confirmation tool log files
! ! ! ! ! !
Do not run the Message Receipt Confirmation tool on the same computer on which the BlackBerry Enterprise Server runs. The Message Receipt Confirmation service (messageconfirmservice.exe) and Message Receipt Confirmation client (messageconfirmconfig.exe) must run on the same computer. The Message Receipt Confirmation tool must have permission to write to and read from the hard disk and the registry. The Message Receipt Confirmation tool must run as a Microsoft Windows service; the Message Receipt Confirmation service can run as the local system account. You must select or create an email account from which the Message Receipt Confirmation tool can access and send messages. If you are using IBM DB2 UDB, you must install an IBM DB2 UDB client on the computer on which you plan to run the Message Receipt Confirmation service.
2. Copy the following files to the new folder: MessageConfirmService.exe MessageConfirmConfig.exe MessageConfirmX.dll (Microsoft Exchange environments only) MessageConfirmD.dll (IBM Lotus Domino environments only) MessageConfirmG.dll (Novell GroupWise environments only)
Choose whether to start the Message Receipt Confirmation > service automatically or manually. Specify the domain user account and password. 1.
2. Type the password for the domain user account, or if you do not have a password, leave the password field empty. Specify the type of authentication to use. Specify the database authentication credentials, if applicable. > 1. To use SQL authentication or IBM DB2 UDB authentication, type Y; to use Microsoft Windows authentication, type N. Type the login user name. Type the name of the MAPI profile. Type the user ID. Type the MailServerName using one of the following formats: <ipaddress>:<port> or <hostname>:<port>
For Microsoft Exchange environments, identify the name of > the MAPI profile to connect to the messaging server. For Novell GroupWise environments, specify the user ID and > the MailServerName that the Message Receipt > Confirmation tool uses to connect to the messaging server.
For the BlackBerry Enterprise Server for IBM Lotus Domino, 1. Type the full path name of the Notes ID file. identify the path to and the password for the Notes ID file 2. Type the password for the Notes ID file. that the tool should use to perform tasks. Note: The Notes ID file must have the same permissions as the BlackBerryAdmins group.
50
Task
Steps At the installation prompt Enter NotesDir, type the full path of the executable directory. For example, type C:\Lotus\Domino. At the installation prompt NotesIniPath, type the full path of the notes.ini file name. For example, type C:\Lotus\Notes\notes.ini.
For the BlackBerry Enterprise Server for IBM Lotus Domino, 1. specify the full path of the executable directory, Notes.ini file name, messaging server name, and name of the users 2. mail file.
3. At the installation prompt Enter the MAILSERVER this service should use, type the messaging server name. For example, type CN=Server1/0=Organization. 4. At the installation prompt Enter the MAILFILE this service should use, type the name of the users mail file. For example, type mail\user1.nsf.
4. In the Microsoft Windows Services window, start the Message Receipt Confirmation service.
>
51
Task Set the email account to which the Message Receipt Confirmation service sends the delivery timeout notification message.
Steps > In the Send Notifications To field, type an SMTP email address.
Define the subject of the delivery timeout notification message > that the Message Receipt Confirmation tool sends to the defined email account. Add the user account to monitor. 1.
2. Click the user account. 3. Click Monitor. Stop monitoring a user account. 1. In the BlackBerry Enterprise Servers list, click a BlackBerry Enterprise Server.
The monitoring information is available at HKEY_CURRENT_USER\SOFTWARE\Research In Motion\BlackBerry Message Receipt Confirmation tool, in the configuration and status subkeys.
52
Field
Description
Last Message Delivery Check last time that the Message Receipt Confirmation service checked for a successful delivery notification message Deliveries list of user accounts and the status of the message delivery to the BlackBerry device Example: Successful Status/Deliveries display sequences <User_account> / Message Send Successful <User_account> / Delivery Confirmed or <User_account> / Message Send Successful <User_account> / Delivery Unconfirmed <User_account> / Delivery Confirmed Example: Unsuccessful Status/Deliveries display sequence, which results in the Message Receipt Confirmation tool sending a delivery failure notification message <User_account> / Message Send Successful <User_account> / Delivery Unconfirmed <User_account> / Delivery Timeout Example: Unsuccessful Status/Deliveries, which does not result in the Message Receipt Confirmation tool sending a delivery failure notification message <User_name> / Message Send Error The Message Send Error message indicates that the Message Receipt Confirmation tool could not send a message to the user account.
53
54
7
Upgrade IT Policy Template tool
Requirements and considerations Download the BlackBerry Enterprise Server Resource Kit files Preparing the input file Run the Upgrade IT Policy Template tool Upgrade IT Policy Template log files
Do not run the Upgrade IT Policy Template tool on the same computer on which the BlackBerry Enterprise Server runs.
sets a number ID for the policy item; the default setting is 255 and is not required in the .csv file sets a number for grouping items with the same Tag; the default setting is 255 and is not required in the .csv file
Description name of the policy item as it appears in the BlackBerry Manager Edit IT Policy window Note: This field is mandatory. description for a policy item as it appears in the BlackBerry Manager Edit IT Policy window; the maximum length is 2047 characters Note: This field is mandatory. data type for the item -1: folder 0: boolean (default) 1: integer 2: string 3: bitmask 4: multiline string
Type
minimum value for the item; the default value is 0 Note: This value is applicable when Type is set to 1 (integer). the maximum value for the item; the default value is 0 Note: This value is applicable when Type is set to 1 (integer). destination for the item -1: no destination 0: BlackBerry device (default) 1: desktop 2: BlackBerry device and desktop 3: lists the item with user-defined and other IT policy rules (default) 2: lists the item in one of the other groupings
UIMask
location of an item in the list of policy items in the BlackBerry Manager Edit IT Policy window
Note: This field is not required. UserPolicyRule a flag to specify whether the IT policy will show up per user Data 0: non user specific 1: per user specific
names of the 8-bit options, separated by a vertical bar (|) For example, option0|option1|option2|option3|option4|option5|option6|option7. Note: The default value is empty.
2. Use a GO line to prompt the Upgrade IT Policy Template tool to execute all buffered statements in a batch.
56
3. Use only one INSERT, DELETE, or UPDATE command for each line. 4. Group the IT policy items together in brackets, separated by commas. 5. Group the values of the IT policy items together in brackets, separated by commas, and enclose each value in single quotation marks. 6. Indicate blank values using single quotation marks with no spaces between them. 7. Enclose comments in /* */ blocks. For example /* comments */. Example .sql file
/* * BlackBerry Enterprise Server ITPolicy Template * Copyright (C) 2006 Research In Motion Limited */ USE "_DATABASENAME_" set nocount on GO /* Delete all the rows in the table to be updated or removed. */ /* (Note: Maintain SQL command format when adding new items to this list.) */ DELETE FROM ITPolicyTemplate2 WHERE Tag IN (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20) DELETE FROM ITPolicyTemplate2 WHERE Tag IN (21,22,23,24,28,29,30,32,33,34,80,81,82,83,84,85,86,87) GO INSERT INTO ITPolicyTemplate2(Tag,SubTag,Name, Description,Type,MinValue,MaxValue,Destination,UIMask,UserPolicyRule,Data) VALUES( '1','0','Allow Phone','Specifies whether users can use phone capabilities on the BlackBerry device.||If this rule is set to FALSE, the phone icon is still visible, but only emergency calls can be made.||Warning: Setting, modifying, or removing this rule causes the BlackBerry device to reset when the IT policy update is received.||In the absence of this rule, a default value of "TRUE" is used.||This rule applies only to Java-based BlackBerry devices with BlackBerry Device software Version 3.6.0 and later.',0,0,0,2,2,'' )
57
5. In the Description IT policy item, enclose descriptions that contain a comma or quotation marks in quotation marks. Note: If you create the file in Microsoft Excel, the program adds the quotation marks for you. If you create the file using Microsoft Notepad, insert the quotation marks at the beginning and end of the description and around text that appears in quotation marks. For example, The default is TRUE for this policy. 6. In the Description IT policy item, use two vertical bars to indicate line breaks. Example .csv file
Command,Tag,Tag,Name,Description,Type,MinValue,MaxValue,Destination,UIMask,UserPolicyRule, Data DELETE,36,,,,,,,,,, DELETE,37,,,,,,,,,, DELETE,38,,,,,,,,,, DELETE,40,,,,,,,,,, INSERT,36,0,VoIP Policy Group,VoIP Policy Group,-1,0,0,0,2, INSERT,36,1,Allow VoIP,"Specifies whether the ability to make VoIP calls is enabled||In the absence of this rule, a default value of ""TRUE"" is used.||This rule applies only to Javabased BlackBerry devices with BlackBerry Device Software Version 4.0.0 and later.",0,0,0,0,2, INSERT,36,2,VoIP Allow Handheld Changes, "Set to True if users can change elements of this IT Policy.|| If set to False, then users can still change user-specific elements.||In the absence of this rule, a default value of ""TRUE"" is used.||This rule applies only to Java-based handhelds with BlackBerry Device Software Version 4.0.0 and later.",0,0,0,0,2,
Platform: This parameter applies to the BlackBerry Enterprise Server for IBM Lotus Domino only.
58
Steps > > > > Type the IBM DB2 UDB port number. By default, the port number is 50000. Type this parameter to bypass user confirmation for destructive actions (for example, deletions). Type this parameter if you do not want to back up the existing IT policy template table before making changes. Type -debug to produce additional output to the log file for debugging purposes. 0: normal level; only essential status messages are logged (default) 1: mid level; more detailed logging 2: high level; detailed logging for in-depth analysis Type -? for information about the Upgrade IT Policy Template tool. No other parameters are required when you use this parameter. Platform: This parameter applies to the BlackBerry Enterprise Server for IBM Lotus Domino only.
[-?]
>
Example: Upgrading the IT policy template with no confirmation prompt and no database backup, using SQL authentication
upgradeitpolicytemplate filename.csv -SQLAuth -n test.rim.net -db BESMgmt -dbms sql -noconfirm -nobackup -debug 2
Example: Upgrading the IT policy template with no confirmation prompt and no database backup, using IBM DB2 UDB authentication
upgradeitpolicytemplate filename.csv -dbms db2 -db2schema <schema name> -db2port <port number> noconfirm -nobackup -debug 2
59
60
8
User Administration tool
Requirements and considerations Download the BlackBerry Enterprise Server Resource Kit files Installing the User Administration tool Managing user accounts Managing BlackBerry devices Sending notification messages to BlackBerry devices Managing email and folder redirection Managing IT policies and IT policy rules Obtaining BlackBerry device information Display the status of the User Administration service Parameters available for the User Administration tool
! !
Do not run the User Administration tool on the same computer on which the BlackBerry Enterprise Server runs. The User Administration tool supports mixed environments with BlackBerry Enterprise Server Version 4.0 SP2 and later. Although the User Administration tool might appear to perform tasks on BlackBerry Enterprise Server Version 4.0 SP1 and earlier, the results are unpredictable. The User Administration tool does not support changing an IT policy with BlackBerry Enterprise Server versions earlier than 4.0. The User Administration tool runs as a Microsoft Windows service named the BlackBerry User Administration Service. You must install Microsoft XML Parser 4.0 on the computer on which you plan to run the User Administration service. You can install the User Administration client on the same computer on which the User Administration service runs or on a different computer. The User Administration service must be running before you can use the User Administration client. The User Administration service and the User Administration client components that you use must be the same version. The BlackBerry Enterprise Server and the computers on which the User Administration components exist must reside in the same Microsoft Windows domain. To connect to the computer on which the User Administration service runs from a remote computer, you must turn on the printer and file-sharing features on the computer on which the User Administration service runs. For IBM Lotus Domino, you must install IBM Lotus Notes on the computer on which you plan to run the User Administration service. For IBM Lotus Domino, the Notes ID file that you use to run the User Administration client must have the same permissions as the BlackBerryAdmins group. If you are using IBM DB2 UDB, you must install an IBM DB2 UDB client on the computer on which you plan to run the User Administration tool. If you are using IBM DB2 UDB, verify that the BlackBerry Configuration Database belongs to the database catalog that resides on the same computer on which the User Administration service runs.
! ! ! ! ! ! ! ! ! ! !
Verify that you configured the IBM DB2 UDB server to look up groups at the domain level. To verify this, check that the following parameter exists in the IBM DB2 UDB profile registry on the IBM DB2 UDB server: DB2_GRP_LOOKUP=DOMAIN,TOKENDOMAIN If this parameter is not set, the User Administration tool does not support Microsoft Windows authentication.
3. At the command prompt, switch to the folder in which BESUserAdminService.exe resides. 4. Type besuseradminservice -install <platform> where <platform> is one of the following values: exchange domino
62
groupwise mdsapplications
2. Type the password for the domain user account, or if you do not have a password, leave the password field empty. Choose whether to use User Administration service > registry settings that already exist on the computer. If the BlackBerry Manager runs on the same > computer, the User Administration service attempts to detect the existing BlackBerry Configuration Database settings and displays the message Found BlackBerry Manager settings: DB Server: [Database Server], DB Name: [Database Name]. For the BlackBerry Enterprise Server for IBM Lotus > Domino, if the BlackBerry Manager is not running on the same computer, specify the Microsoft SQL Server or an IBM DB2 UDB server on which the BlackBerry Configuration Database resides. For the BlackBerry Enterprise Server for Microsoft Exchange, the BlackBerry Enterprise Server for Novell GroupWise, or the BlackBerry Enterprise Server for MDS Applications, if the BlackBerry Manager is not running on the same computer, specify the Microsoft SQL Server on which the BlackBerry Configuration Database resides. Specify the BlackBerry Configuration Database name. > Type Y to use existing registry settings; otherwise, type N to start a new installation. Type Y to confirm the BlackBerry Configuration Database that the User Administration service detects.
Type 1 to use a Microsoft SQL Server; type 2 to use an IBM DB2 UDB server.
>
Type the BlackBerry Configuration Database name. Type the IBM DB2 UDB schema name. By default, the database schema name is BESADMIN.
For the BlackBerry Enterprise Server for IBM Lotus > Domino, if you are using an IBM DB2 UDB, specify the IBM DB2 UDB schema name of the BlackBerry Configuration Database. For the BlackBerry Enterprise Server for IBM Lotus > Domino, if you are using an IBM DB2 UDB, specify the IBM DB2 UDB port number. Specify the type of database authentication you want to use. >
Type the IBM DB2 UDB port number. By default, the port number is 50000.
To use SQL authentication or IBM DB2 UDB authentication (database authentication), type Y; to use Microsoft Windows authentication, type N.
63
Task
Steps Type Y to confirm the database authentication user name and password that the User Administration service detects.
If the BlackBerry Manager runs on the same > computer, the User Administration service attempts to detect the existing database authentication user name and password and displays the message Found BlackBerry Manager settings: Login: [SQL/DB2 UDB Authentication User], Password: ***. If the BlackBerry Manager is not running on the same computer, specify the database authentication credentials. 1.
Set the client password that the User > Administration client uses to authenticate with the User Administration service. Set restrictions for the hosts that can run the User > Administration client. For the BlackBerry Enterprise Server for Microsoft Exchange, specify the name of the MAPI profile to connect to the BESAdmin mailbox. >
To restrict the computers that you permit to run the User Administration client, type a comma-separated list of computer names. To permit all computers to run the User Administration client, leave the field empty. Type the name of the MAPI profile.
For the BlackBerry Enterprise Server for IBM Lotus 1. Type the full path name of the Notes ID file. Domino, specify the path to and the password for 2. Type the password for the Notes ID file. the Notes ID file that you want the User Administration tool to use. Note: The Notes ID file must belong to the BlackBerryAdmins group. For the BlackBerry Enterprise Server for IBM Lotus > Domino, specify the messaging server that you want the User Administration tool to use. For BlackBerry Enterprise Server for Novell GroupWise, specify the user ID that you want the User Administration tool to use. Set access rights that the User Administration clients can use to connect to the BlackBerry Enterprise Server. > At the installation prompt Enter the MAILSERVER this service should use, type the messaging server name. For example, type CN=Server1/0=Organization. Type the user ID.
>
Type Y to permit access to only User Administration clients that are logged in with the same account ID that you set to start the User Administration service; otherwise, type N.
6. In the Microsoft Windows Services window, start the BlackBerry User Administration Service.
64
65
5. In the text file, change the text from HKEY_CURRENT _USER\Software\Research In Motion\BlackBerry Enterprise Server\Admin to HKEY_USERS\.DEFAULT\Software\Research In Motion\BlackBerry Enterprise Server\Admin. 6. Save the file. 7. In the Registry Editor, import the file. Change the User Administration service to log in using a local system account 1. Stop the BlackBerry User Administration Service. 2. In the Microsoft Windows Services window, in the BlackBerry User Administration Service properties, change the login account to the local system account.
2. Create a new String Value called ReallowHostnames. 3. Right-click ReallowHostnames. Click Modify. 4. Type the host name of the computer on which the User Administration client runs. 5. Close the Registry Editor. 6. In the User Administration client, type the command and client password.
66
See Parameters available for the User Administration tool on page 92 for more information.
67
Example: Adding a user account to a BlackBerry Enterprise Server for Microsoft Exchange
besuseradminclient -add -p password1 -u [email protected] -b -n computer01 -pin xxxxxxxx -it_policy User Can Change Timeout
Example: Adding a user account to a BlackBerry Enterprise Server for IBM Lotus Domino
besuseradminclient -add -p password1 -u CN=Clyde Warren/O=Server01 -b CN=Server01/O=test.rim.net -n xx.xx.xx.xx -pin xxxxxxxx -it_policy User Can Change Timeout
Example: Adding a user account to a BlackBerry Enterprise Server for Novell GroupWise
besuseradminclient -add -p password1 -u clydewarren -b server01 -n computer01 -pin xxxxxxxx -it_policy User Can Change Timeout
Example: Adding a user account to a BlackBerry Enterprise Server for MDS Applications
besuseradminclient -add -p password1 -u clyde warren -pin xxxxxxxx -b server01 -n computer01 -it_policy User Can Change Timeout
See Parameters available for the User Administration tool on page 92 for more information.
68
Example: Adding a user account to a BlackBerry Enterprise Server, a group, and an IT policy
besuseradminclient -add -p password1 -u [email protected] -b server01 -n computer01 -pin xxxxxxx -group administrators -it_policy User Can Change Timeout
See Parameters available for the User Administration tool on page 92 for more information.
Example: Adding an existing user to a group
69
-sqlpass <database_password> (if you use database authentication) -n <network_address of the User Administration service> (if the User Administration service and User Administration client do not run on the same computer)
See Parameters available for the User Administration tool on page 92 for more information.
Example: Removing a user from the BlackBerry Enterprise Server
See Parameters available for the User Administration tool on page 92 for more information.
Example: Removing a user account from a group on the BlackBerry Enterprise Server
70
-PIN <PIN> (use in conjunction with the -u parameter for the BlackBerry Enterprise Server for MDS Applications only) -b <BlackBerry_Enterprise_Server_service_name> -t <target_BlackBerry_Enterprise_Server_service_name> -sqluser <database_username> (if you use database authentication) -sqlpass <database_password> (if you use database authentication) -n <network_address of the User Administration service> (if the User Administration service and User Administration client do not run on the same computer)
See Parameters available for the User Administration tool on page 92 for more information.
Example: Moving a user account to a different BlackBerry Enterprise Server
See Parameters available for the User Administration tool on page 92 for more information.
Example: Moving a user account to a different group
71
See Parameters available for the User Administration tool on page 92 for more information.
Example: Finding a user account on the BlackBerry Enterprise Server
See Parameters available for the User Administration tool on page 92 for more information.
Example: Clearing the user account filters
72
Example: Making the BlackBerry MDS Connection Service unavailable, changing the password, and specifying the password expiry time for the user account
See Parameters available for the User Administration tool on page 92 for more information.
Example: Adding a user account to a software configuration
-sqluser <database_username> (if you use database authentication) -sqlpass <database_username> (if you use database authentication) -n <network_address of the User Administration service> (if the User Administration service and User Administration client do not run on the same computer)
See Parameters available for the User Administration tool on page 92 for more information.
Example: Removing a user account from a software configuration
See Parameters available for the User Administration tool on page 92 for more information.
Example: Listing the groups in a BlackBerry Domain
74
-sqluser <database_username> (if you use database authentication) -sqlpass <database_username> (if you use database authentication) -n <network_address of the User Administration service> (if the User Administration service and User Administration client do not run on the same computer)
See Parameters available for the User Administration tool on page 92 for more information.
Example: Setting the BlackBerry device password
See Parameters available for the User Administration tool on page 92 for more information.
Example: Setting owner information on a BlackBerry device
75
Delete data from the BlackBerry device memory and make the BlackBerry device unavailable
1. At the command prompt, switch to the folder in which BESUserAdminClient.exe resides. -p <client_password> -u <user_name> -PIN <PIN> (use in conjunction with the -u parameter for the BlackBerry Enterprise Server for MDS Applications only) -b <BlackBerry_Enterprise_Server_service_name> -sqluser <database_username> (if you use database authentication) -sqlpass <database_username> (if you use database authentication) -n <network_address of the User Administration service> (if the User Administration service and User Administration client do not run on the same computer. 2. Type besuseradminclient -kill_handheld and the following parameters:
See Parameters available for the User Administration tool on page 92 for more information.
Example: Deleting data from the BlackBerry device memory and making the BlackBerry device unavailable
See Parameters available for the User Administration tool on page 92 for more information.
Example: Purging pending messages for a user account
76
See Parameters available for the User Administration tool on page 92 for more information.
Example: Resending the peer-to-peer encryption key to the BlackBerry device for a user
See Parameters available for the User Administration tool on page 92 for more information.
Example: Resending a service book to the BlackBerry device
77
See Parameters available for the User Administration tool on page 92 for more information.
Example: Obtaining statistics for a user account
78
Column ServerDN PIN Device Type State Message Server Forwarded Sent Pending Filtered Expired Status Last fwd time Last sent time Last contact time (h) Last result SMTP address BlackBerry MDS Connection Service OTA Calendar ITPolicy name ITPolicy status ITPolicy time applied ITPolicy time sent ITPolicy time received Wireless Message Reconciliation Creation Time EA Password Expiry Time
Description canonical name of the BlackBerry Enterprise Server on which the BlackBerry device user account resides Platform: This column does not apply to the BlackBerry Enterprise Server for MDS Applications. BlackBerry device PIN BlackBerry device model number state of messages on the BlackBerry device (turned on or turned off) Platform: This column does not apply to the BlackBerry Enterprise Server for MDS Applications. messaging server on which the BlackBerry user account resides Platform: This column does not apply to the BlackBerry Enterprise Server for MDS Applications. number of messages that the BlackBerry device forwarded Platform: This column does not apply to the BlackBerry Enterprise Server for MDS Applications. number of messages and PIM items that the BlackBerry device sent Platform: This column does not apply to the BlackBerry Enterprise Server for MDS Applications. number of messages and PIM items pending for the user account Platform: This column does not apply to the BlackBerry Enterprise Server for MDS Applications. number of messages and PIM items that the BlackBerry Enterprise Server filtered Platform: This column does not apply to the BlackBerry Enterprise Server for MDS Applications. number of expired messages and PIM items Platform: This column does not apply to the BlackBerry Enterprise Server for MDS Applications. configuration status of the BlackBerry device time when the user forwarded a message from the BlackBerry device Platform: This column does not apply to the BlackBerry Enterprise Server for MDS Applications. last time that the user sent a message or PIM item from the BlackBerry device Platform: This column does not apply to the BlackBerry Enterprise Server for MDS Applications. time when the BlackBerry device was last in contact with the BlackBerry Enterprise Server result of the last BlackBerry device contact with the BlackBerry Enterprise Server SMTP email address of the user account Platform: This column does not apply to the BlackBerry Enterprise Server for MDS Applications. whether the BlackBerry MDS Connection Service is available or unavailable whether wireless calendar synchronization is available or unavailable Platform: This column does not apply to the BlackBerry Enterprise Server for MDS Applications. IT policy applied to the BlackBerry device status of the IT policy applied to the BlackBerry device time when the IT policy was applied to the BlackBerry device time when the BlackBerry Enterprise Server sent the IT policy to the BlackBerry device time when the BlackBerry device received the IT policy whether wireless message reconciliation is available or unavailable on the BlackBerry device Platform: This column does not apply to the BlackBerry Enterprise Server for MDS Applications. time that the BlackBerry device user account was created on the BlackBerry Enterprise Server expiry time of the enterprise activation password if the password is set; otherwise,N/A appears
79
Description encryption type set on the BlackBerry device name of the BlackBerry Enterprise Server on which the user account resides name of the group to which the user account belongs
See Parameters available for the User Administration tool on page 92 for more information.
Example: Clearing user account statistics
-p <client_password> -u <user_name> or -infofile <file_name> -PIN <PIN> (use in conjunction with the -u parameter for the BlackBerry Enterprise Server for MDS Applications only) -b <BlackBerry_Enterprise_Server_service_name>
-subject <subject_line_text> -body <message_body_text> -sqluser <database_username> (if you use database authentication) -sqlpass <database_username> (if you use database authentication) -n <network_address of the User Administration service> (if the User Administration service and User Administration client do not run on the same computer)
See Parameters available for the User Administration tool on page 92 for more information. Note: Using an input file overrides the -subject and -body parameters.
Example: Sending a PIN message
besuseradminclient -p password -u Clyde Warren -b server01 -send_pin -subject <subject_line_text> -body <message_body_text>
Example: Sending a PIN message using an input file
Using an input file overrides the -subject and -body parameters. See Parameters available for the User Administration tool on page 92 for more information.
81
besuseradminclient -p password -u Clyde Warren -b server01 -send_email -subject <subject_line_text> -body <message_body_text>
Example: Sending an email message using an input file
See Parameters available for the User Administration tool on page 92 for more information.
Example: Turning on email redirection for a user account
82
-u <user_name> -b <BlackBerry_Enterprise_Server_service_name> -sqluser <database_username> (if you use database authentication) -sqlpass <database_username> (if you use database authentication) -n <network_address of the User Administration service> (if the User Administration service and User Administration client do not run on the same computer) -dr
See Parameters available for the User Administration tool on page 92 for more information.
Example: Turning off email redirection for a user account
See Parameters available for the User Administration tool on page 92 for more information.
83
For the BlackBerry Enterprise Server for Microsoft Exchange, a folder name can contain a slash mark (/). To specify the folder, the slash mark must be preceded by the escape character backslash (\). 1. At the command prompt, switch to the folder in which BESUserAdminClient.exe resides. -p <client_password> -u <user_name> -b <BlackBerry_Enterprise_Server_service_name> -sqluser <database_username> (if you use database authentication) -sqlpass <database_username> (if you use database authentication) -n <network_address of the User Administration service> (if the User Administration service and User Administration client do not run on the same computer) -foldername <folder_name> -er 2. Type besuseradminclient -set_folder_redirection -er and the following parameters:
See Parameters available for the User Administration tool on page 92 for more information.
Example: Turning on folder redirection with a folder name that contains a slash mark
84
-dr
See Parameters available for the User Administration tool on page 92 for more information.
Example: Turning off folder redirection
See Parameters available for the User Administration tool on page 92 for more information.
Example: Listing the IT policy rules for an IT policy
85
-p <client_password> -u <user_name> -PIN <PIN> (use in conjunction with the -u parameter for the BlackBerry Enterprise Server for MDS Applications only) -b <BlackBerry_Enterprise_Server_service_name> -sqluser <database_username> (if you use database authentication) -sqlpass <database_username> (if you use database authentication) -n <network_address of the User Administration service> (if the User Administration service and User Administration client do not run on the same computer) -policyrule <rulename> -policyvalue <value>
See Parameters available for the User Administration tool on page 92 for more information.
Example: Setting IT policy rules for a user account
besuseradminclient -set_user_itpolicy_rule -p password1 -u [email protected] -b server01 -policyrule VPN User Name -policyvalue cwarren
See Parameters available for the User Administration tool on page 92 for more information.
Example: Listing the IT policies in your environment
86
See Parameters available for the User Administration tool on page 92 for more information.
Example: Viewing the applications that are available on a BlackBerry device
Example: Viewing the applications that are available on the BlackBerry device in verbose detail
Example: Viewing the applications available for multiple BlackBerry devices using an input file
-PIN <PIN> (use in conjunction with the -u parameter for the BlackBerry Enterprise Server for MDS Applications only) -b <BlackBerry_Enterprise_Server_service_name> -sqluser <database_username> (if you use database authentication) -sqlpass <database_username> (if you use database authentication) -n <network_address of the User Administration service> (if the User Administration service and User Administration client do not run on the same computer)
See Parameters available for the User Administration tool on page 92 for more information.
Example: Listing the BlackBerry devices on which the specified application is installed
See Parameters available for the User Administration tool on page 92 for more information.
Example: Viewing statistics for a user account
88
List the modules and .cod files that are available on a BlackBerry device
1. At the command prompt, switch to the folder in which BESUserAdminClient.exe resides. -p <client_password> -u <user_name> -PIN <PIN> (use in conjunction with the -u parameter for the BlackBerry Enterprise Server for MDS Applications only) -b <BlackBerry_Enterprise_Server_service_name> -sqluser <database_username> (if you use database authentication) -sqlpass <database_username> (if you use database authentication) 2. Type besuseradminclient -handheld_info -modules and the following parameters:
89
-n <network_address of the User Administration service> (if the User Administration service and User Administration client do not run on the same computer)
See Parameters available for the User Administration tool on page 92 for more information.
Example: Viewing the modules and .cod files on a BlackBerry device
See Parameters available for the User Administration tool on page 92 for more information.
Example: Obtaining statistics for a BlackBerry Enterprise Server
90
91
92
Parameter -f -folders
Description removes all user account information lists the folder name and redirection states Platform: Use this parameter with the BlackBerry Enterprise Server for Microsoft Exchange, the BlackBerry Enterprise Server for IBM Lotus Domino, and the BlackBerry Enterprise Server for Novell GroupWise only.
-foldername <folder_name> specifies the name of the folder on which to perform the action
specifies the name of the group on which to perform the action Note: This parameter overrides the -u and -b parameters. specifies the name of the group in which to add a new user account (-add) or to add an existing user account (-change) lists the groups in the BlackBerry Domain removes a user account, even if the tool does not find the mailbox Platform: Use this parameter with the BlackBerry Enterprise Server for Microsoft Exchange only.
displays help information for a specific User Administration client command displays BlackBerry device statistics specifies the name of the new-line delimited input file Notes: This parameter overrides the -u, -b, -pin, it_policy, and -w parameters. Use this parameter with -set_owner_info and -resend_peer_to_peer_key to set the information for multiple users at the same time.
all -hhstats
-add; use the following format: <user name>, <BlackBerryEnterpriseServerservicename> ,[<PIN>[,<password>[,<ITpolicy>, [<groupname>]]]] -delete; use the following format: <username>, <BlackBerryEnterpriseServerservicename> -move; use the following format: <username>, <source BlackBerryEnterpriseServerservicename>, <targetBlackBerryEnterpriseServerservice name>[,<PIN>] -set_owner_info; use the following format: <username>, <BlackBerryEnterpriseServerservicename> [,<name>[,<info>[,<infofile>]]] -resend_peer_to_peer_key; use the following format: <username>, <BlackBerryEnterpriseServerservicename>
-hhstats; -apps; -send_email; -send_pin; -resend_service_book; -assign_swconfig; -stats -info <info> specifies the owner information for a BlackBerry device -set_owner_info
93
Description specifies the name of the file that contains the owner information; enables you to insert line breaks in the owner information Note: This parameter overrides the -subject and -body parameters.
Use with -set_owner_info; -send_ email and -send_pin; use the following format: Subject= <value> Body= <value>
specifies which IT policies in the BlackBerry Configuration Database to -list display specifies the name of the IT policy to apply to the user account Note: A lists of valid IT policies is available in the BlackBerry Manager. You can also obtain the list if you run the User Administration client with the -list it_policies option. -add; -change; -it_policy_rules; -list
lists the IT policy rules for a particular IT policy specifies the module or .cod file to display
-list -handheld_info
specifies the network address (IP address or computer host name) of the all computer on which the User Administration service runs Note: Use this option only if the User Administration client and the User Administration service do not run on the same computer.
specifies the user name to appear on the BlackBerry device specifies the file in which to save output information
-set_owner_info all
specifies the client password that the User Administration client should all use to authenticate with the User Administration service Note: The User Administration service prompts you to create and type the client password during the installation process.
-pin <PIN>
-add
-pimaddr specifies the BlackBerry Enterprise Server name and the relative path to -add, -change <servername>!!<datapath> the IBM Lotus Notes Data folder for storing the PIM address book when you add a user account Platform: Use this parameter with the BlackBerry Enterprise Server for IBM Lotus Domino only. -pimmemo specifies the BlackBerry Enterprise Server name and the relative path to -add, -change <servername>!!<datapath> the IBM Lotus Notes Data folder for storing the memo database when you add a user account. Platform: Use this parameter with the BlackBerry Enteprise Server for IBM Lotus Domino only. -policy_rule <policy_rule_name> -policy_value <value> specifies the IT policy rule name in the IT policy specifies the value for the specified IT policy rule Platform: Use this parameter with the BlackBerry Enterprise Server for Microsoft Exchange, the BlackBerry Enterprise Server for IBM Lotus Domino, and the BlackBerry Enterprise Server for Novell GroupWise only. -servers specifies all BlackBerry Enterprise Servers -stats -set_user_itpolicy_rule -set_user_itpolicy_rule -change
94
Description
Use with
specifies the database login account for SQL authentication or IBM DB2 all UDB authentication Note: For role-based administration, you must use this parameter if you use database authentication to connect to the BlackBerry Configuration Database.
-sqlpass <database_password>
specifies the database password Note: For role-based administration, you must use this parameter if you use database authentication to connect to the BlackBerry Configuration Database. specifies the name of the software configuration to which you want to add the user account
all
-sw <configuration_name>
-assign_swconfig -move
-t specifies the BlackBerry Enterprise Server service name to which you <target_BlackBerry_Enterp want to move the user rise_Server_service_name> -u <user_name> specifies the user account on which to perform the action Microsoft Exchange: mailbox name; for example, [email protected] IBM Lotus Domino: canonical name; for example, CN=Clyde Warren/O=Server01 Novell GroupWise: User ID, for example; clydewarren BlackBerry MDS Applications: PIN of the BlackBerry device
-add; -change; -delete; -move; -find; -list -folders; -set_password; -set_owner_info; -kill_handheld; -resend_peer_to_peer_key; -resend_service_book; -assign_swconfig; -send_email; -send_pin; -purge_pending_messages; -set_folder_redirection; -set_user_itpolicy_rule -handheld_info -hhstats
-users
-users -b specifies all user accounts on the specified BlackBerry Enterprise Server -stats <BlackBerry_Enterprise_Se rver_service_name> -users -g <group_name> -v specifies all user accounts in the specified group -stats provides detailed feedback about the steps for the performed action; all also provides the role assigned to the user account for which you are logged in to the User Administration client when you are using the User Administration tool Note: By default, the parameter is terse, which provides error and completion messages. -w <password> -wt <password_expiry_time> specifies the password for wireless activation specifies a password expiration time, in hours (between 1 and 720) Note: The default expiration time is 48 hours. Use this parameter with the -w parameter. -add; -change; -w -add; -change
95
96
9
Upgrading and removing the BlackBerry Enterprise Server Resource Kit
Upgrading the BlackBerry Enterprise Server Resource Kit tools Removing the BlackBerry Enterprise Server Resource Kit tools
HistoricalStats.exe MDSPushvsPull.exe
3. In the Microsoft Windows Services window, start the BlackBerry User Administration Service.
98
99
5. In the Registry Editor, browse to HKEY_CURRENT_USER > Software > Research In Motion > BlackBerry Enterprise Server. 6. Remove the Admin key and subkeys. 7. On the computer on which the User Administration client component resides, remove BESUserAdminClient.exe and CE.dll.
100
A
Appendix A: Error codes for the User Administration tool
Error code Error message -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 Service busy adding Service busy deleting Service busy initializing No profile for server Problem retrieving ServerDN MAPILOGON failed GETMSGSTORESTABLE failed HRQUERYALLROWS failed OPENMSGSTORE failed No default MSGSTORE found QUERYINTERFACE failed CREATEPMDATABASE failed Open server database failed Open address book failed MAPIALLOCATERBUFFER failed Open server manager failed Initialize failed Get user info failed User exists User does not exist Description of error message The User Administration tool is busy removing user accounts. The User Administration service is busy starting. The MAPI profile for the specified BlackBerry Enterprise Server does not exist. The User Administration tool could not retrieve the distinguished name of the messaging server. Platform Microsoft Exchange Microsoft Exchange Microsoft Exchange Microsoft Exchange The User Administration tool is busy adding user accounts. Microsoft Exchange
The User Administration service could not log into the MAPI Microsoft Exchange subsystem. The User Administration tool could not retrieve the message Microsoft Exchange stores table. The User Administration tool could not query all message stores. The User Administration tool could not open the message store. The User Administration tool could not find the message store. The User Administration tool could not query the message store. Microsoft Exchange Microsoft Exchange Microsoft Exchange Microsoft Exchange
The User Administration tool could not retrieve settings for Microsoft Exchange the user account. The User Administration tool could not open the BlackBerry Microsoft Exchange Configuration Database. The User Administration tool could not open the Global Address Book. A problem occurred in the MAPI subsystem. The User Administration tool failed to open the server manager. The User Administration tool could not find the user account in the address book. The user account already exists on the BlackBerry Enterprise Server. The user account does not exist on the BlackBerry Enterprise Server. Microsoft Exchange Microsoft Exchange All
The User Administration service could not start successfully. All All All All
Error code Error message -22 -23 -24 -25 -26 -27 -28 Get user list failed User exists on another server Service busy listing Server does not exist No session ID Service busy License count exceeded
Description of error message The User Administration tool could not retrieve the user accounts from the BlackBerry Enterprise Server. The user account exists on another BlackBerry Enterprise Server. The User Administration tool is busy listing information. The specified BlackBerry Enterprise Server does not exist. A valid session was not found.
The User Administration service is busy and cannot respond All to the request from the User Administration client. The User Administration tool could not add the user account. The license count for the BlackBerry Enterprise Server has been exceeded. All
-30
The User Administration tool could not retrieve information Microsoft Exchange for the specified user account; multiple user accounts were returned. The User Administration service could not connect to the BlackBerry Configuration Database. The User Administration tool could not retrieve the license key from the BlackBerry Configuration Database. All All
-31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -42 -43 -44 -45 -46
MGMT_DATABASE not found License key not found User license exceeded MDS license exceeded User and MDS license exceeded User does not exist on server Invalid password Server names match REMOVEPAGER failed Database update failed Load server failed Cannot get peer to peer key ITPolicy does not exist Failed to set OTA password in database No results found
The user license count for the BlackBerry Enterprise Server All has been exceeded. The license count for the BlackBerry MDS Connection Service has been exceeded. The license count for the BlackBerry Enterprise Server and BlackBerry MDS Connection Service has been exceeded. All All
The user account does not exist on the specified BlackBerry All Enterprise Server. The specified password is incorrect. The source BlackBerry Enterprise Server and destination BlackBerry Enterprise Server are the same. The User Administration tool could not remove the user account from the BlackBerry Enterprise Server. The User Administration tool could not update the BlackBerry Configuration Database. All All All All
The User Administration tool could not load information for All the specified BlackBerry Enterprise Server. The User Administration tool could not retrieve the peer-to- All peer encryption key. The specified IT policy does not exist in the BlackBerry Domain. The User Administration tool could not set the enterprise activation password. The User Administration tool could not find the user account when it performed a -find user task. All All All
102
Error code Error message -47 -48 -49 -50 -51 -52 Load user failed Could not open pager info An error occurred when setting the ITPolicy Clear PIN not supported Load IT policies failed Invalid SQL authentication parameters
Platform
The User Administration tool could not load information for All the specified user account. The User Administration tool could not load information for Microsoft Exchange the user account. A problem occurred while the User Administration tool was All attempting to assign an IT policy to the user account. An attempt to clear a user account PIN was unsuccessful because the clear PIN task is not supported. The User Administration tool could not load the IT policies list. IBM Lotus Domino All
Authentication with the BlackBerry Configuration Database All using SQL authentication is unsuccessful. Verify that the correct parameters are specified for the -sqluser or -sqlpass parameters.
-53 -54 -55 -56 -57 -58 -59 -60 -61 -62
Insufficient permissions Client database connect failed Unable to determine client role Unable to determine client user Client is not logged in Service database connect failed
The current user role does not have permission to perform the action. The client could not authenticate with the BlackBerry Configuration Database. The role of the client user could not be determined. The user account of the client could not be determined. The client could not be authenticated. The User Administration service could not establish a connection with the BlackBerry Configuration Database.
Cannot establish a secure connection A secure connection between the client and server could not All be established. Group does not exist Server could not create session id Group-based management not supported System request error Client is not using service account Client verification failed Software configuration does not exist The specified group does not exist on the BlackBerry Enterprise Server The session could not be created. An attempt to use group-based management features was unsuccessful because group-based management features are not supported. A system request error occurred. The client is not logged in using the same user account as the User Administration service account. An error occurred when trying to authenticate the client. The specified software configuration does not exist. All All All
Error assigning software configuration An error occurred while attempting to assign the software configuration to the user account. PIM location change not supported PIM address book location change failed PIM memo location change failed An error occurred while attempting to set the PIM address book location.
An error occurred while attempting to change a users PIM IBM Lotus Domino address book location. An error occurred while attempting to change the users PIM memo location. IBM Lotus Domino
103
Platform
An error occurred while attempting to send a message to a Microsoft Exchange user account. IBM Lotus Domino Novell GroupWise The user account does not have a valid user account PIN. An error occurred while attempting to send a message to multiple user accounts. All Microsoft Exchange IBM Lotus Domino Novell GroupWise Novell GroupWise
-72 -73
User does not have a valid PIN Submit message failed for all users
Set address book subscribed change failed Set address book subscribed change not supported Purge pending messages failed
An error occurred while attempting to change the PIM address book subscription setting.
An attempt to change the PIM address book subscription Microsoft Exchange setting was unsuccessful because the task is not supported. IBM Lotus Domino An error occurred while attempting to purge a pending message for a user account. Microsoft Exchange IBM Lotus Domino Novell GroupWise Microsoft Exchange IBM Lotus Domino Novell GroupWise MDS Applications
-77
Purge pending messages failed for all An error occurred while attempting to purge a pending users message for a group.
-78
The task is not supported by the BlackBerry Enterprise Server for MDS Applications User PIN required Message redirection not supported Purge pending messages not supported Clear filters not supported Send email message not supported Hard delete not supported Full erase not supported. Folder not found
The specified task is not supported by the BlackBerry Enterprise Server for MDS Applications. The users PIN is required for the specified task. Message redirection is not supported by the BlackBerry Enterprise Server for MDS Applications. Purging pending messages is not supported by the BlackBerry Enterprise Server for MDS Applications. Clearing filters is not supported by the BlackBerry Enterprise Server for MDS Applications.
Sending email messages is not supported by the BlackBerry MDS Applications Enterprise Server for MDS Applications. Hard deletion is not supported by the BlackBerry Enterprise MDS Applications Server for MDS Applications. Full deletion of mailstore information is not supported by the BlackBerry Enterprise Server for MDS Applications. An attempt to locate a folder failed. MDS Applications Microsoft Exchange IBM Lotus Domino Novell GroupWise
-87 -88
An attempt to start a Notes session failed. An attempt to set the folder redirection state failed.
IBM Lotus Domino Microsoft Exchange IBM Lotus Domino Novell GroupWise
104
Error code Error message -89 Folder synchronization information not found in the BlackBerry Configuration Database. Invalid PIN specified IT policy rule not found IT policy specified is not a per-user IT policy Setting per-user IT policy for a user account failed Set folder redirection not supported Display folders not supported Failed to receive User Admin service status A user with the specified PIN already exists
Description of error message An attempt to locate folder synchronization information in the BlackBerry Configuration Database failed.
Platform Microsoft Exchange IBM Lotus Domino Novell GroupWise All All All All
An invalid PIN was specified. An attempt to locate an IT policy was unsuccessful. The specified IT policy is not a per-user IT policy. An error occurred while attempting to set a per-user IT policy rule for a user account.
Setting folder redirection is not supported by the BlackBerry MDS Applications Enterprise Server for MDS Applications. Listing folders is not supported by the BlackBerry Enterprise MDS Applications Server for MDS Applications. An attempt to retrieve status information from the User Administration service failed. All
An attempt to add a BlackBerry device to a user account that All already exists on the BlackBerry Enterprise Server
105
106