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

DescriptionAttribute
The name of the compartment.
Required with the add, delete, and replace operations.
Optional with list and help operations.
compartment
If FALSE, do not remove empty compartment definitions on a delete
operation. Default is TRUE.
cmptdelete
If FALSE, do not execute the compartments activation command.
Default is TRUE.
cmptactivate
If FALSE, do not execute the compartments validation command.
Default is TRUE.
cmptvalidate
See Section 3.4 for more information on common attributes.
3.2.3 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:
DescriptionOperation
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).
NOTE: You must provide a data buffer with meta-tag values in the format
[<variable>=<value>]. For example:
<data>compartment=$compartment template=$SrpName service=network
id=$id</data>
add
Searches the /etc/rc.config.d/netconf and /etc/rc.config.d/
netconf-ipv6 files for the first IP Address entry matching the meta-tag as
specified in the concatenated child data elements. Deletes the IP address entry
and its associated information; including the default route created by the add
operation. Deletes a primary IPV6 interface if it has no remaining secondary
interfaces, and the interface was automatically created by the add operation.
delete
20 Building a Template