R2511-HP MSR Router Series Fundamentals Command Reference(V5)
137
Examples
# Display the content of the file test.cfg which is saved in the NAND Flash memory.
<Sysname> display nandflash file-location test.cfg
Logical Chunk Physical Page
---------------------------
chunk(0) 1234
chunk(1) 1236
chunk(2) 1235
filename: test.cfg
<Sysname> display nandflash page-data 1236
0000: 0D 0A 23 0D 0A 20 76 65 72 73 69 6F 6E 20 35 2E ..#.. version 5.
0010: 32 30 2C 20 41 6C 70 68 61 20 31 30 31 31 0D 0A 20, Alpha 1011..
0020: 23 0D 0A 20 73 79 73 6E 61 6D 65 20 48 33 43 0D #.. sysname HP.
0030: 0A 23 0D 0A 20 70 61 73 73 77 6F 72 64 2D 63 6F .#.. password-co
...
execute
Use execute to execute the specified batch file.
Syntax
execute filename
Views
System view
Default command level
2: System level
Parameters
filename: Name of a batch file with the .bat extension. To change the extension of a configuration file
to .bat, use the rename command.
Usage guidelines
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 will not 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










