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

30
Configure LAN interfaces.................................... [ OK ]
Mounting file systems in /var/hpsrp/mySRP/etc/fstab......... [ OK ]
Starting HP-UX Secure Shell................................. [ OK ]
Step 8: Getting SRP status information
To get status of an SRP, the srp command can be called with the status option. The following
command displays the status of the SRP mySRP:
srp -status mySRP
If the SRP name is not specified, the status is displayed for all SRPs configured on the system.
Example: Status of the SRP srptest using the srp status srptest command:
% srp -status srptest
SRP Status:
----------------- Status for SRP:mySRP ----------------------
Status:STARTED
IP: 192.0.2.x Interface:lan0:1 (UP)
MEM Entitle:5.38% MEM Max:(none) Usage:0.14%
CPU Entitle:2.78% CPU Max:(none) Usage:0.00%
Step 9: Replacing SRP 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 mySRP -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: [mySRP] 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