HP-UX Secure Resource Partitions (SRP) A.02.01 Administrator's Guide

76
13.7 Listing SRP Configuration Data
Use the following command to list verbose information about compartments. This information includes
configuration data.
srp -l[ist] [compartment_name] -v[erbose] [-t template[,template]...] [-s
service[,service]...] [i[d] instance][-x[mloutput]]
Where:
compartment_name
Specifies the name of an existing SRP compartment.
verbose Displays verbose (detailed) configuration data.
template
Specifies the template name. If you specify multiple templates, srp
processes each template in the order specified.
Valid Input: base, apache, tomcat, custom, oracledb, sshd.
Default: All templates configured for a given compartment.
service
Specifies the name of the service.
If you specify multiple services, srp processes each service for each
template in the order specified.
Valid Input: admin, cmpt, init, ipfilter, ipsec, login, network,
provision.
Default: All services configured for a given compartment.
instance
Unique string identifier used to identify an instance of a template usage for
templates that can be applied multiple times. This is valid for the custom
template only and is ignored for all other templates.
Valid Input: A text string with alphanumeric, dash (-) , or underscore (_)
characters. The maximum length is 20 characters.
Default: All instances for the specified service(s) and template(s).
13.8 Using srp in Batch Mode
The -batch or -b option runs srp in batch mode. Instead of prompting the user for input, srp uses
the default values for input variables. If there is no input default value for an input variable, you must
specify the value in the command line. For example:
/opt/hpsrp/bin/srp -add mySRP -batch ip_address=192.0.2.2 iface=lan1:1
13.9 Backing Up and Recovering Configuration Data
The srp -Backup 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. You can also use srp export and import operations to archive and restore an
SRP environment with or without the associated data files. See (reference here) for instructions on
exporting and importing SRP.
13.9.1 The srp -Backup Command
The srp -Backup command has the following syntax:
srp -B[ackup] backup_directory