HP-UX Secure Resource Partitions (SRP) A.02.00 Administrator's Guide
Default: None.
Using srp in Batch Mode
Adding the -batch or -b option to an srp command runs the utility in batch mode. Instead of
prompting the user for input, srp uses the default values for input variables. If there is no default
value for an input variable, you must specify the value in the command line. For example:
/opt/hpsrp/bin/srp -add myCmpt -batch ip_address=192.0.2.2 iface=lan1:1
Backing Up and Recovering Configuration Data
The srp -Backup and command creates a backup copy of the subsystem and system
configuration directories and files managed by SRP; the srp -Restore command restores a
previously backed up directories and files.
The srp -Backup Command
The srp -Backup command has the following syntax:
srp -B[ackup] backup_directory
Where backup_directory is an empty directory.
The srp -Backup command executes the customizable /opt/hpsrp/util/srp_backup
script. By default, this script creates copies of the following directories, including all subdirectories
and files, and stores them under the specified backup directory:
/etc/cmpt
/etc/opt/ipf
/etc/prmconf
/etc/rbac
/etc/rc.config.d/netconf
/etc/rc.config.d/netconf-ipv6
/var/adm/ipsec/config.db
/var/hpsrp
If you use alternate configuration directories for any of the subsystems managed by SRP, you
can modify the /opt/hpsrp/util/srp_backup script to back up files from other locations.
NOTE: The srp_backup script only saves system configuration files managed by SRP. It does
not back up compartment-specific configuration files in the /var/hpsrp/compartment_name
directories.
The srp -Restore Command
The srp -Restore command has the following syntax:
srp -R[estore] backup_directory
Where backup_directory is a directory containing SRP backup data created with the srp
-Backup command.
The srp -Restore command executes the customizable /opt/hpsrp/bin/util/
srp_restore script. By default, this script deletes the existing contents of the backed up
directories and restores the backed up files. To prevent you from losing new files in the backed
up directories (files that did not previously exist and do not have previous versions saved in the
backup data), srp_restore first compares the contents of the backup data with the current
contents of the backed up directories (the current system environment). If the current system
environment contains files or subdirectories not in the backup data, srp displays a message
similar to the following:
72 Managing SRP Data