HP 6125G HP 6125G & 6125G/XG Blade Switches Fundamentals Command Refer - Page 22
Default level, Parameters, Description, Examples, auto-execute command, auto-execute, command
View all HP 6125G manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 22 highlights
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. 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