PMDF System Manager's Guide


Previous Contents Index

2.3.5 Using defaults and nodefaults channel blocks to simplify configurations

Many configurations involve repetition of various channel keywords on all or nearly all channels. Maintaining such a configuration is both tedious and error-prone. PMDF offers a simple way to change what defaults apply to various channel keywords. This mechanism can be used to greatly simplify some configurations.

If a line of the form:


defaults keyword1 keyword2 keyword3 ...
is inserted into the configuration, all channel blocks following this line will inherit the keywords specified on the line. The defaults line can be thought of as a special channel block that changes the keyword defaults without actually specifying a channel. The defaults line also does not require any additional lines of channel block information (if any are specified they will be ignored).

There is no limit on the number of defaults lines that can be specified --- the effects of multiple defaults lines are cumulative with the most recently encountered (reading from top to bottom) line having precedence.

It may be useful to unconditionally eliminate the effects of any defaults lines starting at some point in the configuration file (at the start of a standalone section of channel blocks in an external file, for example). The nodefaults line is provided for this purpose. It takes the form:


nodefaults 
and has the obvious effect --- it nullifies all settings established by any previous defaults channel and returns the configuration to the state that would apply if no defaults had been specified.

Like regular channel blocks, a blank line must separate each defaults or nodefaults channel block from other channel blocks. The defaults and nodefaults channel blocks are the only channel blocks which may appear before the local channel in the configuration file. However, like any other channel block, they must appear after the last rewrite rule.


Previous Next Contents Index