HP-UX Secure Resource Partitions (SRP) A.02.00 Administrator's Guide
Step 9: Stopping the SRP Compartment
To stop an SRP compartment, enter the following command:
srp -stop compartment_name
The srp utility executes the shutdown scripts in the /var/hpsrp/compartment_name/sbin
subdirectories. In this example, the shutdown scripts include a script to bring down the IP
interface for the compartment, and a script to stop the sshd daemon.
# /opt/hpsrp/bin/srp -stop myCmpt
***********************************************
Compartment myCmpt shutdown in progress
Fri Oct 10 20:25:29 MDT 2008
***********************************************
Stopping HP-UX Secure Shell................................. [ OK ]
Unconfigure LAN interfaces.................................. [ OK ]
Step 10: Deleting the SRP Compartment
Because this session was used to show examples of srp operations instead of an actual
deployment, the user deletes the SRP compartment. The srp -delete command deletes all
configuration data for the SRP compartment.
# /opt/hpsrp/bin/srp -d myCmpt
Processing SRP template sshd ...
delete compartment rules succeeded
delete provision service succeeded
Processing SRP template base ...
delete compartment rules succeeded
delete compartment root directory succeeded
delete RBAC admin role for compartment succeeded
delete RBAC compartment login role succeeded
delete startup directories succeeded
delete prm rules succeeded
delete compartment network service rules succeeded
delete ipaddress succeeded
deleting directory /var/hpsrp/myCmpt ...
rmdir: /var/hpsrp/myCmpt/etc: Directory not empty
rmdir: /var/hpsrp/myCmpt//: Directory not empty
2 WARNING: The directory /var/hpsrp/myCmpt was not deleted because it is not emp
ty.
delete compartment root directory succeeded
34 Getting Started with SRP