HP-UX Containers (SRP) A.03.01 Administrator's Guide
41
Example 6.4 Displaying the status of a container
# srp -status myContainer
NAME TYPE STATE SUBTYPE ROOTPATH
myContainer system started shared /var/hpsrp/myContainer
6.5 Updating container configuration
You can update an existing container configuration as follows:
• Update services (such as change network configuration and PRM configuration)
• Update variables (such as IP addresses and network interface)
• Add new services (such as IPFilter and IPSec)
• Delete services (such as IPFilter and IPSec)
• Apply secondary templates to workload containers (such as the Apache template)
The srp command options –add, -replace and –delete are used to update a container
configuration. Use the –add option to add new services or templates, the -replace option to
update services or variables, and the –delete option to delete a service or an entire container
configurations and its contents.
To add template or service data to a container, enter:
srp -a[dd] container_name [-t template[,template]...] [-s service[,service]...]
[-i[d] instance] [variable=value]...
To delete template or service data to a container, enter:
srp -d[elete] container_name [-t template[,template]...] [-s
service[,service]...] [-i[d] instance]
To replace template or service data to a container, enter:
srp -r[eplace] container_name [-t template[,template]...] [-s
service[,service]...] [-i[d] instance]
Where:
container_name
Specifies the name of an existing container.
template
Specifies the template names.
Valid Input: workload, system, apache, tomcat, custom,
oracledb, sshd.
Default: Template configured for the container.
service
Specifies the name of the service.
Default: All services configured for the template.
instance
Unique string identifier used to identify an instance of a template usage for
templates that can be applied multiple times (such as adding IP addresses)
Valid Input: A text string with alphanumeric, dash (-), or underscore (_)
characters. The maximum length is 20 characters.
Default: None.