HP-UX CMGR A.02.00 Administrator's and Developer's Guide

option from the cmgr command and performs one of the following tasks for the
compartment identified by the compartment attribute:
DescriptionOperation
Searches the /etc/cmpt directory for a file containing a definition for the
compartment. If the file is not found, a new /etc/cmpt/compartment.rules
is created and a compartment definition for the compartment is added. The contents
of the concatenated data child elements are then added to the top of the
compartment definition.
NOTE: You must include meta-tags around the configuration data to be added.
See Section 3.2.8 for more information on meta-tags.
add
Searches the /etc/cmpt directory for a file containing a definition for the
compartment. Searches the compartment definition for the first block of data with
the exact matching open and close comment meta tag as specified in the
concatenated child data elements. If a match is found, the comment meta-tags and
all data between are deleted. If the compartment definition is empty, the handler
deletes the compartment definition. If the compartment file is empty, the handler
removes it.
delete
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 compartment
definition.
replace
Searches the /etc/cmpt directory for files containing matching meta tags. If a
match is found, the handler displays the entire meta-tag string. If the verbose
option is specified, the handler displays the entire content of the meta-tag data.
list
Upon successful completion of the add, delete or replace operation, cmgr validates
all compartment configuration with the following command:
setrules -p
If the validation succeeds, cmgr notifies the operating system to reload the compartment
rules with the following command:
setrules
NOTE: The compartment handler processes a temporary copy of the compartment
configuration file. If the compartment handler returns an error, the contents of
configuration file will be unchanged from its original state.
The compartment element can have the following attributes:
DescriptionAttribute
Optional. Common attribute.
id
Optional. Common attribute.
if
Optional. Common attribute.
if_op
3.2 Configuration Elements 19