Checking files, Performing batch operations, Setting the file system operation mode – H3C Technologies H3C SecBlade LB Cards User Manual
Page 93
84
Step Command
Remarks
1.
Display the number and
location of bad blocks in the
NAND Flash memory.
display nandflash badblock-location
[ | { begin | exclude | include }
regular-expression ]
Available in any view.
2.
Repair bad blocks.
fixdisk device
Available in user view.
Checking files
After files are written to the NAND Flash memory, use the following commands together to check the
content of these files.
To check files, execute one of the following commands in any view:
Task Command
Display the space distribution of the specified file in
the NAND Flash memory
display nandflash file-location filename [ | { begin |
exclude | include } regular-expression ]
Display data on the specified physical page.
display nandflash page-data page-value [ | { begin |
exclude | include } regular-expression ]
Performing batch operations
A batch file comprises a set of executable commands. Executing a batch file is the same as executing the
commands one by one. However, execution of a batch file does not guarantee successful execution of
every command in the batch file. If a command has error settings or the conditions for executing the
command are not satisfied, the system skips this command.
You can edit a batch file on your PC, and then upload or download it to the device. If the extension of
the file is not .bat, use the rename command to change it to .bat.
To execute a batch file:
Step Command
1.
Enter system view.
system-view
2.
Execute a batch file.
execute filename
Setting the file system operation mode
The file systems support the following operation modes:
•
alert—The system warns you about operations that might cause problems such as file corruption
and data loss. To prevent incorrect operations, use the alert mode.
•
quiet—The system does not prompt for any operation confirmation.
To set the file system operation mode:
Step Command
Remarks
1.
Enter system view.
system-view
N/A