<CfgMethod> element
Syntax
Parent element: <Catalog>
The following attribute is supported:
Attribute | Required | Type | Description |
---|---|---|---|
id | yes | string | Specifies the name of the configuration method. |
The following child elements are supported:
Child elements | Required | Number | Description |
---|---|---|---|
<Get> | no | 0 – 1 | Configuration method definition for the get operation. This element may occur multiple times. |
<Set> | no | 0 – 1 | Configuration method definition for the set operation. This element may occur multiple times. |
<Diff> | no | 0 – 1 | Configuration method definition for diff operation. |
<Discover> | no | 0 – 1 | Configuration method definition for target discovery. |
<Property> | no | 0 – any | Assigns a property to the parameters using the configuration method. |
Usage
The <CfgMethod> element defines a configuration method that can later be referenced by a parameter using the cfgmethod attribute of the <ParameterDef> element. The parameter then inherits all the elements defined under the referenced configuration method.
Depending on the parameter, using a configuration
may offer several advantages over the local definition:
- It simplifies the catalog file, avoiding duplication of the same command line elements for several parameters.
- It allows multiple parameters to be treated by a single command.
Example
The vmoParam.xml catalog defines a lot of parameters that all use the same configuration method. Here is a simplified version of this catalog:
<Catalog id="vmoParam" version="2.1">
<CfgMethod id="vmo">
<Get type="current">
<Command>/usr/sbin/vmo -a</Command>
<Mask name="1" value="2">[[:space:]]*(.*) = (.*)</Mask>
</Get>
<Get type="nextboot">
<Command>/usr/sbin/vmo -r -a</Command>
<Mask name="1" value="2">[[:space:]]*(.*) = (.*)</Mask>
</Get>
<Set type="permanent">
<Command>/usr/sbin/vmo -p%a</Command>
<Argument>%n=%v1</Argument>
</Set>
<Set type="nextboot">
<Command>/usr/sbin/vmo -r%a</Command>
<Argument>%n=%v1</Argument>
</Set>
</CfgMethod>
<ParameterDef name="ame_maxfree_mem" cfgmethod="vmo" type="integer" />
<ParameterDef name="ame_min_ucpool_size" cfgmethod="vmo" type="integer" />
<ParameterDef name="ame_minfree_mem" cfgmethod="vmo" type="integer" />
...
</Catalog>
Related Information
- Command line generation
- The <Get> element
- The <Set> element