BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 04-23-2007, 04:48 PM   #1 (permalink)
New Member
 
Join Date: Apr 2007
Model: 8100
PIN: N/A
Carrier: Rogers
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Manually start BES services from a batch file

Please Login to Remove!

Good afternoon,

1st post at this site... please be gentle

I'm trying to locate a resource that describes how I can use NET START {service} / NET STOP {service} to start and stop the BES Servcies manually.

Some of my 5 BES servers don't like to start cleanly when the BES services are started automatically.

We are using BES 4.1.0.38

thanks in advance,

Rudy Benischke
Offline  
Old 04-23-2007, 05:03 PM   #2 (permalink)
CrackBerry Addict
 
ladydi's Avatar
 
Join Date: Jun 2005
Location: Washington
Model: 8800
Carrier: T-mobile
Posts: 848
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think the better solution would be to find out why the services aren't starting properly. I've never had that problem over 3 servers and 2 years. If the services are configured to start automatically, then they should. Everytime.

Take small failures as precursors to possible greater failures.
__________________
~Di~
Windows 2003
Exchange 2003
BES 4.1
Offline  
Old 04-23-2007, 05:25 PM   #3 (permalink)
Talking BlackBerry Encyclopedia
 
AlanM's Avatar
 
Join Date: May 2005
Location: Huntsville, AL
Model: 9930
Carrier: Verizon
Posts: 335
Post Thanks: 0
Thanked 2 Times in 2 Posts
Default

Use quotes around the service name to get the NET START and NET STOP to work. Ladydi is right, need to find out why they don't start cleanly.

I use the batch files to restart services periodically, especially after I move mailboxes.

Alan
Offline  
Old 04-23-2007, 06:12 PM   #4 (permalink)
New Member
 
Join Date: Apr 2007
Model: 8100
PIN: N/A
Carrier: Rogers
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

From an intellectual standpoint, I totally agree with you both that the services should start automatically... every time...

Unfortunately, I've just inherited this "mess" and the 4 of the 5 servers are in either Europe or Asia... It's the one in Sydney and another in Norway that have been creating the grief. I'd love to have the luxury to rebuild the servers to my specs but I don't... Maybe some company trips are in the horizon for me...

I'll the enclosing the services in "quotes"

Cheers,

Rudy
Offline  
Old 04-26-2007, 11:35 AM   #5 (permalink)
Ugg
Thumbs Must Hurt
 
Join Date: Dec 2006
Model: 8310
OS: 4.5
Carrier: O2
Posts: 197
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

You could try using "sc" instead of "net start"; it also allows you to set services temporarily to manual with e.g.:

sc config "Blackberry Server Alert" start= demand

and likewise "auto" and "disabled". You'll still need to quote the service name of course.

One thing to watch out for - if you have different mail servers (e.g. Exchange and Lotus) or different BES versions (e.g. 4.0 and 4.1) you might get slightly different service names. You won't get an "MdsTomcat" unless you've installed MDS Services, for example.

What do the logs say about the services not starting at boot though?
Offline  
Old 04-26-2007, 02:41 PM   #6 (permalink)
New Member
 
Join Date: Apr 2007
Model: 8100
PIN: N/A
Carrier: Rogers
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

So... I created the CMD files with the Net Start commands... works like a dream

I'll look at SC...

No real errors logged in the Event log... just some warnings about "error calling host 127.0.0.1" Too damn busy to troubleshoot further at this point, unfortunately..


thanks for all the advice folks.
Offline  
Old 04-26-2007, 06:59 PM   #7 (permalink)
Thumbs Must Hurt
 
jhoetzl's Avatar
 
Join Date: Feb 2007
Location: Central, NJ
Model: 8320
Carrier: T-Mobile
Posts: 116
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

You may also want to investigate the "recovery" options in the service's properties.

First Failure...
Second Failure...
Subsequent failures...

Options are:
Take No action
Restart the service
Run a file
Reboot the computer


Poor man's monitoring of services

First fail =
"run a file" ->
good old blat... and a bit more of a batch file...
restart service

Second after 3 minutes:
"run a file" ->
good old blat... and a bit more of a batch file...
restart service


Subsequent:
depends on how critical - but rebooting the server is an option there...
__________________

Current Device: 8320 OS: 4.2.2.338
Previous Device: 8100 OS: 4.2.1.107
BES v4.1.5/Notes 7.0.2
Offline  
Old 04-27-2007, 01:47 AM   #8 (permalink)
New Member
 
Join Date: Apr 2007
Model: 8100
PIN: N/A
Carrier: Rogers
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Another great idea...
Offline  
Closed Thread


Thread Tools

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

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





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