R3721-F3210-F3171-HP High-End Firewalls System Management and Maintenance Configuration Guide-6PW101
27
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.
Before executing a batch file, edit the batch file on your PC, and then download it to the device. If the
suffix of the file is not .bat, use the rename command to change the suffix 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 may 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
2. Set the file system operation
mode.
file prompt { alert | quiet }
Optional
The default is alert.
File system management examples
# Display the files and the subdirectories in the current directory.
<Sysname> dir
Directory of flash0:/
0 -rw- 25535 Feb 17 2011 14:20:02 system.xml
1 -rw- 1780 Feb 17 2011 14:20:04 startup.cfg
2 -rw- 14617560 Feb 15 2011 15:23:29 main.bin
3 -rw- 14617560 Feb 15 2011 12:30:39 backup.bin
4 drw- - Jan 06 2011 14:46:09 domain1
5 -rw- 891 Jan 06 2011 14:46:18 default_ca.cer
6 -rw- 1411 Jan 06 2011 14:46:18 default_local.cer
7 drw- - Jan 06 2011 14:46:07 seclog
1048192 KB total (1018012 KB free)
# Create new folder mytest in the test directory.
<Sysname> cd test
<Sysname> mkdir mytest
%Created dir flash0:/test/mytest.