HP-UX Containers (SRP) A.03.01 Administrator's Guide
43
The following template variables have been set to the values shown:
prm_cpu_shares = 20
Press return or enter "yes" to make the selected modifications with these
values. Do you wish to continue? [yes] RETURN
replace prm rules succeeded
#
In Example 6.7, the user deletes the container myContainer that is in the stopped state but keeps
the container’s local files and directories.
Example 6.7 Deleting a workload container
# /opt/hpsrp/bin/srp -d myContainer
Do you wish to delete the compartment "myContainer"? (yes/no) : [no] y
Processing SRP template sshd ...
delete compartment rules succeeded
delete ipfilter rules succeeded
delete provision service succeeded
Processing SRP template base ...
Enter the requested values when prompted, then press return.
Enter "?" for help at prompt. Press control-c to exit.
Delete the container's local files and directories? [no] RETURN
Press return or enter "yes" to process this template.
Do you wish to continue? [yes] RETURN
delete compartment rules succeeded
delete RBAC admin role for compartment succeeded
delete RBAC compartment login role succeeded
delete prm rules succeeded
delete ipfilter rules succeeded
delete ipsec rules succeeded
delete compartment network service rules succeeded
delete ipaddress succeeded
delete compartment service succeeded
#
6.6 Non-interactive srp command invocation
To run the srp command in the non-interactive mode, use the -batch or -b option. 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 myContainer -batch ip_address=192.0.2.2 iface=lan1
6.7 Displaying help text for input parameters
Use the following command to display srp help text and information about input parameters:
srp -h[elp] [-t template[,template]...] [-s service[,service]...]
Where: