H3C WX Series Command Reference Manual page 76

Hide thumbs Also See for WX Series:
Table of Contents

Advertisement

Description
Use the auto-execute command command to specify a command to be executed
automatically.
Use the undo auto-execute command command to disable this feature.
By default, command auto-execution is disabled.
The auto-execute command command is supported on all types of user interfaces
except the console port and the AUX port functioning as the console port.
Once a command is configured using the auto-execute command command, the
system automatically executes the command when a user logs on from the interface
where the command is configured. After the command is completed, the connection
breaks automatically.
A good example is configuring the auto-execute command telnet command to let
users telnet to the specified host automatically.
CAUTION:
The auto-execute command command may disable you from configuring the system through
the terminal line to which the command is applied. Therefore, before configuring the command
and saving the configuration (using the save command), be sure that you can access the
system by other means to remove the configuration in case a problem occurs.
Examples
Automatically execute the display brief interface loopback command after a user logs
on from the VTY 0 interface.
<Sysname> system-view
[Sysname] user-interface vty 0 4
[Sysname-ui-vty0-4] auto-execute command display brief interface loopback
% This action will lead to configuration failure through ui-vty0-4. Are you
sure? [Y/N]:y
[Sysname-ui-vty0-4]
Telnet to the device again. The display brief interface loopback command is executed
automatically before the telnet connection breaks. The following information displays:
******************************************************************************
* Copyright (c) 2004-2009 Hangzhou H3C Tech. Co., Ltd. All rights reserved.
* Without the owner's prior written consent,
* no decompiling or reverse-engineering shall be allowed.
******************************************************************************
<Sysname>
The brief information of interface(s) under route mode:
Interface
Loop1
Link
Protocol-link
UP
UP(spoofing)
76
Protocol type
Main IP
LOOP
--
*
*
*

Advertisement

Table of Contents
loading

Table of Contents