Control Center and Server Guide > Control Center and Server User Guide > Chapter 3: Batch Processing > Advanced Batch Processing > Shutting Down and Starting Up Environments > Shutting Down Environments

Shutting Down Environments

When you shut down an Environment, this overrides whatever was scheduled for that Environment (for all three types of schedules). The Environment remains shut down until you reinstate it by typing Suenv command in a Command Shell or Terminal (see Starting Up Environments). You can shut down multiple Environments on multiple machines, from any machine in the network.

When shutting down an Environment, the command prompts you for the Environments you want to close and the machines on which you want them to be shut down.

To shut down an Environment on a machine, follow these steps:

1. Type Sdenv in a Command Shell or Terminal. The command prompts you for the Environments to shut down:

INPUT DATABASES TO BE STOPPED

INPUT A SET OF DATABASE Environments

1 = Production, 2 = Tutorials, 3 = Commercials, default = [Production Tutorials Commercials]

All the Environments appear in this list and each one has its own number.

2. Type the number that corresponds to each Environment you want to shut down (separate each number by a space) and press [Enter].

The command prompts you for the machine or machines on which you want the Environments to be shut down:

INPUT MACHINE ON WHICH THESE DBENV'S ARE TO BE SHUTDOWN

INPUT A SINGLE MACHINE NAME, THE PREFIX OF A MACHINE NAME, OR all [hickey]:

3. Select which machines should not process the shut down Environment by typing the name of a single machine, a prefix (to select a range of machines that start with the same prefix), or all to shut down all the Environments on all the machines.

If you press [Enter] without specifying a machine, the command uses the machine name that appears in brackets.

If you type a prefix, a list of machines that contain that prefix appears. Type the numbers that correspond to the machines you want to shut down.

For example, if you have three machines that start with "hi", you can type hi as a prefix. The system would then display a list of all the machines that start with "hi":

input a set of machines, or hit return to indicate all these machines:1 = hickey, 2 = highlander, 3=high-definition

Either press [Enter] to select all the machines in the list or select machines by typing their corresponding numbers.

The command then prompts you to ask if you want to shut down more machines.

DO YOU WANT TO INPUT MORE MACHINES (y/n) [n]:

4. Decide if you want to shut down more Environments and machines.
Type y to select more machines and press [Enter].
Type n to not select any more machines and press [Enter].

When you finish, a summary of the shutdown appears:

here are the 3 machines you input: hickey weiner garneau

ALL MACHINES HAVE REPORTED. SHUT DOWN COMPLETE.

The Sdenv command waits for a response from all the selected machines. The Sdenv command does not terminate a batch process that is currently running on a machine. If a machine is currently performing a batch process, it will not shut down until it completes the queue entry.