HP-UX Secure Resource Partitions (SRP) A.02.02 Administrator's Guide
86
#/var/hpsrp/<srp_name>/sbin/init.d/srp_mount start
2. Export the SRP:
#srp –export<srp_name>
3. Unmount the fstab filesystems of the SRP:
#export compartment=<srp_name>
#/var/hpsrp/<srp_name>/sbin/init.d/srp_mount stop
• User and group definitions are system properties that are not SRP specific and therefore are
not exported with the SRP. The compartment login permissions for users and groups allowed
to login to the SRP will be exported, but you must ensure that the required users and groups
are configured on the target system, or are accessible via a common name service, such as
LDAP-UX.
Example: Export the SRP mySRP and all directories under the mySRP home directory:
#srp –export mySRP export_copy_dirs=/var/hpsrp/mySRP
17.2 Using the srp –import Command
The srp -import command imports the SRP contained in the specified exchange file. The
exchange file contains the previously exported SRP’s configuration, and possibly specified directories.
The srp -import command validates the ability for the target system to accept the exchange file
and configures the new SRP. You can only import an SRP that does not exist on the target system.
NOTE:
• An imported SRP will not be automatically started at system boot time. Refer to 8.1.5.1 Input
Data for information about how to enable the autostart feature.
• Cloning an SRP on the same system is not supported.
You can save the exchange file for archival purposes, or you can import it to another system.
The srp -import command has the following syntax:
srp –import [-b[atch]] [-preview] [–xfile <exchange_file>]
[variable=<value>...]
The options are as follows:
batch
Run srp-import in batch mode. The command will not prompt for
arguments or template variable values.
preview
Validates if the target system will accept an exchange file for import. If you
specify the preview option, only the validation is performed, no import
action occurs.
exchange_file
Specifies the existing exchange file name. The srp –export command
creates the exchange file.
The default is
srp.exchange
.
variable=value
The most commonly used variables for the import operation are as follows:
• iface The network interface name on which to assign the imported
IP address of the SRP.
• allow_sw_mismatch Set to yes to force an import operation to
succeed if the required products for SRP are not present or if there is