HP 3000 Manuals

Recommended Shutdown Procedure [ Introduction to MPE XL for MPE V System Administrators ] MPE/iX 5.0 Documentation


Introduction to MPE XL for MPE V System Administrators

Recommended Shutdown Procedure 

The SHUTDOWN procedure consists of several steps, including:

   *   Telling users well in advance of a planned shutdown.

   *   Warning users a few minutes before the shutdown.

   *   Preventing anyone from starting a new job or session, or printing
       new reports.

   *   Clearing the backlog of reports before the shutdown.

   *   Shutting any communications lines on the system.

   *   Answering any console requests.

   *   Suspending or aborting any jobs, and aborting any remaining
       sessions.

   *   Typing the =SHUTDOWN command.

To shut down the system:

   1.  Include shutdown information in the WELCOME message.  Remember to
       include information about the time of the shutdown and who a user
       should contact with questions.  Erase the current WELCOME message
       and create a new one by entering:

            :WELCOME

       When the pound sign prompt (#) appears, enter the message line by
       line, terminating each line with Return.  Enter Return at the
       prompt to terminate the WELCOME message facility.

       You may also specify an ASCII file which contains the message by
       entering:

            :WELCOME filename

       When users log on to the computer, the message notifies them of
       the impending shutdown, so they can plan their schedule
       accordingly.

   2.  Tell users about the shutdown approximately 15 minutes beforehand.
       Enter:

            :TELL @S;Shutdown in 15 minutes.  Please log off.

       This message reaches all active terminals, except those in Quiet
       Mode.

   3.  Prevent new system activity.  Enter:

            :LIMIT 0,0
            :JOBFENCE 14
            :LOGOFF #Snnn

       The command LIMIT 0,0 limits the number of concurrently running
       jobs and sessions.  The two parameters x,x define the allowed
       number of jobs and sessions, respectively.

       The command JOBFENCE 14 defines the minimum input priority that a
       job or session must have to execute.  The parameter, 14, raises
       the jobfence to the highest level.

       The command LOGOFF #Snnn logs off everyone except the session from
       which you are working (#Snnn).  It also makes it impossible to log
       on via the ;HIPRI parameter.

       Disable Network Services.  Enter:

            :NSCONTROL STOP

       This prevents new users from initiating services.  Existing users
       of the service (VT, VTR, NFT, etc.)  can continue until they
       finish.

   4.  Check the printing activities.  Enter:

            :SHOWOUT SP

       This lists the printing activities.  The system responds with two
       possible results.  If the system responds, NO SUCH FILE(S),
       continue with Step 8.

       On the other hand, the system may respond with a a list of every
       report waiting to be printed.

   5.  Shut down the spool queues to prevent users from sending reports
       to the printer.  Enter:

            :SHOWDEV nn

       where nn is your printer's ldev number.

       If the printer's status is AVAIL, enter:

            :SHUTQ nn

       (If the printer's status is UNAVAIL, proceed with Step 6.)

       The command :SHUTQ nn closes the queue of the device named in nn
       and prevents new spoolfiles from being created.

       If you were successful in closing the queue, the system responds
       with a message.

   6.  List the backlog of existing reports.  Enter:

            :SHOWOUT SP

       This lists all spoolfiles.

       Check the RANK column to see if any spoolfiles are listed as D
       (for deferred).  If none are deferred, continue with

   7.  Reset the system outfence to allow jobs to pass.  Enter:

            :OUTFENCE 1

       You may alter a reports priority or alter the jobfence of a
       particular printer.  Refer to Performing System Management Tasks 
       (32650-90004) for more information.

       You may also create a tape containing the deferred reports and
       transfer these reports back to the system when it has been
       restarted.  Refer to Native Mode Spooler Reference Manual 
       (32650-90166) and Chapter 9 for more information.

   8.  WARN users two minutes before shutting down the system.  Enter:

            :WARN @S;SYSTEM SHUTDOWN IN 2 MINUTES.
            PLEASE LOG OFF.

       A warning reaches all terminals in use.

   9.  Locate all jobs and sessions still in progress or scheduled.
       Enter:

            :SHOWJOB JOB=@S

              and

            :SHOWJOB JOB=@J

  10.  Suspend all jobs.  Enter:

            :BREAKJOB #Jnnn

       where nnn is the job number, for each job you wish to suspend.
       When you've finished, list all jobs.  Enter:

            :SHOWJOB

  11.  Abort all jobs, except the Console.

       _________________________________________________________________ 

       NOTE  Before you abort any scheduled jobs, write down their job
             name and the date and time it's scheduled to begin.  This
             way you can correctly reschedule the jobs after you start
             the computer again.

       _________________________________________________________________ 

       Enter:

            :ABORTJOB #Jnnn

  12.  Decide what to do with remaining spool files.  Enter:

            :SHOWOUT SP

       If there are no remaining spoolfiles or only a few small files
       (for example, files of less than 1000 sectors), continue with

       If many spool files remain, store them to tape.

       Prevent any more printing by raising the outfence.  Enter:

            :OUTFENCE 14

       Create necessary file equations.  Prepare and mount a tape on the
       drive.  Enter:

            :FILE T;DEV=TAPE

       Use the SPOOK utility to store the spoolfiles to tape.  Enter:

            :SPOOK

       Wait for the SPOOK utility prompt (>).  Enter:

            :OUTPUT @.@;*T;PURGE;SHOW=OFFLINE

       Respond to the tape request.  Enter:

            :CTRL A 

       _________________________________________________________________ 

       NOTE  The prompt changes to (=) to indicate that CTRL A mode is
             active.  The MPE XL prompt returns when MPE XL is running.

       _________________________________________________________________ 

       Wait for the prompt.  Enter:

            =REPLY nn,n,Y

       where nn is your PIN and n is the tape drive's ldev number.

       Remove, label, and secure the finished tape.

       Exit the SPOOK utility.  Enter:

            >EXIT

       The system responds with the message:

            END OF PROGRAM

  13.  Issue a warning one minute before the shutdown and warn users that
       they will be logged off if they are on the system at that time.
       Enter:

            :WARN @S;SYSTEM SHUTDOWN IN 1 MINUTE.  ALL USERS
            WILL BE LOGGED OFF AT THAT TIME.

       A warning reaches all terminals in use.

  14.  Check to make sure all users have logged off.  Enter:

            :SHOWJOB

  15.  Abort any remaining sessions, except your own.  Enter:

            :ABORTJOB #Snnn

       where #Snnn is the session number for each session you wish to
       abort.

  16.  Shut communications lines.  Enter:

            :NSCONTROL STATUS=USERS
            :NSCONTROL STATUS=SERVERS

       These commands check to see if any network users or servers
       remain.

       Now enter:

            :NSCONTROL ABORT

       This will terminate any remaining servers and services.

       Finally, enter:

            :NETCONTROL STOP

       _________________________________________________________________ 

       WARNING  If you are shutting down the computer to do a system
                backup, STOP HERE. Since everyone has logged off the
                computer and all job processing is suspended, you can
                safely duplicate any files.

       _________________________________________________________________ 

  17.  Shut down the system.  Enter:

            CTRL A 

       Now enter:

            =SHUTDOWN to shut down the system.

       The Console responds by listing shutdown messages similar to
       these:

                 Shutdown of operating system begins. (Shut 1)
                 Shutdown of user processes begins (Shut 2)
                 Shutdown of jobs & sessions begins. (Shut 3)
                 Spoolers notified of a shutdown. (Shut 16)
                 Shutdown of system processes begins. (Shut 4)
                 Shutdown of system managers begins. (Shut 5)
                 Shutdown of operating system complete. (Shut 6)



MPE/iX 5.0 Documentation