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

27
The command output and user input for this example are as follows:
# /opt/hpsrp/bin/srp -a mySRP
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
List of Unix user names for compartment administrator: [root] RETURN
List of Unix group names for compartment login: [adm] RETURN
List of Unix user names for compartment login: [] RETURN
PRM group name to associate with this SRP compartment: [mySRP] 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 memory cap (press return for no cap): [] RETURN
PRM group physical memory (press return for no dedicated memory): []
RETURN
IP address: [] 192.0.2.1
Assign IP address at SRP start time: [yes] RETURN
IP subnet mask (press return to accept default): [] RETURN
Network interface name: lan1
Gateway server IP address:[ 192.0.2.1] RETURN
Autostart SRP at system boot? [yes] RETURN
The following template variables have been set to the values shown:
iface = lan1
ip_address = 192.0.2.1
Press return or enter "yes" to make the selected modifications with these
values. Do you wish to continue? [yes] RETURN
add compartment rules succeeded
creating directory /var/hpsrp/mySRP ...
add compartment directory succeeded
add RBAC admin role for compartment succeeded
add RBAC compartment login role succeeded
add startup directories succeeded
add prm rules succeeded
add compartment network service rules succeeded
add ipaddress 192.0.2.1 succeeded
add compartment service succeeded
Step 4: Listing the Configuration Data
To list the data configured for the SRP compartment, enter the following command:
srp -list compartment_name -v
The following is the abbreviated output for this example. For the complete output, see
A.1 Sample
Base Configuration.
# /opt/hpsrp/bin/srp -list mySRP -v
Compartment: mySRP Template: base Service: cmpt
----------------------------------------------------------------------
Compartment Configuration (/etc/cmpt/mySRP.rules):
@tag-start compartment="mySRP" template="base" service="cmpt" id="1" ;
#include "/opt/hpsrp/etc/cmpt/base.srp_incl"