HP-UX IPSec version A.02.01 Administrator's Guide

Administering HP-UX IPSec
Exporting the Configuration Database to a Batch File
Chapter 6 183
Exporting the Configuration Database to a
Batch File
The ipsec_config export command exports the contents of the
configuration database to a batch file that you can use as input for the
ipsec_config batch command. You can then use the batch file to
re-create the configuration database if the database is corrupt or lost (see
“Re-Creating the Configuration Database” on page 184), or use the batch
file as a base for creating a similar configuration on another system.
The ipsec_config export command can also take the output from the
ipsec_config show all command and to create a batch file.
NOTE The ipsec_config batch command fails if you attempt to add items to a
database that already exist, such as IPsec policies with the same policy
name or priority. Therefore, if you use the output from the
ipsec_config export command as input for the ipsec_config batch
command with the same database, the ipsec_config batch command
will fail.
ipsec_config export Syntax
The syntax for the ipsec_config export command is as follows:
ipsec_config export -o
outfile
[-s
source_file
]
Parameters
outfile
The name of the output file. You can use this file as
input for an ipsec_config batch command.
source_file
The name of the source file. The source file must
contain the output from an ipsec_config show all
command. If you do not specify
source_file
,
ipsec_config executes ipsec_config show all on
the local system and uses the output as the source file.