LOGOFF-ALL
Logs off all or a specified range of ports and disconnects them from the database.
Syntax
LOGOFF-ALL {start{–end}} {(options}
Syntax elements
startThe start port number in decimal; defaults to 0.
endThe end port number in decimal; defaults to 32767.
Options
KUses SIGTERM signal (9) instead of the default SIGTERM signal (15).
NCauses the command not to wait and check that processes actually log off.
YSuppresses the confirmation prompt (useful for scripting).
Restrictions
SYSMAN account only.
Prompt
If you use the LOGOFF-ALL command without the Y option you are prompted as follows:
Are you sure you want to logoff all ports between start and end (Y/N) ?
To return to TCL without logging off any ports, press return.
Operation
LOGOFF-ALL without the N option does the following:
-
Attempts to log off all process in the given range except from the current port.
-
Waits two seconds and then retries any processes that are still logged on.
-
Waits a further two seconds and then checks whether or not all processes are now logged off.
-
Outputs one of the following messages, as appropriate:
[490] All ports logged off.
[491] Failure! Not all ports logged off!
LOGOFF-ALL with the N option simply attempts to log off all process in the range (except from the current port) and then immediately outputs:
[492] Port logoff actioned.
Example
:
LOGOFF-ALL 1000-2000 (KN
The screen displays:
Are you sure you want to logoff all ports between 1000 and 2000 (Y/N) ?
Y
[492] Port logoff actioned