HP-UX CMGR A.02.01 Administrator's and Developer's Guide
18
Attribute Description
if_op
Optional. Common attribute.
Role
The RBAC login role. Default is
SRPlogin-$compartment.
user
A comma separated list of users and groups. Group names must start with the &
character.
See 2.4 Common
Attributes for more information on common attributes.
2.2.8 The prm Element
The prm element manages interaction with the Process Resource Management (PRM) configuration file
specified by the prmfile attribute. Upon invocation, the prm handler checks the operation option
from the cmgr command and performs one of the following tasks:
Operation
Description
add
Adds concatenated data child elements to the end of the prm configuration file.
NOTE: You must include meta-tags around the configuration data to be added. See
2.2.10
Using meta-tags
for more information on meta-tags.
delete
Searches for the prmfile file for the first block of data with the exact matching open
and close comment meta-tags as specified in the concatenated child data elements. If
a match is found, the comment meta-tags and all data between are deleted.
replace
Performs the equivalent of a delete followed by an add operation, with the exception
that the new data will be placed in the same location in the PRM configuration file.
list
Searches the prmfile file for matching meta-tags. If a match is found, displays the
entire meta-tag string. If used with the –verbose option, the entire content of the meta-
tag data is displayed.
export
Searches the prmfile file for matching meta-tags. If a match is found, exports the
entire meta-tag string to the exchange.xml file in the exchange archive under the
/cmgr/body/prms/prm
xpath.
import
Searches the exchange.xml file in the exchange archive under the
/cmgr/body/prms/prm xpath for matching meta tags. If a match is found, adds the
meta-tag and the data to the
prmfile
file.
status
Displays CPU and memory resource entitlement, the maximum CPU and memory
allowed, and the current usage statistics for the compartment.
Upon successful completion of the add, delete, or replace operation, cmgr validates the prm
configuration file with the following command:
prmconfig -s -f $prmfile
If the validation succeeds, cmgr notifies prm to reload its configuration with the following command:
prmconfig -ie -f $prmfile
NOTE: The prm handler processes a temporary copy of the $prmfile file. If the prm handler
returns an error, the contents of the $prmfile file will be unchanged from its original state.