Use this topic to safely shut down the server and to plan for controlled
server restart operations.
Turning off your system takes careful attention. If you turn off the system
without completing the following tasks, data might be damaged or the system
might behave in unpredictable ways. The iSeries™ server provides several ways
to safely turn off your system.
- Use the Power Down System (PWRDWNSYS) command to either perform a controlled
shutdown operation or to shut down the system immediately.
- You can stop the system using the Power On and Off Tasks (POWER) menu.
To get to the Power On and Off Tasks menu, type go power on
any command line and press Enter.
- You can set up a schedule that automatically turns your system on and
off. You can determine the time of day that you want the system turned on
and off. You can also specify special circumstances that change the normal
daily schedule, such as a holiday or special closing.
- In emergencies you can stop the system by using the Power button. However,
using the Power button might cause errors with your data files and other objects
on the system.
Before you turn off your system, you must complete the following tasks.
Make sure all batch jobs are finished
and users are signed off the system
- Send a message that interrupts all users signed on the system telling
them to sign off.
- Type GO MANAGESYS and press Enter.
- Select option 12 (Work with signed-on users) on the Manage Your System,
Users, and Devices (MANAGESYS) menu.
Note: If the Work with User Jobs display
is shown, you need to switch to basic assistance level using F21.
- Press F10 (Send message to all) on the Work with Signed-On Users display.
- Type the message in the Message text field on the Send a Message display
and press F10 (Send).
- Wait for the users to sign off.
- Check to make sure all users have signed off by pressing F5 (Refresh)
on the Work with Signed-On Users display. When everyone is signed off the
system, the display will show only your job. To sign someone off the system,
use option 4 (Sign off).
Note: If you have separate interactive subsystems,
other than the controlling subsystem, you might want to stop
the interactive subsystems when the users have signed off. This prevents them
from signing on again before you stop the system. See Working with Subsystems
for information about how to end a subsystem.
Check the status of any batch jobs
that might be affected if the system is powered down
- On any command line, type GO MANAGESYS and press Enter.
- Select option 11 (Work with jobs) on the Manage Your System, Users, and
Devices (MANAGESYS) menu.
Note: If the Work with User Jobs display is shown,
you need to switch to basic assistance level using F21.
- Press F14 (Select other jobs) on the Work with Jobs display.
- Type *all in the User field.
- Type an N in every field except the Message waiting, Running, and Running
job held fields. The Work with Jobs display is shown again with the batch
jobs listed.
- If any job queues have jobs waiting to run, press F22 (Work with job queues)
to see the Work with Job Queues display.
- Hold any job queues that have jobs waiting to run on the Work with Job
Queues display. Release these job queues when you start the system again.
- Press F12 (Cancel) to return to the Work with Jobs display.
- Press F5 (Refresh) every few minutes until all batch jobs have completed
processing.