Configuring common AUX line settings

Some common settings for an AUX line take effect immediately and can interrupt the current session. Use a login method different from console login to log in to the device before you change AUX line settings.

After you change AUX line settings, adjust the settings on the configuration terminal accordingly for a successful login.

To configure common settings for an AUX line:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter AUX line view or class view.

  • Enter AUX line view: line aux first-number [ last-number ]

  • Enter AUX line class view:line class aux

A setting in user line view applies only to the user line. A setting in user line class view applies to all user lines of the class.

A non-default setting in either view takes precedence over a default setting in the other view. A non-default setting in user line view takes precedence over a non-default setting in user line class view.

A setting in user line class view does not take effect for current online users. It takes effect only for new login users.

3. Set the transmission rate.

speed speed-value

By default, the transmission rate is 9600 bps.

This command is not available in AUX line class view.

4. Specify the parity.

parity { even | mark | none | odd | space }

By default, a user line does not use parity.

This command is not available in AUX line class view.

5. Specify the number of stop bits for a character.

stopbits { 1 | 1.5 | 2 }

The default is 1.

Stop bits indicate the end of a character. The more the stop bits, the slower the transmission.

This command is not available in AUX line class view.

6. Specify the number of data bits for a character.

databits { 5 | 6 | 7 | 8 }

The default is 8.

Configure this command depending on the character coding type. For example, set the number of data bits to 7 for standard ASCII characters. Set the number of data bits to 8 for extended ASCII characters.

The keywords 5 and 6 are available only for modem dial-in.

This command is not available in AUX line class view.

7. Specify the terminal session activation key.

activation-key character

By default, pressing Enter starts the terminal session.

8. Specify the escape key.

escape-key { character | default }

By default, pressing Ctrl+C terminates a command.

9. Set the user line locking key.

lock-key key-string

By default, no user line locking key is set.

10. Configure the flow control mode.

flow-control { hardware | none | software }

By default, the flow control mode is none.

This command is not available in AUX line class view.

11. Specify the terminal display type.

terminal type { ansi | vt100 }

By default, the terminal display type is ANSI.

The device supports ANSI and VT100 terminal display types. As a best practice, specify VT100 type on both the device and the configuration terminal. If either side uses the ANSI type, a display problem might occur when a command line has more than 80 characters. For example, a cursor positioning error might occur.

12. Set the maximum number of lines of command output to send to the terminal at a time.

screen-length screen-length

By default, the device sends up to 24 lines to the terminal at a time when pausing between screens of output is enabled.

To disable pausing between screens of output, set the value to 0.

13. Set the size for the command history buffer.

history-command max-size value

By default, the buffer saves up to 10 history commands.

14. Set the CLI connection idle-timeout timer.

idle-timeout minutes [ seconds ]

By default, the CLI connection idle-timeout timer is 10 minutes.

If no interaction occurs between the device and the user within the idle-timeout interval, the system automatically terminates the user connection on the user line.

If you set the timeout timer to 0, the connection will not be aged out.

15. Specify the command to be automatically executed for login users on the lines.

auto-execute command command

By default, no command is specified for auto execution.

The device will automatically execute the specified command when a user logs in through the user line, and close the user connection after the command is executed.

This command is not available in AUX line view or AUX line class view.

16. Enable the terminal service.

shell

Be default, the terminal service is enabled on all user lines.

The undo shell command is not available in AUX line view.