HP-UX CMGR A.02.01 Administrator's and Developer's Guide
13
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.
If the list and status operations are required on multiple compartments, the compartment
element contains a comma separated list of those compartments.
The compartment element can have the following attributes:
Attribute Description
compartment
Optional. Common attribute.
id
Optional. Common attribute.
if
Optional. Common attribute.
if_op
Optional. Common attribute.
cmptdelete
If FALSE, do not remove empty compartment definitions on a delete operation.
Default is
TRUE
.
cmptactivate
If
FALSE
, do not execute the compartments activation command. Default is
TRUE
.
cmptvalidate
If
FALSE
, do not execute the compartments validation command. Default is
TRUE
.
See 2.4 Common
Attributes for more information on common attributes.
2.2.4 The ipaddress Element
The ipaddress element manages interaction with the IP network interface configuration files and
commands. Upon invocation, the ipaddress element handler checks the operation option from the
cmgr command and performs one of the following tasks:
Operation
Description
add
Adds IP address configuration information to the system configuration files
/etc/rc.config.d/netconf or /etc/rc.config.d/netconf-ipv6 and
executes the commands ifconfig and route. See ifconfig(1M) and route(1M) for
more information.
If the ipaddress attribute contains dots (for example, 192.168.1.2), it is handled as
an IPV4 type address. The interface, ipaddress, mask, and state attributes are
used to update the /etc/rc.config.d/netconf file. Otherwise, if the ipaddress
contains colons (for example, 2222::2) it is handled as an IPv6 address. The
interface, ipaddress, and state are used to update the
/etc/rc.config.d/netconf-ipv6 file. The add operation also creates a default
route with the IP address specified as both the gateway and as the source with a count
of 0, see route(1M).