BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 10-30-2007, 10:16 AM   #1 (permalink)
BlackBerry Genius
 
hdawg's Avatar
 
Join Date: Aug 2006
Model: hdawg
PIN: port3101.org
Carrier: hdawg
Posts: 6,632
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Script to send a user list / dump of your BES

Please Login to Remove!

@for /f "Tokens=1-4 Delims=/ " %%i in ('date /t') do @set dt=%%l-%%j-%%k-%%i
@for /f "Tokens=1" %%i in ('time /t') do @set tm=-%%i
@set tm=%tm::=-%
@set dtt=%dt%%tm%
@echo Running BES User Report for: %dtt%.
@echo Please wait...

@if not exist C:\BESREPORTS mkdir C:\BESREPORTS
@cd /D "C:\Program Files\Research In Motion\BlackBerry Enterprise Server BESUserAdmin\4.1.4\BESUserAdmin"
@besuseradminclient -p <BESUserAdminService Password> -b <BES Server Name> -stats -users -o C:\BESREPORTS\user-report.txt
@cd /D C:\BESREPORTS\tools\blat\blat262\full
blat -to <destination email address> -f <senders email address> -server <smtp server name> -p 25 -s "BES User Report - %dtt%" -body "Please see the attached BES user report" -attacht C:\BESREPORTS\user-report.txt
@cd /D C:\BESREPORTS
@ren user-report.txt "BESUserReport-%dtt%.txt"

-----

Assumptions are made with this:

1) You already have the BESUserAdminService running
2) You have an SMTP server you can send mail anonymously through (you can use a profile if needed with blat ... just read the help)
3) You have blat
-----

Schedule this daily / weekly and you'll be able to see trends easily.
Offline  
Closed Thread


Thread Tools

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

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

Allen Bradley EEPROM PLC Memory Module P/N 1772-MJ
$20.04
Allen Bradley EEPROM PLC Memory Module P/N 1772-MJ  pictureSchneider TWDXCPMFK32 Twido 204445 EEPROM
$37.0
Schneider TWDXCPMFK32 Twido 204445 EEPROM picture50-PCS IC M24C02-WDW6T EEPROM 2KBIT 400KHZ TSSOP ST MICRO M24C02-WDW6T 24C02WDW6
$25.97
50-PCS IC M24C02-WDW6T EEPROM 2KBIT 400KHZ TSSOP ST MICRO M24C02-WDW6T 24C02WDW6 picture75-PCS IC 24FC128-I/SN EEPROM 128KBIT 1MHZ SOIC MICROCHIP 2 24FC128-I/SN 24FC128
$25.45
75-PCS IC 24FC128-I/SN EEPROM 128KBIT 1MHZ SOIC MICROCHIP 2 24FC128-I/SN 24FC128 picture15-PCS NM24C16M8 EEPROM SERIAL-2WIRE 16K-BIT 1K X 16 5V 8-PIN SOIC W TUBE
$25.77
15-PCS NM24C16M8 EEPROM SERIAL-2WIRE 16K-BIT 1K X 16 5V 8-PIN SOIC W TUBE picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.