beautypg.com

Configuring the command auto-execute function, Ls, see, Configuring a user privilege level for user – H3C Technologies H3C S12500 Series Switches User Manual

Page 64: Interfaces

background image

52

Step Command

Remarks

5.

Set the maximum number of
lines on a screen.

screen-length screen-length

Optional.
By default, up to 24 lines of data

are displayed on a screen.

6.

Set the display type of the
current user terminal.

terminal type { ansi | vt100 }

Optional.
ANSI by default.

7.

Set the size of the history
command buffer of the user

interface.

history-command max-size
size-value

Optional.
The history buffer can store 10
commands by default.

8.

Return to user view.

return

N/A

9.

Lock the user interface to
prevent unauthorized users

from using this interface.

lock

Optional.
Disabled by default.

Configuring the command auto-execute function

CAUTION:

You might be unable to access the CLI through a VTY user interface after configuring the auto-execute
command command on it. Before you configure the command and save the configuration, make sure you
can access the CLI through a different user interface.

The command auto-execute function is typically used for redirecting a Telnet user to a specific host. After

executing the specified command and performing the incurred task, the system automatically disconnect
the Telnet session.
To configure the command auto-execute function:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enter user interface view.

user-interface { first-num1
[ last-num1 ] | { aux | vty }
first-num2 [ last-num2 ] }

N/A
The console port does not support
this command.

3.

Specify a command to be
automatically executed when

a user logs in to the user

interfaces.

auto-execute command command

By default, no automatically
executed command is specified.

Configuring a user privilege level for user interfaces

User privilege levels restrict the access rights of different users to the switch:

If the authentication mode is scheme, the user must provide the username and password. For SSH
publickey authentication, the user privilege level is the user interface level configured in user

interface view, which is 0 by default.