Configuring the terminal session parameters

You can set the terminal parameters for the current session. You can also set password attributes for the length of the session and login attempts.

About this task

To set the parameters, perform the following steps:

Procedure

  1. In privileged EXEC mode, set the display length.
    device# terminal length 30
    This example sets the lines to be displayed on the terminal session at 30 lines.
    Note

    Note

    Setting the terminal length to 0 removes page breaks for the show commands' output.
  2. Set the timeout length.
    device# terminal timeout 3600
    This example sets the timeout of 3600 seconds (60 minutes) for the terminal session.
    Note

    Note

    Specifying a value of 0 allows the terminal session to stay open until the device is rebooted or the connection is terminated by other means.
  3. Access global configuration mode.
    device# configure terminal
  4. Configure the maximum login attempts to establish a session.
    device(config)# password-attributes max-retry 4
    This example sets the maximum login attempts of four to establish a session.
  5. Set the maximum number of minutes the user account remains locked when user fails to login within the maximum login attempts.
    device(config)# password-attributes admin-lockout max-lockout-duration 5
    
    This example specifies that the user account be unlocked after 5 minutes.

Example

The following configuration is the example of the previous steps.

device# terminal length 30
device# terminal timeout 3600
device# configure terminal
device(config)# password-attributes max-retry 4
device(config)# password-attributes admin-lockout max-lockout-duration 5