HP-UX Containers (SRP) A.03.01 Administrator's Guide

37
Service Name Description
ipsec
Configures HP-UX IPSec policies for the primary network interface of the
container.
Variables
You can set variables when you create a container and modify them once the container is created.
Examples of variables include ip_address and iface. 15.8 System templates lists the variables
valid for each system container template. 16.8.1 Workload template lists the variables valid for each
workload container template.
6.2 Creating a container
The srp -add command creates a container. The -t template option specifies the type of container
you are creating. If you do not specify a template, the srp command by default creates a workload
container.
Use the following command to create a container:
srp -a[dd] container_name [-t template] [variable=value]...
Where:
container_name
Specifies the container name. You cannot use the keywords system and
workload
as container names.
template
Specifies the template name.
Valid Input: system, workload.
Default: workload.
variable=value
The variable parameter makes the srp command skip the prompt for the
specified variables in the interactive dialog and use the specified value.
You can specify one or more variable parameters. For example, you can
specify the IP address and interface for a container as follows:
# srp -add myContainer ip_address=192.0.2.1 iface=lan1:1
The srp command will skip the prompt for the ip_address variables in
the interactive dialog and use the specified value.
This feature is often used with the -batch option, as described in 6.6
Non-interactive srp command invocation.
To create a system container, enter:
# /opt/hpsrp/bin/srp -add container_name -t system
To create a workload container, enter:
# /opt/hpsrp/bin/srp -add container_name -t workload
In both cases, the container_name is the name of the container that you want to create.
In example 6.1, a system container is being created. The user specifies myContainer for the
container name. In the srp dialog, the user specifies shared for the container’s subtype, the IP
address 192.2.2.1 for the container address, and lan1 for the network interface. The user accepts
the default values for all other variables. By default, the system container subtype is private.