R21xx-HP FlexFabric 11900 Fundamentals Configuration Guide
28
Configuring common VTY user interface settings
For a VTY user interface, you can specify a command that is to be automatically executed when a user
logs in. After executing the specified command and performing the incurred task, the system
automatically disconnects the Telnet session. Before you configure this function and save the
configuration, make sure you can access the CLI through a different user interface.
Typically, you configure the auto-execute command telnet X.X.X.X command on the device so the device
redirects a Telnet user to the host at X.X.X.X. In this case, the connection to the current device is closed
when the user terminates the Telnet connection to X.X.X.X.
To configure common settings for VTY user interfaces:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Enter one or multiple
VTY user interface
views.
user-interface vty
first-number [ last-number ]
N/A
3. Enable the terminal
service.
shell By default, terminal service is enabled.
4. Specify the protocols
for the user interfaces
to support.
protocol inbound { all | ssh
| telnet }
By default, both Telnet and SSH are supported.
This configuration is effective only for users who
log in to the user interfaces after the
configuration is completed.
5. Define a shortcut key
for terminating tasks.
escape-key { character |
default }
By default, pressing Ctrl+C terminates a task.
6. Specify the terminal
display type.
terminal type { ansi |
vt100 }
By default, the terminal display type is ANSI.
7. Set the maximum
number of lines to be
displayed on a screen.
screen-length screen-length
By default, up to 24 lines is displayed on a
screen.
A value of 0 disables the function.
8. Set the size of
command history
buffer.
history-command max-size
value
By default, the buffer saves 10 history
commands.
9. Set the idle-timeout
timer.
idle-timeout minutes
[ seconds ]
By default, the idle-timeout interval is 10 minutes
for all user interfaces.
If there is no interaction between the device and
the user within the idle-timeout interval, the
system automatically terminates the user
connection on the user interface.
If you set the idle-timeout timer to 0, the session
will not be aged out.
10. Specify a command to
be automatically
executed when users
log in to the user
interfaces.
auto-execute command
command
By default, no automatically executed command
is specified.










