BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 05-02-2006, 07:57 AM   #1
Joseph4200
Knows Where the Search Button Is
 
Joseph4200's Avatar
 
Join Date: Sep 2005
Location: GA
Model: 8703e
Carrier: Verizon
Posts: 37
Default BES Scheduled Reboot?

Please Login to Remove!

Hey guys currently my BES is running low on memory and we are subjected to reboot once a week to get it back in line.

Our BES is Lotus Domino 4.0 and its on service pack 3 hotfix 4

SQL and Lotus domino reside on the same BES so thats why our resources are getting chewed up.

We are currently working on a project to aleve this but it will be atleast a few weeks before it can be implemented.

The question i have though, does anybody know hot to make a macro that can run in the scheduled tasks that shuts down the BES services, SQL services and Domino services and then restarts them on a weekly basis?

We would rater do this then totally restart the server. But none of us are really good at writing a script.

Any info would be greatly appreciated.
__________________
Gamertag = Dozer
IGN Boards = Joseph4200
Offline  
Old 05-02-2006, 08:25 AM   #2
Sagz
Knows Where the Search Button Is
 
Join Date: Feb 2006
Model: 8100t
Carrier: tmobile
Posts: 45
Default

I want to assume that your SQL is running on a seperate box than your BES box. We do weekly reboots each data center has a different night.
The scripts are easy to write here is a pretty good reference guide labmice.techtarget.com/articles/batchcmds.htm You can google and find more info on domino or sql maint, also go to lotus' web page.


Here are some samples to get you started.

You should break them all up into different .cmd files and then use a at commands to schedule them.

Code:
To stop services use this command:
Net Stop "<Service name you want to stop>"

After you stop the services:
Use NSD -kill to ensure the domino portions has stopped

To reboot box

C:\windows\System32\tsshutdn.exe 30 /SERVER:<Server Name> /REBOOT /DELAY:30 /V

Maint on the box like fixup updall and compact

<Change to drive of data>
f:
cd\lotus\domino\data
ncompact mail1.box -t -U -c >> d:\scripts\srvmaintp.log
ncompact mail2.box -t -U -c >> d:\scripts\srvmaintp.log
ncompact log.nsf -T -U -c >> d:\scripts\srvmaintp.log
ncompact BES\BlackBerryOutbox.nsf -U -c >> d:\scripts\srvmaintp.log
ncompact BES\BlackBerryProfiles.nsf -U -c >> d:\scripts\srvmaintp.log
ncompact BES\BBdir.nsf -U -c >> d:\scripts\srvmaintp.log
ncompact BES\BBstats.nsf -U -C >> d:\scripts\srvmaintp.log
nupdall BES\BlackBerryOutbox.nsf -R >> d:\scripts\srvmaintp.log
nupdall BES\BlackBerryProfiles.nsf -R >> d:\scripts\srvmaintp.log
nupdall BES\BBdir.nsf -R >> d:\scripts\srvmaintp.log
nupdall BES\BBstats.nsf -R >> d:\scripts\srvmaintp.log
nfixup BES\BlackBerryOutbox.nsf  >> d:\scripts\srvmaintp.log
nfixup BES\BlackBerryProfiles.nsf >> d:\scripts\srvmaintp.log
nfixup BES\BBdir.nsf >> d:\scripts\srvmaintp.log
nfixup BES\BBstats.nsf >> d:\scripts\srvmaintp.log

Last edited by Sagz; 05-02-2006 at 08:28 AM..
Offline  
Old 05-02-2006, 08:35 AM   #3
Joseph4200
Knows Where the Search Button Is
 
Joseph4200's Avatar
 
Join Date: Sep 2005
Location: GA
Model: 8703e
Carrier: Verizon
Posts: 37
Default

Thanks man!

But no our SQL is running on the same box,

We are currently looking into buying a redundancy server and a stand alone SQL server to help resolve this issue.
__________________
Gamertag = Dozer
IGN Boards = Joseph4200
Offline  
Old 05-02-2006, 08:44 AM   #4
Sagz
Knows Where the Search Button Is
 
Join Date: Feb 2006
Model: 8100t
Carrier: tmobile
Posts: 45
Default

Most of your memory issues are most likely coming from having SQL on the same box.

You can add SQL shutdown in there by using the service shut down command to tell the SQL service to stop.

How much memory do you have on your current server?
Offline  
Old 05-02-2006, 01:22 PM   #5
Joseph4200
Knows Where the Search Button Is
 
Joseph4200's Avatar
 
Join Date: Sep 2005
Location: GA
Model: 8703e
Carrier: Verizon
Posts: 37
Default

we have 3 gigs of memory and it fills up pretty fast.

Yeah we definately need to put SQL on its own server, we are just waiting on approval
__________________
Gamertag = Dozer
IGN Boards = Joseph4200
Offline  
Closed Thread



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Vintage V-Mac Industries Inc. Pipe Threader Vosper Drophead Threader - READ picture

Vintage V-Mac Industries Inc. Pipe Threader Vosper Drophead Threader - READ

$199.00



VINTAGE MAC TOOLS 30 PSI/200 KPA AIR PRESSURE GAGE picture

VINTAGE MAC TOOLS 30 PSI/200 KPA AIR PRESSURE GAGE

$24.95



Vintage MAC Tools ET905 Voltage Ohms Dwell Tach Multimeter (K) picture

Vintage MAC Tools ET905 Voltage Ohms Dwell Tach Multimeter (K)

$59.99



Vintage Mac Tools AW343 Series 1/2 Pneumatic Impact Driver  picture

Vintage Mac Tools AW343 Series 1/2 Pneumatic Impact Driver

$40.00



Vintage Mac Warehouse  3.5” Floppy Disk Solar Powered Calculator Company Swag picture

Vintage Mac Warehouse 3.5” Floppy Disk Solar Powered Calculator Company Swag

$66.60



Vintage MAC Knife Japan 4.75

Vintage MAC Knife Japan 4.75" Folding Lock Blade Knife Chef Pocket Knife Utility

$224.99







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