HPlogo Communicator e3000 MPE/iX Release 7.5 (Software Release C75.00): HP e3000 MPE/iX Computer Systems > Chapter 5 Technical Articles

SHUTDOWN - New CI Command

MPE documents

Complete PDF
Table of Contents
Index

by S Shashikala, Commercial Systems Division

Enhancements Summary


Presently MPE/iX supports the =SHUTDOWN with console interrupt [CTRL] [A]. The =SHUTDOWN command performs an implicit =LOGOFF of all sessions, including the session logged at the system console. The CPU halts, and console interrupt [CTRL] [A] is ineffective.

The objective of this enhancement is to provide the shutdown mechanism with a reboot option in the command level similar to HP-UX operating system.

This enhancement provides a :SHUTDOWN command on the CI prompt, with a RESTART option which shuts down the system completely and reboots automatically.

Enhancement


:SHUTDOWN SYSTEM [;RESTART]

Syntax

:SHUTDOWN SYSTEM will shutdown the system completely.

:SHUTDOWN SYSTEM;RESTART will shutdown the system completely and reboot the system automatically. Control will result to the ISL> prompt.

This command can be issued from a session, job, program, or in BREAK. Pressing [Break] has no effect on this command. It can be issued only from the console unless it is distributed to users with the ALLOW command.

Parameters

SYSTEM

Specifies that the entire system should be shut down completely.

RESTART

Specifies that the system should be restarted after the shut down is complete.

Operation and Use of New Command


The MPE/iX operating system is shutdown in an orderly manner. :SHUTDOWN performs the same function as =SHUTDOWN, but may be entered from the CI in a job, session, or script. The :SHUTDOWN command supports the RESTART option.OP capability is required for this command.

The :SHUTDOWN performs an implicit =LOGOFF of all sessions, including the session issuing the command. All system processes are stopped in an orderly fashion. This includes the completion of all pending system activity and any processing necessary to ensure that the integrity of all system tables and directories is maintained. Once these procedures are complete, SHUT is displayed on the console, the CPU halts, and console interrupt [CTRL] [A] is ineffective.

Device configuration changes that were made after the preceding load (UP, DOWN, ACCEPT, REFUSE and spooling commands) are not retained. Configuration changes made during coldload are permanently recorded and retained until the next tape coldload. Newly assigned or released global Resource Identification Numbers (RINs) are permanently recorded.

All communication lines must be closed before issuing a SHUTDOWN command. Otherwise, a manual halt of the system may be necessary. Note that data will be lost if a transmission is in progress when the halt is performed. Also, if NS lines were left open before issuing the SHUTDOWN, lines to the remote system remain open and any remote sessions will be effectively "hung". In this case, the remote system's operator may need to issue ABORTIO commands for the hung sessions and then abort the sessions themselves.

Spooled devices will stop operation immediately upon receiving a SHUTDOWN command. A START RECOVER will keep spool files so that they may be printed when the system is returned online.

Presently =SHUTDOWN can be issued only at the physical console. The :SHUTDOWN command can be issued from a session, job, program, or in BREAK. Pressing [Break] has no effect on this command. It can be issued only from the console unless it is distributed to users with OP capability via the ALLOW command.

Example

To shut down the MPE/iX operating system enter:

:SHUTDOWN SYSTEM

This will shutdown the system completely.

To shut down the MPE/iX operating system and initiate a subsequent reboot operation enter:

:SHUTDOWN SYSTEM ;RESTART

This will shutdown the system completely and reboot the system automatically. Operator control will resume at the ISL> prompt.

Using AUTOBOOT Feature with :SHUTDOWN;RESTART Option


Autobooting allows you to boot the system from the primary boot path without the need to make any keyboard entries. This existing feature can be combined with :SHUTDOWN SYSTEM;RESTART command to restart the system without the interaction in ISL> prompt. More information on setting-up and using AUTOBOOT feature is available in System Startup, Configuration, and Shutdown Reference Manual.

The RESTART command interacts with the AUTOBOOT feature of MPE/iX in order to minimize operator intervention. When the AUTOBOOT feature is not enabled on the system the control is returned to the ISL> prompt. When the AUTOBOOT feature is enabled as described in this section, the system is restarted automatically.

As part of setting-up AUTOBOOT feature an autoboot file needs to be created. To facilitate the easy creation of the file, an utility FORMAT.MPEXL.SYS is made available as part of this enhancement. FORMAT utility enables user to create a specially formatted file that contains the special sequence of startup commands. The system automatically executes these commands in sequence during system startup if this feature is activated.

Steps to Build and Setup an AUTOBOOT file

  1. Create a file called AUTOIN which contains the "START [NO]RECOVERY" command.
  2. Run FORMAT.MPEXL.SYS. This will create a file called AUTOOUT in the same group.
  3. Copy AUTOOUT,AUTOBOOT.MPEXL.SYS.
  4. Set the autoboot file with the SYSGEN utility.:SYSGEN
    >sy
    >aa file=autoboot.mpexl.sys;type=disc
    >hold
    >exit
    >keep
    >tape verbose
  5. Perform a configuration UPDATE to your system with the CSLT tape created under SYSGEN.
  6. After UPDATE is complete, use the ISL AUTOBOOT command to enable the autoboot feature. At the ISL prompt enter:

    ISL> AUTOBOOT ON
    ISL> START start_options
