Auto-Execute Command - H3C IE4300 Command Reference Manual

Industrial switch series
Hide thumbs Also See for IE4300:
Table of Contents

Advertisement

Related commands
set authentication password

auto-execute command

Use
auto-execute command
user.
Use
undo auto-execute command
Syntax
auto-execute command command
undo auto-execute command
Default
No command is specified to be automatically executed for a login user.
Views
User line view
User line class view
Predefined user roles
network-admin
Parameters
: Specifies the command to be automatically executed.
command
Usage guidelines
CAUTION:
After executing this command for a user line, you might be unable to access the CLI through the
user line. Make sure you can access the CLI through a different user line before you execute this
command and save the configuration.
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 supported in AUX line view or AUX line class view.
This command is available in both user line view and user line class view. 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 configuration change made by this command does not take effect for the current session. It takes
effect for subsequent login sessions.
Examples
# Configure the device to automatically execute the
user logs in through VTY line 0.
<Sysname> system-view
[Sysname] line vty 0
[Sysname-line-vty0] auto-execute command telnet 192.168.1.41
This action will lead to configuration failure through line-vty0. Are you sure?
[Y/N]:y
[Sysname-line-vty0]
to specify the command to be automatically executed for a login
to restore the default.
telnet 192.168.1.41
5
command when a

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ie4300-mIe4320

Table of Contents