HP VPN Firewall Appliances System Management and Maintenance Command Reference

37
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
fdisk
Use fdisk to partition a storage medium.
Syntax
fdisk medium-name [ partition-number ]
Views
User view
Default command level
3: Manage level
Parameters
medium-name: Name of the storage medium to be partitioned. It cannot be the name of a partition.
partition-number: Number of partitions, in the range of 1 to 4. Extended partitioning is not supported.
Usage guidelines
If partition-number is specified, the storage medium is divided into the specified number of partitions;
otherwise, partitioning is performed in an interactive way.
The device automatically formats each partition after partitioning is completed and all data on the
storage medium is lost after this command is successfully executed.
Before removing a partitioned storage medium, unmount all the partitions. Otherwise, the file system on
the storage medium might be damaged.
The command does not support repartitioning of a partition.
The following matrix shows the values for the medium-name argument on different firewalls and firewall
modules: