HP 6125G Command Reference Manual page 22

6125 blade switch series fundamentals command reference
Hide thumbs Also See for 6125G:
Table of Contents

Advertisement

auto-execute command command
undo auto-execute command
View
User interface view
Default level
3: Manage level
Parameters
command: Specifies a command to be automatically executed.
Description
Use auto-execute command to specify a command to be automatically executed when a user logs in to
the current user interface.
Use undo auto-execute 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.
IMPORTANT:
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 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] 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-2012 Hewlett-Packard Development Company, L.P.
* Without the owner's prior written consent,
* no decompiling or reverse-engineering shall be allowed.
******************************************************************************
15
*
*
*

Advertisement

Table of Contents
loading

This manual is also suitable for:

6125g/xg

Table of Contents