HP A7500 Series Command Reference Manual page 23

Fundamentals
Hide thumbs Also See for A7500 Series:
Table of Contents

Advertisement

undo auto-execute command
View
User interface view
Default level
3: Manage level
Parameters
command: Specifies a command to be automatically executed.
Description
Use the auto-execute command command to specify a command to be automatically executed when a
user logs in to the current user interface.
Use the undo auto-execute command command to remove the configuration.
By default, command auto-execution is disabled.
The auto-execute command command is not supported by the AUX user interface.
The system automatically executes the specified command when a user logs in to the user interface, and
tears down the user connection after the command is executed. If the command triggers another task, the
system does not tear down the user connection until the task is completed.
Typically, you can use the auto-execute command telnet command in user interface view to enable a user
to automatically Telnet to the specified host when the user logs in to the device. After the user terminates
the connection with the host, the user's connection with the device is automatically terminated.
CAUTION:
The auto-execute command command may disable you from configuring the system through the user
interface to which the command is applied. Before configuring the command and saving the configuration
(by using the save command), make sure that you can access the device through VTY or AUX user
interfaces to remove the configuration when a problem occurs.
Examples
# Configure the device to automatically Telnet to 192.168.1.41 after a user logs in to interface VTY 0.
<Sysname> system-view
<Sysname> system-view
[Sysname] user-interface vty 0
[Sysname -ui-vty0] auto-execute command telnet 192.168.1.41
% This action will lead to configuration failure through ui-vty0. Are you sure?
[Y/N]:y
[Sysname-ui-vty0]
To verify the configuration:
Telnet to 192.168.1.40. The device automatically Telnets to 192.168.1.41. The following output is
displayed:
C:\> telnet 192.168.1.40
******************************************************************************
* Copyright (c) 2010-2011 Hewlett-Packard Development Company, L.P.
* Without the owner's prior written consent,
* no decompiling or reverse-engineering shall be allowed.
16
*
*
*

Advertisement

Table of Contents
loading

Table of Contents