AUTO-LOGOFF Command

The AUTO-LOGOFF command automatically logs off a specified process after either a designated period of inactivity or the loss of an incoming DTR signal.

Format

AUTO-LOGOFF target [seconds] [(options)]

Parameter(s)   

target

Includes any of these:

account

Specifies any process this account is logged on to.

n

Specifies a process number.

n-m

Specifies a range of processes.

seconds

Number of seconds of CPU inactivity before the process is automatically logged off.

options

The following options are supported. Options must be enclosed in parentheses.

C

Turns off automatic logoff for the specified process or processes.

D

Monitors the incoming DTR signal for the specified process and performs an automatic logoff if none is detected.

Description

An unattended terminal can be a security problem; the AUTO-LOGOFF command can reduce this risk on a system-wide or an account-by-account basis.

If neither seconds nor options are specified, the current AUTO-LOGOFF settings for the specified processes display.

AUTO-LOGOFF will not force a process that is currently logged on to logoff. The AUTO-LOGOFF command only takes effect after the process has been logged off and logged back on again.

The AUTO-LOGOFF command can be included in the USER-COLD-START Proc to set system-wide auto-logoff parameters.

Automatically Logging Off a Process

This example specifies that process number 9 will be automatically logged off after 600 seconds (10 minutes) of CPU inactivity:

>AUTO-LOGOFF 9 600

The next example specifies that the ORDERS account be automatically logged off after 1200 seconds (twenty minutes) of CPU inactivity:

>AUTO-LOGOFF ORDERS 1200

The next example logs off line 1 after 10 seconds of inactivity:

>AUTO-LOGOFF 1 10

The next example logs off lines 2 through 4 after 5 seconds of inactivity:

>AUTO-LOGOFF 2-4 5

The next example logs of line 1 if it becomes disconnected:

>AUTO-LOGOFF 1 (D

The next example logs off lines 2-4 if they become disconnected:

>AUTO-LOGOFF 2-4 (D

The next example clears the AUTO-LOGOFF settings for line 1:

>AUTO-LOGOFF 1(C

The next example clears the AUTO-LOGOFF settings for lines 2 through 4:

>AUTO-LOGOFF 2-4 (C

The next example displays the AUTO-LOGOFF settings for lines 1:

>AUTO-LOGOFF 1

The next example displays the AUTO-LOGOFF settings for lines 2 through 4:

>AUTO-LOGOFF 2-4