HP-UX Containers (SRP) A.03.01 Administrator's Guide
42
variable=value
A valid variable for the specified service when used with the specified
template and the value for the variable. To list the valid variable names for
a service used with a given template, you can use the
srp -h -v
template t
emplate_name
-service
service_name
command.
See 6.7 Displaying help text for input parameters to display help text for the input parameters
template, service, instance and variable.
CAUTION: If you do not specify the -template and/or -service arguments with the –delete
option, srp deletes all templates and/or services for the container. For example, the command srp
-delete myContainer deletes the entire myContainer container configuration, and optionally
the file system contents.
The srp -replace command prompts for new data for each specified service and replaces the
entire data set for the service with the replacement data. If you do not supply new values for an
option or variable, the HP-UX Containers default value will be used (not the currently configured
value).
In Example 6.5, the user adds the sshd template to the myContainer workload container. The user
specifies the cmpt and provision services and accepts the default values for all variables.
Example 6.5 Adding the sshd template to a workload container
# srp -add myContainer -t sshd
Enter the requested values when prompted, then press return.
Enter "?" for help at prompt. Press control-c to exit.
Services to add: [cmpt,provision] RETURN
sshd data path: [/var/hpsrp/myContainer/opt/ssh] RETURN
sshd executable path: [/opt/ssh] RETURN
Copy SSH config data from path: [/opt/ssh/newconfig] RETURN
sshd port number: [22] RETURN
Press return or enter "yes" to make the selected modifications with these
values. Do you wish to continue? [yes]
add compartment rules succeeded
add provision service succeeded
#
In Example 6.6, the user wants to replace the PRM data and increases the number of CPU shares to
20. The PRM data is configured with the workload template. The template is derived from the
container configuration, the user does not have to specify the template name with the –replace
operation.
Example 6.6 Replacing PRM data of a workload container
# /opt/hpsrp/bin/srp -replace myContainer -s prm
Enter the requested values when prompted, then press return.
Enter "?" for help at prompt. Press control-c to exit.
PRM group name to associate with this SRP: [myContainer] RETURN
PRM group type (FSS, PSET): [FSS] RETURN
PRM FSS group CPU shares: [10] 20 RETURN
PRM FSS group CPU cap (press return for no cap): []RETURN
PRM group memory shares: [10] RETURN
PRM group memory cap (press return for no cap): []RETURN
PRM group shared memory (press return for no dedicated memory): []RETURN