HP 6125G HP 6125G & 6125G/XG Blade Switches Fundamentals Command Refer - Page 100

execute, file prompt

Page 100 highlights

... execute Syntax View execute filename System view Default level 2: System level Parameters filename: Name of a batch file with a .bat extension. To change the extension of a configuration file to .bat, use the rename command. Description Use execute 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. Do 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. Not every command in a batch file is sure to be executed. For example, if a certain command is not correctly configured, the command cannot be executed, and the system skips this command and goes to the next one. 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. Examples # Execute the batch file test.bat in the root directory. system-view [Sysname] execute test.bat file prompt Syntax View file prompt { alert | quiet } System view Default level 3: Manage level Parameters alert: Enables the system to warn you about operations that may bring undesirable results, including file corruption or data loss. quiet: Disables the system from warning you about any operation. 93

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180

93
execute
Syntax
execute
filename
View
System view
Default level
2: System level
Parameters
filename
: Name of a batch file with a .bat extension. To change the extension of a configuration file
to .bat, use the
rename
command.
Description
Use
execute
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.
Do 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.
Not every command in a batch file is sure to be executed. For example, if a certain command is not
correctly configured, the command cannot be executed, and the system skips this command and goes to
the next one.
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.
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, including file
corruption or data loss.
quiet
: Disables the system from warning you about any operation.