HP-UX Secure Resource Partitions (SRP) A.02.00 Administrator's Guide
HP recommends that you run srp_setup after you install SRP, but you can run it anytime that
you want to change the default parameters for SRP or verify the status of the subsystems
configured by SRP.
For more information about srp_setup, see Chapter 3 (page 25).
Step 2: Displaying Input Parameters for the base Template
Before creating a base SRP compartment, the user enters the srp -help -template base
command to view the input parameters for the base template. The srp utility displays usage
and general syntax information, then displays the input parameters for the default services used
with the base template.
# /opt/hpsrp/bin/srp -help -template base
srp -a[dd]|-d[elete]|-r[eplace] <compartment_name>
[-t[emplate] <template>] [-s[ervice] <service>,..] [-i[d] <instance>]
[-b[atch]] [-v[erbose]][variable=<value>,..]
:
:
Variables: (used with -add, -replace, will vary by -template. Variables without
defaults must be supplied when executing with -b)
Template: base Service: default
Name Description
---------- -----------
admin_user Existing Unix user name to be granted the administrator
role for the compartment.
Default: root
login_group Existing Unix group allowed for compartment login.
Default: adm
:
:
Step 3: Creating a Base SRP Compartment
To create a base SRP compartment, enter the following command:
srp -add compartment_name
Where compartment_name is the name of the SRP compartment you want to create. In this
example, the user specifies mySRP for the compartment name. In the srp dialog, the user specifies
the IP address 192.0.2.1 for the compartment address and lan1 for the network interface.
The user accepts the default values for all other variables.
The command output and user input for this example are as follows:
# /opt/hpsrp/bin/srp -a myCmpt
Enter the requested values when prompted, then press return.
Enter "?" for help at prompt. Press control-c to exit.
Services to add: [cmpt,admin,init,prm,network,login] RETURN
Unix username for compartment administrator: [root] RETURN
Unix group name for compartment login: [adm] RETURN
PRM group name to associate with this SRP compartment: [myCmpt] RETURN
PRM group type (FSS, PSET): [FSS] RETURN
PRM FSS group CPU shares: [10] RETURN
PRM FSS group CPU cap (press return for no cap): [] RETURN
PRM group memory shares: [10] RETURN
PRM group physical memory (press return for no dedicated memory): [] RETURN
IP address: [] 192.0.2.1
IP subnet mask (press return to accept default): [] RETURN
Network interface name: lan1
30 Getting Started with SRP