5-6
Description
Use the
execute
command to execute the specified batch file.
Batch files are command line files. Executing a batch file is to execute a set of command lines in the
file.
z
You should not include invisible characters in a batch file. If an invisible character is found during
the execution, the batch process will abort and the commands that have been executed cannot be
cancelled.
z
Not every command in a batch file is sure to be executed. For example, if a certain command is
not correctly configured, the system omits this command and goes to the next one.
z
The configuration generated after a batch file is executed will not be backed up to the standby
main board automatically.
z
Each configuration command in a batch file must be a standard configuration command, meaning
that the valid configuration information can be displayed with the
display current-configuration
command after this command is configured successfully; otherwise, this command may not be
executed correctly.
Examples
# Execute the batch file
test.bat
in the root directory.
<Sysname> system-view
[Sysname] execute test.bat
file prompt
Syntax
file prompt
{
alert
|
quiet
}
View
System view
Default Level
3: Manage level
Parameters
alert
: Enables the system to warn you about operations that may bring undesirable results such as file
corruption or data loss.
quiet
: Disables the system from warning you about any operation.
Description
Use the
file prompt
command to set a prompt mode for file operations.
By default, the prompt mode is
alert
.
Note that when the prompt mode is set to
quiet
, the system does not warn for any file operation. To
avoid undesirable consequences resulting from misoperation, you are recommended to use the
alert
mode.
Examples
# Set the file operation prompt mode to
alert
.
Содержание E4510-48G
Страница 109: ...2 18 Sysname interface bridge aggregation 1 Sysname Bridge Aggregation1 shutdown ...
Страница 309: ...6 4 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address dhcp alloc ...
Страница 324: ...8 3 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address bootp alloc ...
Страница 530: ...2 5 Sysname mvlan 100 subvlan 10 to 15 ...
Страница 739: ...8 15 Sysname system view Sysname port security trap addresslearned ...
Страница 819: ...13 11 Sysname system view Sysname public key peer key2 import sshkey key pub ...
Страница 857: ...iii 7 Track Configuration Commands 7 1 Track Configuration Commands 7 1 display track 7 1 track nqa 7 2 ...
Страница 914: ...5 17 Sysname reset oam ...
Страница 1064: ...5 30 Slot 2 Set next configuration file successfully ...
Страница 1325: ...21 13 Examples Redirect to member 2 Sysname irf switch to 2 Sysname Slave 2 ...