HP-UX Secure Resource Partitions (SRP) A.02.00 Administrator's Guide

/var/hpsrp/myCmpt/opt/ssh/ssh_host_dsa_key.pub
SSHD Pid File:
/var/hpsrp/myCmpt/opt/ssh/sshd.pid
SSHD Startup/Shutdown Script:
/var/hpsrp/myCmpt/sbin/init.d/secsh
Step 7: Starting the SRP Compartment
To start an SRP compartment, enter the following command:
srp -start compartment_name
The srp utility executes the startup scripts in the /var/hpsrp/compartment_name/sbin
subdirectories. In this example, SRP created an IP interface for the compartment (the user specified
a new IP address in the dialog to create the base template), so the startup scripts include a script
to bring up the IP interface.
The startup scripts also include a script to start the sshd daemon. This script is executed from
the SRP compartment, so the daemon runs in the compartment.
# /opt/hpsrp/bin/srp -start myCmpt
***********************************************
Compartment myCmpt startup in progress
Fri Oct 10 20:23:13 MDT 2008
***********************************************
Configure LAN interfaces.................................... [ OK ]
Starting HP-UX Secure Shell................................. [ OK ]
Step 8: Replacing the prm Configuration Data
To replace configuration data, use the srp -replace command with the template name and
service name as follows:
srp -replace compartment_name [-t template_name] [-s service_name]
If you do not specify the -t option, SRP uses the base template. If you do not specify the -s
option, SRP prompts you for information to replace data for all services valid for the template.
In this example, the user wants to replace the PRM data and increase the number of CPU shares
to 20. The PRM data is configured with the base template. The base template is the default
template for the replace operation, so the user does not have to specify the template name.
The command output and user input for this example are as follows:
# /opt/hpsrp/bin/srp -r myCmpt -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 compartment: [myCmpt] RETURN
PRM group type (FSS, PSET): [FSS] RETURN
PRM FSS group CPU shares: [10] 20
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
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]
replace prm rules succeeded
Step 7: Starting the SRP Compartment 33