UBQ ID Number: UBQ000038
Last Modified: 2000-06-05 at 10:43:23
SUMMARY:
How to stop and start Exchange services on local or remote servers. Used to create batch files that would be used in the Before/After commands of UltraBac.
DETAILS:
Exchange Stop/Start Command Lines
UltraBac provides "Before" and "After" batch command line interface opportunities as detailed in the "Before/After Programs & Client Passwords" section found in the "Creating Backup Sets" chapter. Some Exchange specific "Before/After" commands follow:
To stop Exchange, create a batch file with the following:
NET STOP MSEXCHANGESA /y
To start Exchange, create a batch file with the following:
NET START MSEXCHANGESA
NET START MSEXCHANGEIS
NET START MSEXCHANGEDS
NET START MSEXCHANGEMTA
NET START MSEXCHANGEIMC
To stop and start Exchange on a remote machine, you must have the Windows NT/2000 Resource Kit installed on the computer running UltraBac. The commands necessary are contained within that Resource Kit. Wait.exe is available as sleep.exe in the Windows NT/2000 Resource Kit. (Do not use or overwrite sleep.exe in the UltraBac directory, as it is not the same command.)
To stop Exchange on a remote machine, create a batch file with the following:
NETSVC MSEXCHANGEIMC \\MACHINENAME /STOP
WAIT.EXE 15
NETSVC MSEXCHANGEINS \\MACHINENAME /STOP
WAIT.EXE 15
NETSVC MSEXCHANGEMTA \\MACHINENAME /STOP
WAIT.EXE 15
NETSVC MSEXCHANGEIS \\MACHINENAME /STOP
WAIT.EXE 15
NETSVC MSEXCHANGEDS \\MACHINENAME /STOP
WAIT.EXE 15
NETSVC MSEXCHANGESA \\MACHINENAME /STOP
WAIT.EXE 20
To start Exchange on a remote machine, create a batch file with the following:
NETSVC MSEXCHANGESA \\MACHINENAME /START
WAIT.EXE 20
NETSVC MSEXCHANGEDS \\MACHINENAME /START
WAIT.EXE 15
NETSVC MSEXCHANGEIS \\MACHINENAME /START
WAIT.EXE 15
NETSVC MSEXCHANGEMTA \\MACHINENAME /START
WAIT.EXE 15
NETSVC MSEXCHANGEIMC \\MACHINENAME /START
WAIT.EXE 15
NETSVC MSEXCHANGEINS \\MACHINENAME /START
WAIT.EXE 1
NOTE. The optional BEI Agent module is active for evaluation copies of the software but requires purchase for permanent licensing.
MORE INFORMATION:
See UBQ: UBQ000015 – Backup Group Format
See UBQ: UBQ000016 – Before/After Backup Option Syntax
See UBQ: UBQ000018 – Backup Set Format
See UBQ: UBQ000020 – Static Exchange & SQL Backups
See UBQ: UBQ000021 – SQL Stop/Start Command Lines
See UBQ: UBQ000029 – Exchange Single Mailbox or Single Message Recovery
See UBQ: UBQ000035 – Before/After Job Macros for Sets and Groups
See UBQ: UBQ000042 – The Pros and Cons of an Exchange Brick Level Backup and Restore
CATEGORIES:
Before/After Commands, Exchange, Setup
VERSION:
2.x to 6.x
Copyright UltraBac.com 1999-2001