Once the above steps are complete & the autoboot feature is enabled, the command :SHUTDOWN SYSTEM;RESTART will completely shutdown the system and the startup needs no operator intervention.

(See the sample output shown below.)

Note for AUTORESTART Product Users

There is no change in behavior for Autorestart product features due to the introduction of :SHUTDOWN CI command.

However, when the :SHUTDOWN SYSTEM;RESTART command is issued and if the AUTOBOOT file has the DUMP command, the system will take a DUMP of the system and execute the rest of the commands in AUTOBOOT file.

To disable taking full DUMP during normal shutdown and restart, you can use the Mini dump feature of the AUTORESTART product. It provides FULLDUMP, NULLDUMP and MINIDUMP options.

Refer to the AUTORESTART User's Guide for details.

Sample Output


1.:SHUTDOWN SYSTEM

     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. (Shut16)
     Shutdown of system processes begins. (Shut 4)
     Shutdown of system managers begins. (Shut 5)
     Shutdown of operating system complete. (Shut 6)

2.:SHUTDOWN SYSTEM;RESTART

     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. (Shut16)
     Shutdown of system processes begins. (Shut 4)
     Shutdown of system managers begins. (Shut 5)
     Shutdown of operating system complete. (Shut 6)
 ---------------------------------------------------------------

PDC - Processor Dependent Code - Version 1.2 (c) Copyright 1990-1993,
 Hewlett-Packard Company, All rights reserved
 ---------------------------------------------------------------
 
64 MB of memory configured and tested. Primary boot path: 56/52.4 (dec)
 Alternate boot path: 56/52.0 (dec)
 
------- Main Menu ----------------------------------------------
 Command Description
 
 BOot [PRI|ALT|<path>]   Boot from specified path
 PAth [PRI|ALT] [<path>] Display or modify a path
 SEArch [DIsplay|IPL] [<path>] Search for boot devices
 COnfiguration menu      Displays or sets boot values
 INformation menu        Displays hardware information
 SERvice menu            Displays service commands
 DIsplay                 Redisplay the current menu
 HElp [<menu>|<command>] Display help for menu or command
 RESET                   Restart the system

 ------- Main Menu:
  Enter command or menu >bo pri
  Interact with IPL (Y or N)?> y
  Booting...


3.:SHUTDOWN SYSTEM;RESTART

With the AUTOBOOT feature enabled:

     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. (Shut16)
     Shutdown of system processes begins. (Shut 4)
     Shutdown of system managers begins. (Shut 5)
     Shutdown of operating system complete. (Shut 6)
 ---------------------------------------------------------------

PDC - Processor Dependent Code - Version 1.2 (c) Copyright 1990-1993,
 Hewlett-Packard Company, All rights reserved
 ---------------------------------------------------------------

64 MB of memory configured and tested. Primary boot path: 56/52.4 (dec)
 Alternate boot path: 56/52.0 (dec)
 Processor is starting autoboot process.
 To discontinue, press any key within 10 seconds.

 10 seconds expired. Proceeding...
 Trying Primary Boot Path .. .. Booting... .. ..


4.:SHUTDOWN SYSTEM;RESTART

With the DUMP-TO-DISK and AUTOBOOT feature enabled:

     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. (Shut16)
     Shutdown of system processes begins. (Shut 4)
     Shutdown of system managers begins. (Shut 5)
     Shutdown of operating system complete. (Shut 6)
 ------------------------------------------------------------

PDC - Processor Dependent Code - Version 1.2 (c) Copyright 1990-1993,
 Hewlett-Packard Company, All rights reserved
 ------------------------------------------------------------

64 MB of memory configured and tested. Primary boot path: 56/52.4 (dec)
 Alternate boot path: 56/52.0 (dec)
 Processor is starting autoboot process.
 To discontinue, press any key within 10 seconds.
 
 10 seconds expired. Proceeding...
 Trying Primary Boot Path
 ------------------------
 Booting.. .. ..
 ISL booting DUMP MPE/iX launch facility
 
 Dump of memory save area complete.
 Main memory dump complete.
 Dump completed - autoboot in progress.
 Checking for Autorestart/iX product to be active.
  Autoresrt/iX product active, Hard booting the system.
 ----------------------------------------------------------------------
 PDC - Processor Dependent Code - Version 1.2 (c) Copyright 1990-1993,
  Hewlett-Packard Company, All rights reserved
 ----------------------------------------------------------------------
 64 MB of memory configured and tested. Primary boot path: 56/52.4 (dec)
  Alternate boot path: 56/52.0 (dec)
  Processor is starting autoboot process.
  To discontinue, press any key within 10 seconds.
  10 seconds expired. Proceeding...
  Trying Primary Boot Path
  Booting... .. .. ..
  ISL booting START -R NORECOVERY
  MPE/iX launch facility
  
--------------------
end of sample output
--------------------




HP e3000 PA-8700 A-Class and N-Class Core I/O Card


Introducing Samba/iX Version 2.0.7 on MPE/iX 7.5