HPlogo Performing System Operation Tasks: 900 Series HP 3000 Computer Systems > Chapter 5 Performing System Functions

Aborting a Session

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

From the console, you can stop, or abort, someone's session. Aborting a session is an emergency measure. Usually, it is only one in a series of steps taken to handle a specific situation. For example, aborting a session is the last resort when you are troubleshooting a "hung" or unresponsive terminal. And it is possible that you may need to abort someone's session to shut down the computer, though this is less likely since an orderly shutdown automatically aborts all jobs and sessions.

To display the user name

You need at least a user name and an account name or session number to abort someone's session. If a user asks you to fix a terminal, the user must give you a user name and account name.

To find the user and account name, enter:

   SHOWJOB JOB=@S 

You'll see something like the following information on your console:

JOBNUM  STATE IPRI JIN  JLIST  INTRODUCED  JOB NAME



#S25    EXEC        20  20     MON  1:26P  OPERATOR.SYS

#S24    EXEC        22  22     SUN 12:27P  BOB.CAROLL

#S23    EXEC        24  24     SUN  9:06A  JULIE.JONES

#S64    EXEC        23  23     SUN  2:30P  MGR.PAYROLL

To abort a session

To abort a session, use the session number that you found with the SHOWJOB command. For example, to abort MGR.PAYROLL (who's session number is #S64), enter:

   ABORTJOB #S64 

You should get a logoff message like the one below, although it may take a few seconds.

14:45/#S64/32/LOGOFF ON LDEV #23

14:45 is the time when you entered ABORTJOB, #S64 is the payroll manager's session, and 23 is the hung terminal.

On the payroll manager's terminal, the computer prints the message "SESSION ABORTED BY SYSTEM MANAGEMENT" and some other information.

To summarize the procedure, complete the five steps listed below to abort a session on your computer when the need arises:

  1. Enter SHOWJOB JOB=@S to find the session number.

  2. Using that number, enter ABORTJOB #Snnn.

  3. Look for a logoff message on the console.

  4. Enter SHOWJOB #Snnn to make sure that there are "NO SUCH JOBS."

  5. Complete steps 2 through 4 again if the job was not aborted on the first attempt.

To stop all sessions in an emergency

Hopefully, you will never be forced to stop all sessions or shut down the computer system without warning your users. In case it is necessary, you use two commands to do so:

  • Issue the LOGOFF command logs off all executing jobs and sessions and prevent any further logons. This command also stops the console session.

  • Issue the SHUTDOWN command to do an implicit =LOGOFF as well as perform an orderly shutdown of the rest of the system.

CAUTION: Do not issue these commands now. Read for your information only.

To immediately stop all jobs and sessions in an emergency:

  1. At the console, hold down CTRL and press A.

  2. When the "=" prompt appears, enter:

       LOGOFF 
    

    Or enter:

       SHUTDOWN 
    

Since your session on the console is also stopped, you'll see the message SESSION ABORTED BY SYSTEM MANAGEMENT on the console screen. (You receive a logoff message about your session because, regardless of whether or not you are using the console, it is still the computer's message center.)

NOTE: Entering the SHUTDOWN command is the last in a series of steps performed to shut down the computer system. Refer to chapter 10, "Shutting Down the System" for information on system shutdown.
Feedback to webmaster